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

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

Issue 2156253002: Restore the behavior where an ICE restart redetermines the ICE role. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@53
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 bool RemoveRemoteCandidates(const std::vector<Candidate>& candidates, 283 bool RemoveRemoteCandidates(const std::vector<Candidate>& candidates,
284 std::string* error); 284 std::string* error);
285 285
286 virtual bool GetSslRole(rtc::SSLRole* ssl_role) const { return false; } 286 virtual bool GetSslRole(rtc::SSLRole* ssl_role) const { return false; }
287 287
288 // Must be called before channel is starting to connect. 288 // Must be called before channel is starting to connect.
289 virtual bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version) { 289 virtual bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version) {
290 return false; 290 return false;
291 } 291 }
292 292
293 // The current local transport description, for use by derived classes
294 // when performing transport description negotiation, and possibly used
295 // by the transport controller.
296 const TransportDescription* local_description() const {
297 return local_description_.get();
298 }
299
300 // The current remote transport description, for use by derived classes
301 // when performing transport description negotiation, and possibly used
302 // by the transport controller.
303 const TransportDescription* remote_description() const {
304 return remote_description_.get();
305 }
306
293 protected: 307 protected:
294 // These are called by Create/DestroyChannel above in order to create or 308 // These are called by Create/DestroyChannel above in order to create or
295 // destroy the appropriate type of channel. 309 // destroy the appropriate type of channel.
296 virtual TransportChannelImpl* CreateTransportChannel(int component) = 0; 310 virtual TransportChannelImpl* CreateTransportChannel(int component) = 0;
297 virtual void DestroyTransportChannel(TransportChannelImpl* channel) = 0; 311 virtual void DestroyTransportChannel(TransportChannelImpl* channel) = 0;
298 312
299 // The current local transport description, for use by derived classes
300 // when performing transport description negotiation.
301 const TransportDescription* local_description() const {
302 return local_description_.get();
303 }
304
305 // The current remote transport description, for use by derived classes
306 // when performing transport description negotiation.
307 const TransportDescription* remote_description() const {
308 return remote_description_.get();
309 }
310
311 // Pushes down the transport parameters from the local description, such 313 // Pushes down the transport parameters from the local description, such
312 // as the ICE ufrag and pwd. 314 // as the ICE ufrag and pwd.
313 // Derived classes can override, but must call the base as well. 315 // Derived classes can override, but must call the base as well.
314 virtual bool ApplyLocalTransportDescription(TransportChannelImpl* channel, 316 virtual bool ApplyLocalTransportDescription(TransportChannelImpl* channel,
315 std::string* error_desc); 317 std::string* error_desc);
316 318
317 // Pushes down remote ice credentials from the remote description to the 319 // Pushes down remote ice credentials from the remote description to the
318 // transport channel. 320 // transport channel.
319 virtual bool ApplyRemoteTransportDescription(TransportChannelImpl* ch, 321 virtual bool ApplyRemoteTransportDescription(TransportChannelImpl* ch,
320 std::string* error_desc); 322 std::string* error_desc);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 378
377 ChannelMap channels_; 379 ChannelMap channels_;
378 380
379 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 381 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
380 }; 382 };
381 383
382 384
383 } // namespace cricket 385 } // namespace cricket
384 386
385 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 387 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698