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

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

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Moved to chrome_browser_main_chromeos.cc 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_manager.h
diff --git a/content/browser/renderer_host/media/media_stream_manager.h b/content/browser/renderer_host/media/media_stream_manager.h
index 6b4c3c45f41302f5561ccf9e814a408544d15371..d152fe19093acf080c91c797e63a31cbc7450a16 100644
--- a/content/browser/renderer_host/media/media_stream_manager.h
+++ b/content/browser/renderer_host/media/media_stream_manager.h
@@ -45,6 +45,7 @@
#include "content/common/media/media_devices.h"
#include "content/common/media/media_stream_options.h"
#include "content/public/browser/media_request_state.h"
+#include "media/base/video_facing.h"
namespace media {
class AudioManager;
@@ -97,6 +98,16 @@ class CONTENT_EXPORT MediaStreamManager
// Used to access MediaDevicesManager.
MediaDevicesManager* media_devices_manager();
+ // AddVideoCaptureObserver() and RemoveAllVideoCaptureObservers() must be
+ // called after InitializeDeviceManagersOnIOThread() and before
+ // WillDestroyCurrentMessageLoop(). They can be called more than once and it's
+ // ok to not call at all if the client is not interested in receiving
+ // media::VideoCaptureObserver callbacks.
+ // The methods must be called on BrowserThread::IO threads. The callbacks of
+ // media::VideoCaptureObserver also arrive on BrowserThread::IO threads.
+ void AddVideoCaptureObserver(media::VideoCaptureObserver* capture_observer);
+ void RemoveAllVideoCaptureObservers();
+
// Creates a new media access request which is identified by a unique string
// that's returned to the caller. This will trigger the infobar and ask users
// for access to the device. |render_process_id| and |render_frame_id| are

Powered by Google App Engine
This is Rietveld 408576698