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

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

Issue 2163403002: Prepare for ICE-renomination (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: . Created 4 years, 4 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
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/p2p/base/stun.h ('k') | no next file » | 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 a7ca72ff8ea1ed8979d29486ed1f564572d4b281..716665a023bb840197c7b9dce9e7e6535d39541f 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -162,6 +162,9 @@ struct TransportStats {
TransportChannelStatsList channel_stats;
};
+// ICE Nomination mode.
pthatcher1 2016/08/03 22:13:25 Can you move the definitions of these from the oth
honghaiz3 2016/08/03 23:39:52 Done. I kept the details of SEMI_AGGRESSIVE in p2p
+enum class NominationMode { REGULAR, AGGRESSIVE, SEMI_AGGRESSIVE };
+
// Information about ICE configuration.
// TODO(deadbeef): Use rtc::Optional to represent unset values, instead of
// -1.
@@ -199,6 +202,9 @@ struct IceConfig {
// in case that the selected connection may become receiving soon.
rtc::Optional<int> receiving_switching_delay;
+ // Default nomination mode if the remote does not support renomination.
+ NominationMode default_nomination_mode = NominationMode::SEMI_AGGRESSIVE;
pthatcher1 2016/08/03 22:13:25 Can you put a TODO to change it to REGULAR?
honghaiz3 2016/08/03 23:39:52 Done.
+
IceConfig() {}
IceConfig(int receiving_timeout_ms,
int backup_connection_ping_interval,
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/p2p/base/stun.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698