| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 ContinualGatheringPolicy continual_gathering_policy; | 272 ContinualGatheringPolicy continual_gathering_policy; |
| 273 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; | 273 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; |
| 274 bool disable_prerenderer_smoothing; | 274 bool disable_prerenderer_smoothing; |
| 275 bool prioritize_most_likely_ice_candidate_pairs; | 275 bool prioritize_most_likely_ice_candidate_pairs; |
| 276 // Flags corresponding to values set by constraint flags. | 276 // Flags corresponding to values set by constraint flags. |
| 277 // rtc::Optional flags can be "missing", in which case the webrtc | 277 // rtc::Optional flags can be "missing", in which case the webrtc |
| 278 // default applies. | 278 // default applies. |
| 279 bool disable_ipv6; | 279 bool disable_ipv6; |
| 280 rtc::Optional<bool> enable_dscp; | 280 rtc::Optional<bool> enable_dscp; |
| 281 bool enable_rtp_data_channel; | 281 bool enable_rtp_data_channel; |
| 282 bool enable_quic; |
| 282 rtc::Optional<bool> cpu_overuse_detection; | 283 rtc::Optional<bool> cpu_overuse_detection; |
| 283 rtc::Optional<bool> suspend_below_min_bitrate; | 284 rtc::Optional<bool> suspend_below_min_bitrate; |
| 284 rtc::Optional<int> screencast_min_bitrate; | 285 rtc::Optional<int> screencast_min_bitrate; |
| 285 rtc::Optional<bool> combined_audio_video_bwe; | 286 rtc::Optional<bool> combined_audio_video_bwe; |
| 286 rtc::Optional<bool> enable_dtls_srtp; | 287 rtc::Optional<bool> enable_dtls_srtp; |
| 287 RTCConfiguration() | 288 RTCConfiguration() |
| 288 : type(kAll), | 289 : type(kAll), |
| 289 bundle_policy(kBundlePolicyBalanced), | 290 bundle_policy(kBundlePolicyBalanced), |
| 290 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), | 291 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
| 291 tcp_candidate_policy(kTcpCandidatePolicyEnabled), | 292 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
| 292 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), | 293 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), |
| 293 audio_jitter_buffer_fast_accelerate(false), | 294 audio_jitter_buffer_fast_accelerate(false), |
| 294 ice_connection_receiving_timeout(kUndefined), | 295 ice_connection_receiving_timeout(kUndefined), |
| 295 ice_backup_candidate_pair_ping_interval(kUndefined), | 296 ice_backup_candidate_pair_ping_interval(kUndefined), |
| 296 continual_gathering_policy(GATHER_ONCE), | 297 continual_gathering_policy(GATHER_ONCE), |
| 297 disable_prerenderer_smoothing(false), | 298 disable_prerenderer_smoothing(false), |
| 298 prioritize_most_likely_ice_candidate_pairs(false), | 299 prioritize_most_likely_ice_candidate_pairs(false), |
| 299 disable_ipv6(false), | 300 disable_ipv6(false), |
| 300 enable_rtp_data_channel(false) {} | 301 enable_rtp_data_channel(false), |
| 302 enable_quic(false) {} |
| 301 }; | 303 }; |
| 302 | 304 |
| 303 struct RTCOfferAnswerOptions { | 305 struct RTCOfferAnswerOptions { |
| 304 static const int kUndefined = -1; | 306 static const int kUndefined = -1; |
| 305 static const int kMaxOfferToReceiveMedia = 1; | 307 static const int kMaxOfferToReceiveMedia = 1; |
| 306 | 308 |
| 307 // The default value for constraint offerToReceiveX:true. | 309 // The default value for constraint offerToReceiveX:true. |
| 308 static const int kOfferToReceiveMediaTrue = 1; | 310 static const int kOfferToReceiveMediaTrue = 1; |
| 309 | 311 |
| 310 int offer_to_receive_video; | 312 int offer_to_receive_video; |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 CreatePeerConnectionFactory( | 689 CreatePeerConnectionFactory( |
| 688 rtc::Thread* worker_thread, | 690 rtc::Thread* worker_thread, |
| 689 rtc::Thread* signaling_thread, | 691 rtc::Thread* signaling_thread, |
| 690 AudioDeviceModule* default_adm, | 692 AudioDeviceModule* default_adm, |
| 691 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 693 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 692 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 694 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
| 693 | 695 |
| 694 } // namespace webrtc | 696 } // namespace webrtc |
| 695 | 697 |
| 696 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 698 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |