Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1532)

Unified Diff: content/renderer/media/media_stream_dependency_factory.h

Issue 19534002: Make RendererGpuVideoDecoderFactories live on arbitrary threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_dependency_factory.h
diff --git a/content/renderer/media/media_stream_dependency_factory.h b/content/renderer/media/media_stream_dependency_factory.h
index 7750276d290018856633649f0a8df3adca1a6254..23e68f04907ac6c6af7e6144a74823bfc5627bcb 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "base/message_loop/message_loop_proxy.h"
scherkus (not reviewing) 2013/07/19 18:13:58 AFAIK you can fwd decl vs include you may also be
wuchengli 2013/07/20 06:04:14 Done.
#include "base/threading/thread.h"
#include "content/common/content_export.h"
#include "content/renderer/media/media_stream_extra_data.h"
@@ -61,7 +62,8 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
bool live)> MediaSourcesCreatedCallback;
MediaStreamDependencyFactory(
VideoCaptureImplManager* vc_manager,
- P2PSocketDispatcher* p2p_socket_dispatcher);
+ P2PSocketDispatcher* p2p_socket_dispatcher,
+ const scoped_refptr<base::MessageLoopProxy>& media_loop_proxy);
virtual ~MediaStreamDependencyFactory();
// Create a RTCPeerConnectionHandler object that implements the
@@ -231,6 +233,9 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
talk_base::Thread* worker_thread_;
base::Thread chrome_worker_thread_;
+ // Message loop proxy of the media thread.
+ scoped_refptr<base::MessageLoopProxy> media_loop_proxy_;
+
DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
};

Powered by Google App Engine
This is Rietveld 408576698