Index: content/renderer/media/webrtc/peer_connection_dependency_factory.h |
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.h b/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
index 4f52425d31884f1a2e36bd01a95e0e98cd4faafc..963ebef447c1f583f864cf38435944cf74d07d1f 100644 |
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.h |
@@ -25,6 +25,7 @@ class WaitableEvent; |
namespace media { |
class GpuVideoAcceleratorFactories; |
+class VideoDecoder; |
} |
namespace rtc { |
@@ -132,8 +133,13 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory |
// creating PeerConnection objects. |
void CreatePeerConnectionFactory(); |
+ using CreateVideoDecoderCB = |
+ base::Callback<std::unique_ptr<media::VideoDecoder>()>; |
+ |
void InitializeSignalingThread( |
media::GpuVideoAcceleratorFactories* gpu_factories, |
+ const CreateVideoDecoderCB& create_video_decoder_cb, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& decoder_task_runner, |
base::WaitableEvent* event); |
void InitializeWorkerThread(rtc::Thread** thread, |
@@ -162,6 +168,8 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory |
base::Thread chrome_signaling_thread_; |
base::Thread chrome_worker_thread_; |
+ const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
}; |