Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 | 205 |
| 206 // The time period in which we will not switch the selected connection | 206 // The time period in which we will not switch the selected connection |
| 207 // when a new connection becomes receiving but the selected connection is not | 207 // when a new connection becomes receiving but the selected connection is not |
| 208 // in case that the selected connection may become receiving soon. | 208 // in case that the selected connection may become receiving soon. |
| 209 rtc::Optional<int> receiving_switching_delay; | 209 rtc::Optional<int> receiving_switching_delay; |
| 210 | 210 |
| 211 // TODO(honghaiz): Change the default to regular nomination. | 211 // TODO(honghaiz): Change the default to regular nomination. |
| 212 // Default nomination mode if the remote does not support renomination. | 212 // Default nomination mode if the remote does not support renomination. |
| 213 NominationMode default_nomination_mode = NominationMode::SEMI_AGGRESSIVE; | 213 NominationMode default_nomination_mode = NominationMode::SEMI_AGGRESSIVE; |
| 214 | 214 |
| 215 // If set to true, if the remote side supports ICE renomination, we will use | |
| 216 // renomination (if this side has the controlling role). | |
| 217 bool use_renomination_if_remote_supports = false; | |
|
Taylor Brandstetter
2016/08/08 22:28:16
Why not just use `SetIceParameters` with `renomina
honghaiz3
2016/08/11 04:57:57
So we will have a single control to control both
| |
| 218 | |
| 215 IceConfig() {} | 219 IceConfig() {} |
| 216 IceConfig(int receiving_timeout_ms, | 220 IceConfig(int receiving_timeout_ms, |
| 217 int backup_connection_ping_interval, | 221 int backup_connection_ping_interval, |
| 218 ContinualGatheringPolicy gathering_policy, | 222 ContinualGatheringPolicy gathering_policy, |
| 219 bool prioritize_most_likely_candidate_pairs, | 223 bool prioritize_most_likely_candidate_pairs, |
| 220 int stable_writable_connection_ping_interval_ms, | 224 int stable_writable_connection_ping_interval_ms, |
| 221 bool presume_writable_when_fully_relayed, | 225 bool presume_writable_when_fully_relayed, |
| 222 int regather_on_failed_networks_interval_ms, | 226 int regather_on_failed_networks_interval_ms, |
| 223 int receiving_switching_delay_ms) | 227 int receiving_switching_delay_ms) |
| 224 : receiving_timeout(receiving_timeout_ms), | 228 : receiving_timeout(receiving_timeout_ms), |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 414 | 418 |
| 415 ChannelMap channels_; | 419 ChannelMap channels_; |
| 416 | 420 |
| 417 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 421 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
| 418 }; | 422 }; |
| 419 | 423 |
| 420 | 424 |
| 421 } // namespace cricket | 425 } // namespace cricket |
| 422 | 426 |
| 423 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 427 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
| OLD | NEW |