| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 enum RtcpMuxPolicy { | 210 enum RtcpMuxPolicy { |
| 211 kRtcpMuxPolicyNegotiate, | 211 kRtcpMuxPolicyNegotiate, |
| 212 kRtcpMuxPolicyRequire, | 212 kRtcpMuxPolicyRequire, |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 enum TcpCandidatePolicy { | 215 enum TcpCandidatePolicy { |
| 216 kTcpCandidatePolicyEnabled, | 216 kTcpCandidatePolicyEnabled, |
| 217 kTcpCandidatePolicyDisabled | 217 kTcpCandidatePolicyDisabled |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 enum CandidateNetworkPolicy { |
| 221 kCandidateNetworkPolicyAll, |
| 222 kCandidateNetworkPolicyLowCost |
| 223 }; |
| 224 |
| 220 enum ContinualGatheringPolicy { | 225 enum ContinualGatheringPolicy { |
| 221 GATHER_ONCE, | 226 GATHER_ONCE, |
| 222 GATHER_CONTINUALLY | 227 GATHER_CONTINUALLY |
| 223 }; | 228 }; |
| 224 | 229 |
| 225 // TODO(hbos): Change into class with private data and public getters. | 230 // TODO(hbos): Change into class with private data and public getters. |
| 226 // TODO(nisse): In particular, accessing fields directly from an | 231 // TODO(nisse): In particular, accessing fields directly from an |
| 227 // application is brittle, since the organization mirrors the | 232 // application is brittle, since the organization mirrors the |
| 228 // organization of the implementation, which isn't stable. So we | 233 // organization of the implementation, which isn't stable. So we |
| 229 // need getters and setters at least for fields which applications | 234 // need getters and setters at least for fields which applications |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 static const int kAudioJitterBufferMaxPackets = 50; | 274 static const int kAudioJitterBufferMaxPackets = 50; |
| 270 // TODO(pthatcher): Rename this ice_transport_type, but update | 275 // TODO(pthatcher): Rename this ice_transport_type, but update |
| 271 // Chromium at the same time. | 276 // Chromium at the same time. |
| 272 IceTransportsType type = kAll; | 277 IceTransportsType type = kAll; |
| 273 // TODO(pthatcher): Rename this ice_servers, but update Chromium | 278 // TODO(pthatcher): Rename this ice_servers, but update Chromium |
| 274 // at the same time. | 279 // at the same time. |
| 275 IceServers servers; | 280 IceServers servers; |
| 276 BundlePolicy bundle_policy = kBundlePolicyBalanced; | 281 BundlePolicy bundle_policy = kBundlePolicyBalanced; |
| 277 RtcpMuxPolicy rtcp_mux_policy = kRtcpMuxPolicyNegotiate; | 282 RtcpMuxPolicy rtcp_mux_policy = kRtcpMuxPolicyNegotiate; |
| 278 TcpCandidatePolicy tcp_candidate_policy = kTcpCandidatePolicyEnabled; | 283 TcpCandidatePolicy tcp_candidate_policy = kTcpCandidatePolicyEnabled; |
| 284 CandidateNetworkPolicy candidate_network_policy = |
| 285 kCandidateNetworkPolicyAll; |
| 279 int audio_jitter_buffer_max_packets = kAudioJitterBufferMaxPackets; | 286 int audio_jitter_buffer_max_packets = kAudioJitterBufferMaxPackets; |
| 280 bool audio_jitter_buffer_fast_accelerate = false; | 287 bool audio_jitter_buffer_fast_accelerate = false; |
| 281 int ice_connection_receiving_timeout = kUndefined; // ms | 288 int ice_connection_receiving_timeout = kUndefined; // ms |
| 282 int ice_backup_candidate_pair_ping_interval = kUndefined; // ms | 289 int ice_backup_candidate_pair_ping_interval = kUndefined; // ms |
| 283 ContinualGatheringPolicy continual_gathering_policy = GATHER_ONCE; | 290 ContinualGatheringPolicy continual_gathering_policy = GATHER_ONCE; |
| 284 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; | 291 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; |
| 285 bool prioritize_most_likely_ice_candidate_pairs = false; | 292 bool prioritize_most_likely_ice_candidate_pairs = false; |
| 286 struct cricket::MediaConfig media_config; | 293 struct cricket::MediaConfig media_config; |
| 287 // Flags corresponding to values set by constraint flags. | 294 // Flags corresponding to values set by constraint flags. |
| 288 // rtc::Optional flags can be "missing", in which case the webrtc | 295 // rtc::Optional flags can be "missing", in which case the webrtc |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 721 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 715 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 722 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
| 716 return CreatePeerConnectionFactory( | 723 return CreatePeerConnectionFactory( |
| 717 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 724 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
| 718 default_adm, encoder_factory, decoder_factory); | 725 default_adm, encoder_factory, decoder_factory); |
| 719 } | 726 } |
| 720 | 727 |
| 721 } // namespace webrtc | 728 } // namespace webrtc |
| 722 | 729 |
| 723 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 730 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |