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

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

Issue 2646833002: Add IPC to query capabilities of video input devices. (Closed)
Patch Set: 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/media_devices_dispatcher_host.h
diff --git a/content/browser/renderer_host/media/media_devices_dispatcher_host.h b/content/browser/renderer_host/media/media_devices_dispatcher_host.h
index 12ca0240e42cb3e73a7ee2ac4ccd8e612fee86a0..65c07dd85c05371ac42e859d25f6d79ead41015b 100644
--- a/content/browser/renderer_host/media/media_devices_dispatcher_host.h
+++ b/content/browser/renderer_host/media/media_devices_dispatcher_host.h
@@ -48,6 +48,9 @@ class CONTENT_EXPORT MediaDevicesDispatcherHost
bool request_audio_output,
const url::Origin& security_origin,
const EnumerateDevicesCallback& client_callback) override;
+ void GetVideoInputCapabilities(
+ const url::Origin& security_origin,
+ const GetVideoInputCapabilitiesCallback& client_callback) override;
void SubscribeDeviceChangeNotifications(
MediaDeviceType type,
uint32_t subscription_id,
@@ -79,6 +82,20 @@ class CONTENT_EXPORT MediaDevicesDispatcherHost
const MediaDevicesManager::BoolDeviceTypes& has_permissions,
const MediaDeviceEnumeration& enumeration);
+ void GotDefaultVideoInputDeviceID(
+ const url::Origin& security_origin,
+ const GetVideoInputCapabilitiesCallback& client_callback,
+ const std::string& default_device_id);
+
+ void FinalizeGetVideoInputCapabilities(
+ const url::Origin& security_origin,
+ const GetVideoInputCapabilitiesCallback& client_callback,
+ const std::string& default_device_id,
+ const MediaDeviceEnumeration& enumeration);
+
+ // Returns the currently supported video formats for the given |device_id|.
+ media::VideoCaptureFormats GetVideoInputFormats(const std::string& device_id);
+
struct SubscriptionInfo;
void NotifyDeviceChangeOnUIThread(
const std::vector<SubscriptionInfo>& subscriptions,

Powered by Google App Engine
This is Rietveld 408576698