Index: webrtc/p2p/base/transport.h |
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h |
index cd763ab3bcf1404c441e29a6b326c1e5a9c0631d..fad92461fa9fd89e0c5e44aafc67c1dbfa594cfa 100644 |
--- a/webrtc/p2p/base/transport.h |
+++ b/webrtc/p2p/base/transport.h |
@@ -139,6 +139,11 @@ struct TransportStats { |
TransportChannelStatsList channel_stats; |
}; |
+struct IceConfig { |
+ int receiving_timeout_ms = -1; |
+ bool continue_getting_ports = false; |
pthatcher1
2015/09/25 17:37:47
We need to comment what effect these have here.
honghaiz3
2015/09/25 20:10:20
Done.
|
+}; |
+ |
bool BadTransportDescription(const std::string& desc, std::string* err_desc); |
bool IceCredentialsChanged(const std::string& old_ufrag, |
@@ -197,7 +202,7 @@ class Transport : public sigslot::has_slots<> { |
void SetIceTiebreaker(uint64 IceTiebreaker) { tiebreaker_ = IceTiebreaker; } |
uint64 IceTiebreaker() { return tiebreaker_; } |
- void SetChannelReceivingTimeout(int timeout_ms); |
+ void SetIceConfig(const IceConfig& config); |
// Must be called before applying local session description. |
virtual void SetLocalCertificate( |
@@ -399,7 +404,7 @@ class Transport : public sigslot::has_slots<> { |
IceRole ice_role_ = ICEROLE_UNKNOWN; |
uint64 tiebreaker_ = 0; |
IceMode remote_ice_mode_ = ICEMODE_FULL; |
- int channel_receiving_timeout_ = -1; |
+ IceConfig ice_config_; |
rtc::scoped_ptr<TransportDescription> local_description_; |
rtc::scoped_ptr<TransportDescription> remote_description_; |
bool local_description_set_ = false; |