Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: talk/app/webrtc/jsepicecandidate.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return candidate_; 56 return candidate_;
57 } 57 }
58 58
59 virtual bool ToString(std::string* out) const; 59 virtual bool ToString(std::string* out) const;
60 60
61 private: 61 private:
62 std::string sdp_mid_; 62 std::string sdp_mid_;
63 int sdp_mline_index_; 63 int sdp_mline_index_;
64 cricket::Candidate candidate_; 64 cricket::Candidate candidate_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(JsepIceCandidate); 66 RTC_DISALLOW_COPY_AND_ASSIGN(JsepIceCandidate);
67 }; 67 };
68 68
69 // Implementation of IceCandidateCollection. 69 // Implementation of IceCandidateCollection.
70 // This implementation stores JsepIceCandidates. 70 // This implementation stores JsepIceCandidates.
71 class JsepCandidateCollection : public IceCandidateCollection { 71 class JsepCandidateCollection : public IceCandidateCollection {
72 public: 72 public:
73 ~JsepCandidateCollection(); 73 ~JsepCandidateCollection();
74 virtual size_t count() const { 74 virtual size_t count() const {
75 return candidates_.size(); 75 return candidates_.size();
76 } 76 }
77 virtual bool HasCandidate(const IceCandidateInterface* candidate) const; 77 virtual bool HasCandidate(const IceCandidateInterface* candidate) const;
78 // Adds and takes ownership of the JsepIceCandidate. 78 // Adds and takes ownership of the JsepIceCandidate.
79 virtual void add(JsepIceCandidate* candidate) { 79 virtual void add(JsepIceCandidate* candidate) {
80 candidates_.push_back(candidate); 80 candidates_.push_back(candidate);
81 } 81 }
82 virtual const IceCandidateInterface* at(size_t index) const { 82 virtual const IceCandidateInterface* at(size_t index) const {
83 return candidates_[index]; 83 return candidates_[index];
84 } 84 }
85 85
86 private: 86 private:
87 std::vector<JsepIceCandidate*> candidates_; 87 std::vector<JsepIceCandidate*> candidates_;
88 }; 88 };
89 89
90 } // namespace webrtc 90 } // namespace webrtc
91 91
92 #endif // TALK_APP_WEBRTC_JSEPICECANDIDATE_H_ 92 #endif // TALK_APP_WEBRTC_JSEPICECANDIDATE_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/java/jni/androidvideocapturer_jni.h ('k') | talk/app/webrtc/jsepsessiondescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698