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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 scoped_refptr<webrtc::VideoTrackInterface> | 234 scoped_refptr<webrtc::VideoTrackInterface> |
235 CreateNativeVideoMediaStreamTrack(const blink::WebMediaStreamTrack& track); | 235 CreateNativeVideoMediaStreamTrack(const blink::WebMediaStreamTrack& track); |
236 | 236 |
237 // RenderProcessObserver implementation. | 237 // RenderProcessObserver implementation. |
238 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 238 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
239 | 239 |
240 void OnAecDumpFile(IPC::PlatformFileForTransit file_handle); | 240 void OnAecDumpFile(IPC::PlatformFileForTransit file_handle); |
241 void OnDisableAecDump(); | 241 void OnDisableAecDump(); |
242 | 242 |
| 243 void StartAecDump(const base::PlatformFile& aec_dump_file); |
| 244 |
243 // We own network_manager_, must be deleted on the worker thread. | 245 // We own network_manager_, must be deleted on the worker thread. |
244 // The network manager uses |p2p_socket_dispatcher_|. | 246 // The network manager uses |p2p_socket_dispatcher_|. |
245 IpcNetworkManager* network_manager_; | 247 IpcNetworkManager* network_manager_; |
246 scoped_ptr<IpcPacketSocketFactory> socket_factory_; | 248 scoped_ptr<IpcPacketSocketFactory> socket_factory_; |
247 | 249 |
248 scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; | 250 scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; |
249 | 251 |
250 #if defined(GOOGLE_TV) | 252 #if defined(GOOGLE_TV) |
251 // |pc_factory_| will hold the ownership of this object, and |pc_factory_| | 253 // |pc_factory_| will hold the ownership of this object, and |pc_factory_| |
252 // outlives this object. Thus weak pointer is sufficient. | 254 // outlives this object. Thus weak pointer is sufficient. |
(...skipping 11 matching lines...) Expand all Loading... |
264 base::Thread chrome_worker_thread_; | 266 base::Thread chrome_worker_thread_; |
265 | 267 |
266 base::PlatformFile aec_dump_file_; | 268 base::PlatformFile aec_dump_file_; |
267 | 269 |
268 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 270 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
269 }; | 271 }; |
270 | 272 |
271 } // namespace content | 273 } // namespace content |
272 | 274 |
273 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 275 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |