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

Unified Diff: content/browser/renderer_host/media/media_stream_provider.h

Issue 10662049: Move the device enumerate/open/close work to device thread from IO thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small changes to fix the trybots' failure Created 8 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/browser/renderer_host/media/media_stream_provider.h
diff --git a/content/browser/renderer_host/media/media_stream_provider.h b/content/browser/renderer_host/media/media_stream_provider.h
index cab027a9bbca23552a9e6154487f439436a4006b..0bb6743ffe80c3ca0e78c8c6dc1c7663ddd2eaa3 100644
--- a/content/browser/renderer_host/media/media_stream_provider.h
+++ b/content/browser/renderer_host/media/media_stream_provider.h
@@ -18,6 +18,10 @@
#include "content/common/content_export.h"
#include "content/common/media/media_stream_options.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace media_stream {
enum MediaStreamProviderError {
@@ -59,8 +63,9 @@ class CONTENT_EXPORT MediaStreamProviderListener {
// Implemented by a manager class providing captured media.
class CONTENT_EXPORT MediaStreamProvider {
public:
- // Registers a listener, only one listener is allowed.
- virtual void Register(MediaStreamProviderListener* listener) = 0;
+ // Registers a listener and a device message loop.
+ virtual void Register(MediaStreamProviderListener* listener,
+ base::MessageLoopProxy* device_thread_loop) = 0;
// Unregisters the previously registered listener.
virtual void Unregister() = 0;

Powered by Google App Engine
This is Rietveld 408576698