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

Unified Diff: webrtc/p2p/base/transport.h

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698