OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class BasicPacketSocketFactory; | 44 class BasicPacketSocketFactory; |
45 } | 45 } |
46 | 46 |
47 namespace webrtc { | 47 namespace webrtc { |
48 | 48 |
49 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> | 49 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> |
50 RefCountedDtlsIdentityStore; | 50 RefCountedDtlsIdentityStore; |
51 | 51 |
52 class PeerConnectionFactory : public PeerConnectionFactoryInterface { | 52 class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
53 public: | 53 public: |
54 virtual void SetOptions(const Options& options) { | 54 void SetOptions(const Options& options) override; |
55 options_ = options; | |
56 } | |
57 | 55 |
58 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 56 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
59 const PeerConnectionInterface::RTCConfiguration& configuration, | 57 const PeerConnectionInterface::RTCConfiguration& configuration, |
60 const MediaConstraintsInterface* constraints, | 58 const MediaConstraintsInterface* constraints, |
61 rtc::scoped_ptr<cricket::PortAllocator> allocator, | 59 rtc::scoped_ptr<cricket::PortAllocator> allocator, |
62 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 60 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
63 PeerConnectionObserver* observer) override; | 61 PeerConnectionObserver* observer) override; |
64 | 62 |
65 bool Initialize(); | 63 bool Initialize(); |
66 | 64 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 video_decoder_factory_; | 121 video_decoder_factory_; |
124 rtc::scoped_ptr<rtc::BasicNetworkManager> default_network_manager_; | 122 rtc::scoped_ptr<rtc::BasicNetworkManager> default_network_manager_; |
125 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; | 123 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; |
126 | 124 |
127 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; | 125 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; |
128 }; | 126 }; |
129 | 127 |
130 } // namespace webrtc | 128 } // namespace webrtc |
131 | 129 |
132 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_ | 130 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_ |
OLD | NEW |