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) {} |
mattdr
2016/05/06 22:34:13
Everything else here gets an explicit default. I'd
joachim
2016/05/09 23:21:40
Right, that's a good idea. Done.
| |
575 bool disable_encryption; | 575 bool disable_encryption; |
576 bool disable_sctp_data_channels; | 576 bool disable_sctp_data_channels; |
577 bool disable_network_monitor; | 577 bool disable_network_monitor; |
578 | 578 |
579 // Sets the network types to ignore. For instance, calling this with | 579 // Sets the network types to ignore. For instance, calling this with |
580 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and | 580 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and |
581 // loopback interfaces. | 581 // loopback interfaces. |
582 int network_ignore_mask; | 582 int network_ignore_mask; |
583 | 583 |
584 // Sets the maximum supported protocol version. The highest version | 584 // Sets the maximum supported protocol version. The highest version |
585 // supported by both ends will be used for the connection, i.e. if one | 585 // 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. | 586 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. |
587 rtc::SSLProtocolVersion ssl_max_version; | 587 rtc::SSLProtocolVersion ssl_max_version; |
588 | |
589 // Sets crypto related options, e.g. enabled cipher suites. | |
590 rtc::CryptoOptions crypto_options; | |
588 }; | 591 }; |
589 | 592 |
590 virtual void SetOptions(const Options& options) = 0; | 593 virtual void SetOptions(const Options& options) = 0; |
591 | 594 |
592 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 595 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
593 const PeerConnectionInterface::RTCConfiguration& configuration, | 596 const PeerConnectionInterface::RTCConfiguration& configuration, |
594 const MediaConstraintsInterface* constraints, | 597 const MediaConstraintsInterface* constraints, |
595 std::unique_ptr<cricket::PortAllocator> allocator, | 598 std::unique_ptr<cricket::PortAllocator> allocator, |
596 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 599 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
597 PeerConnectionObserver* observer) = 0; | 600 PeerConnectionObserver* observer) = 0; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
695 CreatePeerConnectionFactory( | 698 CreatePeerConnectionFactory( |
696 rtc::Thread* worker_thread, | 699 rtc::Thread* worker_thread, |
697 rtc::Thread* signaling_thread, | 700 rtc::Thread* signaling_thread, |
698 AudioDeviceModule* default_adm, | 701 AudioDeviceModule* default_adm, |
699 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 702 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
700 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 703 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
701 | 704 |
702 } // namespace webrtc | 705 } // namespace webrtc |
703 | 706 |
704 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 707 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |