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

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: Rebase to master 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
« no previous file with comments | « webrtc/p2p/base/session.cc ('k') | webrtc/p2p/base/transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.h
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h
index cd763ab3bcf1404c441e29a6b326c1e5a9c0631d..10b289ce2082864c53a00def0c7c4d19511beb9c 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 gather_continually = 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;
« no previous file with comments | « webrtc/p2p/base/session.cc ('k') | webrtc/p2p/base/transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698