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

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

Issue 2563153002: Implement the "needs-ice-restart" logic for SetConfiguration. (Closed)
Patch Set: Fixing signed/unsigned comparison warning. Created 4 years 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 | « webrtc/p2p/base/jseptransport_unittest.cc ('k') | 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 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PortAllocator* port_allocator() const { return port_allocator_; } 57 PortAllocator* port_allocator() const { return port_allocator_; }
58 58
59 // Can only be set before transports are created. 59 // Can only be set before transports are created.
60 // TODO(deadbeef): Make this an argument to the constructor once BaseSession 60 // TODO(deadbeef): Make this an argument to the constructor once BaseSession
61 // and WebRtcSession are combined 61 // and WebRtcSession are combined
62 bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version); 62 bool SetSslMaxProtocolVersion(rtc::SSLProtocolVersion version);
63 63
64 void SetIceConfig(const IceConfig& config); 64 void SetIceConfig(const IceConfig& config);
65 void SetIceRole(IceRole ice_role); 65 void SetIceRole(IceRole ice_role);
66 66
67 // Set the "needs-ice-restart" flag as described in JSEP. After the flag is
68 // set, offers should generate new ufrags/passwords until an ICE restart
69 // occurs.
70 void SetNeedsIceRestartFlag();
71 // Returns true if the ICE restart flag above was set, and no ICE restart has
72 // occurred yet for this transport (by applying a local description with
73 // changed ufrag/password). If the transport has been deleted as a result of
74 // bundling, returns false.
75 bool NeedsIceRestart(const std::string& transport_name) const;
76
67 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role) const; 77 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role) const;
68 78
69 // Specifies the identity to use in this session. 79 // Specifies the identity to use in this session.
70 // Can only be called once. 80 // Can only be called once.
71 bool SetLocalCertificate( 81 bool SetLocalCertificate(
72 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 82 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
73 bool GetLocalCertificate( 83 bool GetLocalCertificate(
74 const std::string& transport_name, 84 const std::string& transport_name,
75 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) const; 85 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) const;
76 // Caller owns returned certificate. This method mainly exists for stats 86 // Caller owns returned certificate. This method mainly exists for stats
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 }; 206 };
197 207
198 // Helper functions to get a channel or transport, or iterator to it (in case 208 // Helper functions to get a channel or transport, or iterator to it (in case
199 // it needs to be erased). 209 // it needs to be erased).
200 std::vector<RefCountedChannel>::iterator GetChannelIterator_n( 210 std::vector<RefCountedChannel>::iterator GetChannelIterator_n(
201 const std::string& transport_name, 211 const std::string& transport_name,
202 int component); 212 int component);
203 std::vector<RefCountedChannel>::const_iterator GetChannelIterator_n( 213 std::vector<RefCountedChannel>::const_iterator GetChannelIterator_n(
204 const std::string& transport_name, 214 const std::string& transport_name,
205 int component) const; 215 int component) const;
206 const JsepTransport* GetJsepTransport_n( 216 const JsepTransport* GetJsepTransport(
207 const std::string& transport_name) const; 217 const std::string& transport_name) const;
208 JsepTransport* GetJsepTransport_n(const std::string& transport_name); 218 JsepTransport* GetJsepTransport(const std::string& transport_name);
209 const RefCountedChannel* GetChannel_n(const std::string& transport_name, 219 const RefCountedChannel* GetChannel_n(const std::string& transport_name,
210 int component) const; 220 int component) const;
211 RefCountedChannel* GetChannel_n(const std::string& transport_name, 221 RefCountedChannel* GetChannel_n(const std::string& transport_name,
212 int component); 222 int component);
213 223
214 JsepTransport* GetOrCreateJsepTransport_n(const std::string& transport_name); 224 JsepTransport* GetOrCreateJsepTransport(const std::string& transport_name);
215 void DestroyAllChannels_n(); 225 void DestroyAllChannels_n();
216 226
217 bool SetSslMaxProtocolVersion_n(rtc::SSLProtocolVersion version); 227 bool SetSslMaxProtocolVersion_n(rtc::SSLProtocolVersion version);
218 void SetIceConfig_n(const IceConfig& config); 228 void SetIceConfig_n(const IceConfig& config);
219 void SetIceRole_n(IceRole ice_role); 229 void SetIceRole_n(IceRole ice_role);
220 bool GetSslRole_n(const std::string& transport_name, 230 bool GetSslRole_n(const std::string& transport_name,
221 rtc::SSLRole* role) const; 231 rtc::SSLRole* role) const;
222 bool SetLocalCertificate_n( 232 bool SetLocalCertificate_n(
223 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 233 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
224 bool GetLocalCertificate_n( 234 bool GetLocalCertificate_n(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 rtc::AsyncInvoker invoker_; 290 rtc::AsyncInvoker invoker_;
281 // True if QUIC is used instead of DTLS. 291 // True if QUIC is used instead of DTLS.
282 bool quic_ = false; 292 bool quic_ = false;
283 293
284 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 294 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
285 }; 295 };
286 296
287 } // namespace cricket 297 } // namespace cricket
288 298
289 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 299 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/jseptransport_unittest.cc ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698