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

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

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Change to use ObserverList 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.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager.cc b/content/browser/renderer_host/media/media_stream_manager.cc
index 029b0638c4e3ced5da47532ccb1c32e5b6504b51..099ade5c1922cb7334c7a3fdebb47c65f8f4ccee 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -461,6 +461,19 @@ MediaDevicesManager* MediaStreamManager::media_devices_manager() {
return media_devices_manager_.get();
}
+void MediaStreamManager::AddVideoCaptureObserver(
+ media::VideoCaptureObserver* capture_observer) {
+ if (video_capture_manager_.get() != nullptr) {
+ video_capture_manager_->AddVideoCaptureObserver(capture_observer);
+ }
+}
+
+void MediaStreamManager::RemoveAllVideoCaptureObservers() {
+ if (video_capture_manager_.get() != nullptr) {
+ video_capture_manager_->RemoveAllVideoCaptureObservers();
+ }
+}
+
std::string MediaStreamManager::MakeMediaAccessRequest(
int render_process_id,
int render_frame_id,

Powered by Google App Engine
This is Rietveld 408576698