OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2011 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 17 matching lines...) Expand all Loading... |
28 class BasicPacketSocketFactory; | 28 class BasicPacketSocketFactory; |
29 } | 29 } |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 | 32 |
33 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> | 33 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> |
34 RefCountedDtlsIdentityStore; | 34 RefCountedDtlsIdentityStore; |
35 | 35 |
36 class PeerConnectionFactory : public PeerConnectionFactoryInterface { | 36 class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
37 public: | 37 public: |
38 void SetOptions(const Options& options) override { | 38 virtual void SetOptions(const Options& options) { |
39 options_ = options; | 39 options_ = options; |
40 } | 40 } |
41 | 41 |
42 // Deprecated, use version without constraints. | 42 // Deprecated, use version without constraints. |
43 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 43 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
44 const PeerConnectionInterface::RTCConfiguration& configuration, | 44 const PeerConnectionInterface::RTCConfiguration& configuration, |
45 const MediaConstraintsInterface* constraints, | 45 const MediaConstraintsInterface* constraints, |
46 std::unique_ptr<cricket::PortAllocator> allocator, | 46 std::unique_ptr<cricket::PortAllocator> allocator, |
47 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 47 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
48 PeerConnectionObserver* observer) override; | 48 PeerConnectionObserver* observer) override; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 std::unique_ptr<cricket::WebRtcVideoDecoderFactory> video_decoder_factory_; | 122 std::unique_ptr<cricket::WebRtcVideoDecoderFactory> video_decoder_factory_; |
123 std::unique_ptr<rtc::BasicNetworkManager> default_network_manager_; | 123 std::unique_ptr<rtc::BasicNetworkManager> default_network_manager_; |
124 std::unique_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; | 124 std::unique_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; |
125 | 125 |
126 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; | 126 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace webrtc | 129 } // namespace webrtc |
130 | 130 |
131 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ | 131 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ |
OLD | NEW |