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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 // argument. | 586 // argument. |
587 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { | 587 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { |
588 public: | 588 public: |
589 class Options { | 589 class Options { |
590 public: | 590 public: |
591 Options() | 591 Options() |
592 : disable_encryption(false), | 592 : disable_encryption(false), |
593 disable_sctp_data_channels(false), | 593 disable_sctp_data_channels(false), |
594 disable_network_monitor(false), | 594 disable_network_monitor(false), |
595 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), | 595 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), |
596 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_12) {} | 596 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_12), |
| 597 crypto_options(rtc::CryptoOptions::NoGcm()) {} |
597 bool disable_encryption; | 598 bool disable_encryption; |
598 bool disable_sctp_data_channels; | 599 bool disable_sctp_data_channels; |
599 bool disable_network_monitor; | 600 bool disable_network_monitor; |
600 | 601 |
601 // Sets the network types to ignore. For instance, calling this with | 602 // Sets the network types to ignore. For instance, calling this with |
602 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and | 603 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and |
603 // loopback interfaces. | 604 // loopback interfaces. |
604 int network_ignore_mask; | 605 int network_ignore_mask; |
605 | 606 |
606 // Sets the maximum supported protocol version. The highest version | 607 // Sets the maximum supported protocol version. The highest version |
607 // supported by both ends will be used for the connection, i.e. if one | 608 // supported by both ends will be used for the connection, i.e. if one |
608 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. | 609 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. |
609 rtc::SSLProtocolVersion ssl_max_version; | 610 rtc::SSLProtocolVersion ssl_max_version; |
| 611 |
| 612 // Sets crypto related options, e.g. enabled cipher suites. |
| 613 rtc::CryptoOptions crypto_options; |
610 }; | 614 }; |
611 | 615 |
612 virtual void SetOptions(const Options& options) = 0; | 616 virtual void SetOptions(const Options& options) = 0; |
613 | 617 |
614 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 618 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
615 const PeerConnectionInterface::RTCConfiguration& configuration, | 619 const PeerConnectionInterface::RTCConfiguration& configuration, |
616 const MediaConstraintsInterface* constraints, | 620 const MediaConstraintsInterface* constraints, |
617 std::unique_ptr<cricket::PortAllocator> allocator, | 621 std::unique_ptr<cricket::PortAllocator> allocator, |
618 std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, | 622 std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, |
619 PeerConnectionObserver* observer) = 0; | 623 PeerConnectionObserver* observer) = 0; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 734 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
731 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 735 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
732 return CreatePeerConnectionFactory( | 736 return CreatePeerConnectionFactory( |
733 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 737 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
734 default_adm, encoder_factory, decoder_factory); | 738 default_adm, encoder_factory, decoder_factory); |
735 } | 739 } |
736 | 740 |
737 } // namespace webrtc | 741 } // namespace webrtc |
738 | 742 |
739 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 743 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |