Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 kTcpCandidatePolicyDisabled | 214 kTcpCandidatePolicyDisabled |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 struct RTCConfiguration { | 217 struct RTCConfiguration { |
| 218 // TODO(pthatcher): Rename this ice_transport_type, but update | 218 // TODO(pthatcher): Rename this ice_transport_type, but update |
| 219 // Chromium at the same time. | 219 // Chromium at the same time. |
| 220 IceTransportsType type; | 220 IceTransportsType type; |
| 221 // TODO(pthatcher): Rename this ice_servers, but update Chromium | 221 // TODO(pthatcher): Rename this ice_servers, but update Chromium |
| 222 // at the same time. | 222 // at the same time. |
| 223 IceServers servers; | 223 IceServers servers; |
| 224 // If |enable_localhost_ice_candidate| is true, localhost will be issued as | |
| 225 // candidate in the case when multiple_routes is disabled. | |
|
pthatcher1
2015/08/07 21:59:49
Would it be easier to reason about the rule "a loc
guoweis_webrtc
2015/08/13 15:08:52
Done.
| |
| 226 bool enable_localhost_ice_candidate; | |
| 224 BundlePolicy bundle_policy; | 227 BundlePolicy bundle_policy; |
| 225 RtcpMuxPolicy rtcp_mux_policy; | 228 RtcpMuxPolicy rtcp_mux_policy; |
| 226 TcpCandidatePolicy tcp_candidate_policy; | 229 TcpCandidatePolicy tcp_candidate_policy; |
| 227 int audio_jitter_buffer_max_packets; | 230 int audio_jitter_buffer_max_packets; |
| 228 bool audio_jitter_buffer_fast_accelerate; | 231 bool audio_jitter_buffer_fast_accelerate; |
| 229 | 232 |
| 230 RTCConfiguration() | 233 RTCConfiguration() |
| 231 : type(kAll), | 234 : type(kAll), |
| 235 enable_localhost_ice_candidate(false), | |
| 232 bundle_policy(kBundlePolicyBalanced), | 236 bundle_policy(kBundlePolicyBalanced), |
| 233 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), | 237 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
| 234 tcp_candidate_policy(kTcpCandidatePolicyEnabled), | 238 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
| 235 audio_jitter_buffer_max_packets(50), | 239 audio_jitter_buffer_max_packets(50), |
| 236 audio_jitter_buffer_fast_accelerate(false) {} | 240 audio_jitter_buffer_fast_accelerate(false) {} |
| 237 }; | 241 }; |
| 238 | 242 |
| 239 struct RTCOfferAnswerOptions { | 243 struct RTCOfferAnswerOptions { |
| 240 static const int kUndefined = -1; | 244 static const int kUndefined = -1; |
| 241 static const int kMaxOfferToReceiveMedia = 1; | 245 static const int kMaxOfferToReceiveMedia = 1; |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 627 CreatePeerConnectionFactory( | 631 CreatePeerConnectionFactory( |
| 628 rtc::Thread* worker_thread, | 632 rtc::Thread* worker_thread, |
| 629 rtc::Thread* signaling_thread, | 633 rtc::Thread* signaling_thread, |
| 630 AudioDeviceModule* default_adm, | 634 AudioDeviceModule* default_adm, |
| 631 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 635 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 632 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 636 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
| 633 | 637 |
| 634 } // namespace webrtc | 638 } // namespace webrtc |
| 635 | 639 |
| 636 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 640 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |