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

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

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: refactor to pass VideoCaptureObserver in setters, not in ctor Created 3 years, 11 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/video_capture_manager.h
diff --git a/content/browser/renderer_host/media/video_capture_manager.h b/content/browser/renderer_host/media/video_capture_manager.h
index 3bad7b152eec3d3684cbef086c07acd447fccfa2..3caeedf5b71312c5031c5928eada1a7cda1dd24f 100644
--- a/content/browser/renderer_host/media/video_capture_manager.h
+++ b/content/browser/renderer_host/media/video_capture_manager.h
@@ -29,6 +29,7 @@
#include "content/browser/renderer_host/media/video_capture_controller_event_handler.h"
#include "content/common/content_export.h"
#include "content/common/media/media_stream_options.h"
+#include "media/base/video_facing.h"
#include "media/capture/video/video_capture_device.h"
#include "media/capture/video/video_capture_device_factory.h"
#include "media/capture/video_capture_types.h"
@@ -53,6 +54,8 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
explicit VideoCaptureManager(
std::unique_ptr<media::VideoCaptureDeviceFactory> factory);
+ void SetVideoCaptureObserver(media::VideoCaptureObserver* observer);
chfremer1 2017/01/25 18:13:44 Same considerations here as with the SetVideoCaptu
shenghao 2017/01/29 10:21:01 Done.
+
void Unregister();
// Implements MediaStreamProvider.
@@ -323,6 +326,8 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
std::unique_ptr<media::VideoCaptureDeviceFactory>
video_capture_device_factory_;
+ media::VideoCaptureObserver* capture_observer_;
+
// Local cache of the enumerated video capture devices' names and capture
// supported formats. A snapshot of the current devices and their capabilities
// is composed in VideoCaptureDeviceFactory::EnumerateDeviceNames() and

Powered by Google App Engine
This is Rietveld 408576698