| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 protected: | 104 protected: |
| 105 PeerConnectionFactory(); | 105 PeerConnectionFactory(); |
| 106 PeerConnectionFactory( | 106 PeerConnectionFactory( |
| 107 rtc::Thread* network_thread, | 107 rtc::Thread* network_thread, |
| 108 rtc::Thread* worker_thread, | 108 rtc::Thread* worker_thread, |
| 109 rtc::Thread* signaling_thread, | 109 rtc::Thread* signaling_thread, |
| 110 AudioDeviceModule* default_adm, | 110 AudioDeviceModule* default_adm, |
| 111 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& | 111 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& |
| 112 audio_decoder_factory, | 112 audio_decoder_factory, |
| 113 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, | 113 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 114 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, | 114 cricket::WebRtcVideoDecoderFactory* video_decoder_factory); |
| 115 rtc::scoped_refptr<AudioMixer> audio_mixer); | |
| 116 virtual ~PeerConnectionFactory(); | 115 virtual ~PeerConnectionFactory(); |
| 117 | 116 |
| 118 private: | 117 private: |
| 119 cricket::MediaEngineInterface* CreateMediaEngine_w(); | 118 cricket::MediaEngineInterface* CreateMediaEngine_w(); |
| 120 | 119 |
| 121 bool owns_ptrs_; | 120 bool owns_ptrs_; |
| 122 bool wraps_current_thread_; | 121 bool wraps_current_thread_; |
| 123 rtc::Thread* network_thread_; | 122 rtc::Thread* network_thread_; |
| 124 rtc::Thread* worker_thread_; | 123 rtc::Thread* worker_thread_; |
| 125 rtc::Thread* signaling_thread_; | 124 rtc::Thread* signaling_thread_; |
| 126 Options options_; | 125 Options options_; |
| 127 // External Audio device used for audio playback. | 126 // External Audio device used for audio playback. |
| 128 rtc::scoped_refptr<AudioDeviceModule> default_adm_; | 127 rtc::scoped_refptr<AudioDeviceModule> default_adm_; |
| 129 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory_; | 128 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory_; |
| 130 std::unique_ptr<cricket::ChannelManager> channel_manager_; | 129 std::unique_ptr<cricket::ChannelManager> channel_manager_; |
| 131 // External Video encoder factory. This can be NULL if the client has not | 130 // External Video encoder factory. This can be NULL if the client has not |
| 132 // injected any. In that case, video engine will use the internal SW encoder. | 131 // injected any. In that case, video engine will use the internal SW encoder. |
| 133 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> video_encoder_factory_; | 132 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> video_encoder_factory_; |
| 134 // External Video decoder factory. This can be NULL if the client has not | 133 // External Video decoder factory. This can be NULL if the client has not |
| 135 // injected any. In that case, video engine will use the internal SW decoder. | 134 // injected any. In that case, video engine will use the internal SW decoder. |
| 136 std::unique_ptr<cricket::WebRtcVideoDecoderFactory> video_decoder_factory_; | 135 std::unique_ptr<cricket::WebRtcVideoDecoderFactory> video_decoder_factory_; |
| 137 std::unique_ptr<rtc::BasicNetworkManager> default_network_manager_; | 136 std::unique_ptr<rtc::BasicNetworkManager> default_network_manager_; |
| 138 std::unique_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; | 137 std::unique_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; |
| 139 // External audio mixer. This can be NULL. In that case, internal audio mixer | |
| 140 // will be created and used. | |
| 141 rtc::scoped_refptr<AudioMixer> external_audio_mixer_; | |
| 142 }; | 138 }; |
| 143 | 139 |
| 144 } // namespace webrtc | 140 } // namespace webrtc |
| 145 | 141 |
| 146 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ | 142 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ |
| OLD | NEW |