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

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

Issue 2729783003: [Mojo Video Capture] Add content_browsertest for exercising video capture (Closed)
Patch Set: incorporated miu@'s suggestions Created 3 years, 9 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 effb2c8c01e0fa2db4681ee0a6927433543447a1..254051483a74ee45f430eb579d5ddc4421304787 100644
--- a/content/browser/renderer_host/media/audio_input_device_manager.h
+++ b/content/browser/renderer_host/media/audio_input_device_manager.h
@@ -48,8 +48,8 @@ class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
// MediaStreamProvider implementation.
void RegisterListener(MediaStreamProviderListener* listener) override;
- void UnregisterListener() override;
- int Open(const StreamDeviceInfo& device) override;
+ void UnregisterListener(MediaStreamProviderListener* listener) override;
+ int Open(const MediaStreamDevice& device) override;
void Close(int session_id) override;
#if defined(OS_CHROMEOS)
@@ -67,7 +67,7 @@ class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
~AudioInputDeviceManager() override;
// Opens the device on media stream device thread.
- void OpenOnDeviceThread(int session_id, const StreamDeviceInfo& info);
+ void OpenOnDeviceThread(int session_id, const MediaStreamDevice& device);
// Callback used by OpenOnDeviceThread(), called with the session_id
// referencing the opened device on IO thread.
@@ -89,7 +89,7 @@ class CONTENT_EXPORT AudioInputDeviceManager : public MediaStreamProvider {
#endif
// Only accessed on Browser::IO thread.
- MediaStreamProviderListener* listener_;
+ base::ObserverList<MediaStreamProviderListener> listeners_;
int next_capture_session_id_;
StreamDeviceList devices_;
« 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