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