| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 // argument. | 564 // argument. |
| 565 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { | 565 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { |
| 566 public: | 566 public: |
| 567 class Options { | 567 class Options { |
| 568 public: | 568 public: |
| 569 Options() | 569 Options() |
| 570 : disable_encryption(false), | 570 : disable_encryption(false), |
| 571 disable_sctp_data_channels(false), | 571 disable_sctp_data_channels(false), |
| 572 disable_network_monitor(false), | 572 disable_network_monitor(false), |
| 573 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), | 573 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), |
| 574 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_12) {} | 574 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_12), |
| 575 crypto_options(rtc::CryptoOptions::NoGcm()) {} |
| 575 bool disable_encryption; | 576 bool disable_encryption; |
| 576 bool disable_sctp_data_channels; | 577 bool disable_sctp_data_channels; |
| 577 bool disable_network_monitor; | 578 bool disable_network_monitor; |
| 578 | 579 |
| 579 // Sets the network types to ignore. For instance, calling this with | 580 // Sets the network types to ignore. For instance, calling this with |
| 580 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and | 581 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and |
| 581 // loopback interfaces. | 582 // loopback interfaces. |
| 582 int network_ignore_mask; | 583 int network_ignore_mask; |
| 583 | 584 |
| 584 // Sets the maximum supported protocol version. The highest version | 585 // Sets the maximum supported protocol version. The highest version |
| 585 // supported by both ends will be used for the connection, i.e. if one | 586 // supported by both ends will be used for the connection, i.e. if one |
| 586 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. | 587 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. |
| 587 rtc::SSLProtocolVersion ssl_max_version; | 588 rtc::SSLProtocolVersion ssl_max_version; |
| 589 |
| 590 // Sets crypto related options, e.g. enabled cipher suites. |
| 591 rtc::CryptoOptions crypto_options; |
| 588 }; | 592 }; |
| 589 | 593 |
| 590 virtual void SetOptions(const Options& options) = 0; | 594 virtual void SetOptions(const Options& options) = 0; |
| 591 | 595 |
| 592 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 596 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
| 593 const PeerConnectionInterface::RTCConfiguration& configuration, | 597 const PeerConnectionInterface::RTCConfiguration& configuration, |
| 594 const MediaConstraintsInterface* constraints, | 598 const MediaConstraintsInterface* constraints, |
| 595 std::unique_ptr<cricket::PortAllocator> allocator, | 599 std::unique_ptr<cricket::PortAllocator> allocator, |
| 596 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 600 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
| 597 PeerConnectionObserver* observer) = 0; | 601 PeerConnectionObserver* observer) = 0; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 CreatePeerConnectionFactory( | 699 CreatePeerConnectionFactory( |
| 696 rtc::Thread* worker_thread, | 700 rtc::Thread* worker_thread, |
| 697 rtc::Thread* signaling_thread, | 701 rtc::Thread* signaling_thread, |
| 698 AudioDeviceModule* default_adm, | 702 AudioDeviceModule* default_adm, |
| 699 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 703 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 700 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 704 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
| 701 | 705 |
| 702 } // namespace webrtc | 706 } // namespace webrtc |
| 703 | 707 |
| 704 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 708 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |