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

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

Issue 2696533002: Rmoving the notion of task runner from MediaStreamProvider interface. (Closed)
Patch Set: Created 3 years, 10 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 d2ee9255ca99c350916e71ff753eb5b3ad2b4bc5..69e7dab3c821a7a9002204aaf385d2a61d7e35ab 100644
--- a/content/browser/renderer_host/media/media_stream_provider.h
+++ b/content/browser/renderer_host/media/media_stream_provider.h
@@ -19,10 +19,6 @@
#include "content/common/content_export.h"
#include "content/common/media/media_stream_options.h"
-namespace base {
-class SingleThreadTaskRunner;
-}
-
namespace content {
enum MediaStreamProviderError {
@@ -58,10 +54,11 @@ class CONTENT_EXPORT MediaStreamProviderListener {
class CONTENT_EXPORT MediaStreamProvider
: public base::RefCountedThreadSafe<MediaStreamProvider> {
public:
- // Registers a listener and a device message loop.
- virtual void Register(MediaStreamProviderListener* listener,
- const scoped_refptr<base::SingleThreadTaskRunner>&
- device_task_runner) = 0;
+ // Registers a listener.
+ virtual void RegisterListener(MediaStreamProviderListener* listener) = 0;
+
+ // Unregisters a previously registered listener.
+ virtual void UnregisterListener() = 0;
// Opens the specified device. The device is not started and it is still
// possible for other applications to open the device before the device is

Powered by Google App Engine
This is Rietveld 408576698