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

Unified Diff: content/browser/renderer_host/media/audio_input_device_manager.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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_input_device_manager.h
diff --git a/content/browser/renderer_host/media/audio_input_device_manager.h b/content/browser/renderer_host/media/audio_input_device_manager.h
index fb034b0325678ec24a3302fac311025e1d8b5fb6..effb2c8c01e0fa2db4681ee0a6927433543447a1 100644
--- a/content/browser/renderer_host/media/audio_input_device_manager.h
+++ b/content/browser/renderer_host/media/audio_input_device_manager.h
@@ -31,6 +31,7 @@ class AudioManager;
namespace content {
+// Should be used on IO thread only.
class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
public:
// Calling Start() with this kFakeOpenSessionId will open the default device,
@@ -45,12 +46,9 @@ class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
// is not opened, otherwise the opened device. Called on IO thread.
const StreamDeviceInfo* GetOpenedDeviceInfoById(int session_id);
- void Unregister();
-
- // MediaStreamProvider implementation, called on IO thread.
- void Register(MediaStreamProviderListener* listener,
- const scoped_refptr<base::SingleThreadTaskRunner>&
- device_task_runner) override;
+ // MediaStreamProvider implementation.
+ void RegisterListener(MediaStreamProviderListener* listener) override;
+ void UnregisterListener() override;
int Open(const StreamDeviceInfo& device) override;
void Close(int session_id) override;
@@ -60,7 +58,6 @@ class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
// inactivates the keyboard mic accordingly. The (in)activation is done on the
// UI thread and for the register case a callback must therefor be provided
// which is called when activated.
- // Called on the IO thread.
void RegisterKeyboardMicStream(const base::Closure& callback);
void UnregisterKeyboardMicStream();
#endif
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698