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

Side by Side Diff: webrtc/p2p/base/transport.h

Issue 1844803002: Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 max_strong_interval(max_strong_interval_ms) {} 170 max_strong_interval(max_strong_interval_ms) {}
171 }; 171 };
172 172
173 bool BadTransportDescription(const std::string& desc, std::string* err_desc); 173 bool BadTransportDescription(const std::string& desc, std::string* err_desc);
174 174
175 bool IceCredentialsChanged(const std::string& old_ufrag, 175 bool IceCredentialsChanged(const std::string& old_ufrag,
176 const std::string& old_pwd, 176 const std::string& old_pwd,
177 const std::string& new_ufrag, 177 const std::string& new_ufrag,
178 const std::string& new_pwd); 178 const std::string& new_pwd);
179 179
180 class Transport : public sigslot::has_slots<> { 180 class Transport {
181 public: 181 public:
182 Transport(const std::string& name, PortAllocator* allocator); 182 Transport(const std::string& name, PortAllocator* allocator);
183 virtual ~Transport(); 183 virtual ~Transport();
184 184
185 // Returns the name of this transport. 185 // Returns the name of this transport.
186 const std::string& name() const { return name_; } 186 const std::string& name() const { return name_; }
187 187
188 // Returns the port allocator object for this transport. 188 // Returns the port allocator object for this transport.
189 PortAllocator* port_allocator() { return allocator_; } 189 PortAllocator* port_allocator() { return allocator_; }
190 190
191 bool ready_for_remote_candidates() const { 191 bool ready_for_remote_candidates() const {
192 return local_description_set_ && remote_description_set_; 192 return local_description_set_ && remote_description_set_;
193 } 193 }
194 194
195 // Returns whether the client has requested the channels to connect. 195 // Returns whether the client has requested the channels to connect.
196 bool connect_requested() const { return connect_requested_; } 196 bool connect_requested() const { return connect_requested_; }
197 197
198 void SetIceRole(IceRole role); 198 void SetIceRole(IceRole role);
199 IceRole ice_role() const { return ice_role_; } 199 IceRole ice_role() const { return ice_role_; }
200 200
201 void SetIceTiebreaker(uint64_t IceTiebreaker) { tiebreaker_ = IceTiebreaker; } 201 void SetIceTiebreaker(uint64_t IceTiebreaker) { tiebreaker_ = IceTiebreaker; }
202 uint64_t IceTiebreaker() { return tiebreaker_; } 202 uint64_t IceTiebreaker() { return tiebreaker_; }
203 203
204 void SetIceConfig(const IceConfig& config); 204 void SetIceConfig(const IceConfig& config);
205 205
206 // Must be called before applying local session description. 206 // Must be called before applying local session description.
207 virtual void SetLocalCertificate( 207 virtual bool SetLocalCertificate(
208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {} 208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {
209 return false;
210 }
mikescarlett 2016/04/05 19:58:52 Note: I originally modified Transport to let QuicT
209 211
210 // Get a copy of the local certificate provided by SetLocalCertificate. 212 // Get a copy of the local certificate provided by SetLocalCertificate.
211 virtual bool GetLocalCertificate( 213 virtual bool GetLocalCertificate(
212 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) { 214 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) {
213 return false; 215 return false;
214 } 216 }
215 217
216 // Get a copy of the remote certificate in use by the specified channel. 218 // Get a copy of the remote certificate in use by the specified channel.
217 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert); 219 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert);
218 220
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 342
341 ChannelMap channels_; 343 ChannelMap channels_;
342 344
343 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 345 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
344 }; 346 };
345 347
346 348
347 } // namespace cricket 349 } // namespace cricket
348 350
349 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 351 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698