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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Information about all the channels of a transport. 155 // Information about all the channels of a transport.
156 // TODO(hta): Consider if a simple vector is as good as a map. 156 // TODO(hta): Consider if a simple vector is as good as a map.
157 typedef std::vector<TransportChannelStats> TransportChannelStatsList; 157 typedef std::vector<TransportChannelStats> TransportChannelStatsList;
158 158
159 // Information about the stats of a transport. 159 // Information about the stats of a transport.
160 struct TransportStats { 160 struct TransportStats {
161 std::string transport_name; 161 std::string transport_name;
162 TransportChannelStatsList channel_stats; 162 TransportChannelStatsList channel_stats;
163 }; 163 };
164 164
165 // 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
166 enum class NominationMode { REGULAR, AGGRESSIVE, SEMI_AGGRESSIVE };
167
165 // Information about ICE configuration. 168 // Information about ICE configuration.
166 // TODO(deadbeef): Use rtc::Optional to represent unset values, instead of 169 // TODO(deadbeef): Use rtc::Optional to represent unset values, instead of
167 // -1. 170 // -1.
168 struct IceConfig { 171 struct IceConfig {
169 // The ICE connection receiving timeout value in milliseconds. 172 // The ICE connection receiving timeout value in milliseconds.
170 int receiving_timeout = -1; 173 int receiving_timeout = -1;
171 // Time interval in milliseconds to ping a backup connection when the ICE 174 // Time interval in milliseconds to ping a backup connection when the ICE
172 // channel is strongly connected. 175 // channel is strongly connected.
173 int backup_connection_ping_interval = -1; 176 int backup_connection_ping_interval = -1;
174 177
(...skipping 17 matching lines...) Expand all
192 195
193 // Interval to check on all networks and to perform ICE regathering on any 196 // Interval to check on all networks and to perform ICE regathering on any
194 // active network having no connection on it. 197 // active network having no connection on it.
195 rtc::Optional<int> regather_on_failed_networks_interval; 198 rtc::Optional<int> regather_on_failed_networks_interval;
196 199
197 // The time period in which we will not switch the selected connection 200 // The time period in which we will not switch the selected connection
198 // when a new connection becomes receiving but the selected connection is not 201 // when a new connection becomes receiving but the selected connection is not
199 // in case that the selected connection may become receiving soon. 202 // in case that the selected connection may become receiving soon.
200 rtc::Optional<int> receiving_switching_delay; 203 rtc::Optional<int> receiving_switching_delay;
201 204
205 // Default nomination mode if the remote does not support renomination.
206 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.
207
202 IceConfig() {} 208 IceConfig() {}
203 IceConfig(int receiving_timeout_ms, 209 IceConfig(int receiving_timeout_ms,
204 int backup_connection_ping_interval, 210 int backup_connection_ping_interval,
205 ContinualGatheringPolicy gathering_policy, 211 ContinualGatheringPolicy gathering_policy,
206 bool prioritize_most_likely_candidate_pairs, 212 bool prioritize_most_likely_candidate_pairs,
207 int stable_writable_connection_ping_interval_ms, 213 int stable_writable_connection_ping_interval_ms,
208 bool presume_writable_when_fully_relayed, 214 bool presume_writable_when_fully_relayed,
209 int regather_on_failed_networks_interval_ms, 215 int regather_on_failed_networks_interval_ms,
210 int receiving_switching_delay_ms) 216 int receiving_switching_delay_ms)
211 : receiving_timeout(receiving_timeout_ms), 217 : receiving_timeout(receiving_timeout_ms),
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 407
402 ChannelMap channels_; 408 ChannelMap channels_;
403 409
404 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 410 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
405 }; 411 };
406 412
407 413
408 } // namespace cricket 414 } // namespace cricket
409 415
410 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 416 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« 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