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

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

Issue 2646833002: Add IPC to query capabilities of video input devices. (Closed)
Patch Set: address comment from clamy 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..2136b308d02a6ca0e060aea10b3a123f6d6af1c3 100644
--- a/content/browser/renderer_host/media/video_capture_manager.h
+++ b/content/browser/renderer_host/media/video_capture_manager.h
@@ -122,12 +122,25 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
bool GetDeviceSupportedFormats(
media::VideoCaptureSessionId capture_session_id,
media::VideoCaptureFormats* supported_formats);
+ // Retrieves all capture supported formats for a particular device. Returns
+ // false if the |device_id| is not found. The supported formats are cached
+ // during device(s) enumeration, and depending on the underlying
+ // implementation, could be an empty list.
+ bool GetDeviceSupportedFormats(const std::string& device_id,
+ media::VideoCaptureFormats* supported_formats);
// Retrieves the format(s) currently in use. Returns false if the
// |capture_session_id| is not found. Returns true and |formats_in_use|
// otherwise. |formats_in_use| is empty if the device is not in use.
bool GetDeviceFormatsInUse(media::VideoCaptureSessionId capture_session_id,
media::VideoCaptureFormats* formats_in_use);
+ // Retrieves the format(s) currently in use. Returns false if the
+ // |stream_type|, |device_id| pair is not found. Returns true and
+ // |formats_in_use| otherwise. |formats_in_use| is empty if the device is not
+ // in use.
+ bool GetDeviceFormatsInUse(MediaStreamType stream_type,
+ const std::string& device_id,
+ media::VideoCaptureFormats* supported_formats);
// Sets the platform-dependent window ID for the desktop capture notification
// UI for the given session.

Powered by Google App Engine
This is Rietveld 408576698