Index: webrtc/p2p/base/transportcontroller.h |
diff --git a/webrtc/p2p/base/transportcontroller.h b/webrtc/p2p/base/transportcontroller.h |
index cdac4b6dcb5e72a08761a593b02d2f5fae9812c5..819a9ac451da8f82a8a4f6db63227b3105a30b8a 100644 |
--- a/webrtc/p2p/base/transportcontroller.h |
+++ b/webrtc/p2p/base/transportcontroller.h |
@@ -64,6 +64,13 @@ class TransportController : public sigslot::has_slots<>, |
void SetIceConfig(const IceConfig& config); |
void SetIceRole(IceRole ice_role); |
+ // Set the "needs-ice-restart" flag as described in JSEP. |
+ void SetNeedsIceRestartFlag(); |
+ // Returns true if the ICE restart flag above was set, and no ICE restart has |
+ // occurred yet for |transport_name|. If the transport has been deleted as a |
+ // result of bundling, returns false. |
+ bool NeedsIceRestart(const std::string& transport_name) const; |
+ |
bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role) const; |
// Specifies the identity to use in this session. |
@@ -203,15 +210,15 @@ class TransportController : public sigslot::has_slots<>, |
std::vector<RefCountedChannel>::const_iterator GetChannelIterator_n( |
const std::string& transport_name, |
int component) const; |
- const JsepTransport* GetJsepTransport_n( |
+ const JsepTransport* GetJsepTransport( |
const std::string& transport_name) const; |
- JsepTransport* GetJsepTransport_n(const std::string& transport_name); |
+ JsepTransport* GetJsepTransport(const std::string& transport_name); |
const RefCountedChannel* GetChannel_n(const std::string& transport_name, |
int component) const; |
RefCountedChannel* GetChannel_n(const std::string& transport_name, |
int component); |
- JsepTransport* GetOrCreateJsepTransport_n(const std::string& transport_name); |
+ JsepTransport* GetOrCreateJsepTransport(const std::string& transport_name); |
void DestroyAllChannels_n(); |
bool SetSslMaxProtocolVersion_n(rtc::SSLProtocolVersion version); |