OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual scoped_refptr<webrtc::VideoTrackInterface> | 206 virtual scoped_refptr<webrtc::VideoTrackInterface> |
207 CreateLocalVideoTrack(const std::string& id, | 207 CreateLocalVideoTrack(const std::string& id, |
208 cricket::VideoCapturer* capturer); | 208 cricket::VideoCapturer* capturer); |
209 | 209 |
210 virtual bool EnsurePeerConnectionFactory(); | 210 virtual bool EnsurePeerConnectionFactory(); |
211 virtual bool PeerConnectionFactoryCreated(); | 211 virtual bool PeerConnectionFactoryCreated(); |
212 | 212 |
213 // Returns a new capturer or existing capturer based on the |render_view_id| | 213 // Returns a new capturer or existing capturer based on the |render_view_id| |
214 // and |device_info|. When the |render_view_id| and |device_info| are valid, | 214 // and |device_info|. When the |render_view_id| and |device_info| are valid, |
215 // it reuses existing capture if any; otherwise it creates a new capturer. | 215 // it reuses existing capture if any; otherwise it creates a new capturer. |
216 virtual scoped_refptr<WebRtcAudioCapturer> MaybeCreateAudioCapturer( | 216 virtual scoped_refptr<WebRtcAudioCapturer> CreateAudioCapturer( |
217 int render_view_id, const StreamDeviceInfo& device_info); | 217 int render_view_id, const StreamDeviceInfo& device_info); |
218 | 218 |
219 private: | 219 private: |
220 // Creates and deletes |pc_factory_|, which in turn is used for | 220 // Creates and deletes |pc_factory_|, which in turn is used for |
221 // creating PeerConnection objects. | 221 // creating PeerConnection objects. |
222 bool CreatePeerConnectionFactory(); | 222 bool CreatePeerConnectionFactory(); |
223 | 223 |
224 void InitializeWorkerThread(talk_base::Thread** thread, | 224 void InitializeWorkerThread(talk_base::Thread** thread, |
225 base::WaitableEvent* event); | 225 base::WaitableEvent* event); |
226 | 226 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 base::Thread chrome_worker_thread_; | 266 base::Thread chrome_worker_thread_; |
267 | 267 |
268 base::PlatformFile aec_dump_file_; | 268 base::PlatformFile aec_dump_file_; |
269 | 269 |
270 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 270 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
271 }; | 271 }; |
272 | 272 |
273 } // namespace content | 273 } // namespace content |
274 | 274 |
275 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 275 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |