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

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: Addressed comments 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..932e7729b26e0a301eb80c4a8f65cb62a25e1b9e 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -139,6 +139,14 @@ struct TransportStats {
TransportChannelStatsList channel_stats;
};
+// Information about ICE configuration.
+struct IceConfig {
+ // The ICE connection receiving timeout value.
+ int receiving_timeout_ms = -1;
+ // If true, the most recent port allocator session will keep on running.
+ bool continuous_gathering = false;
+};
+
bool BadTransportDescription(const std::string& desc, std::string* err_desc);
bool IceCredentialsChanged(const std::string& old_ufrag,
@@ -197,7 +205,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 +407,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