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

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: 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/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..b39e4f7e0cb1edfe1d5edd4ca87872f02fca407e 100644
--- a/content/browser/renderer_host/media/media_devices_dispatcher_host.h
+++ b/content/browser/renderer_host/media/media_devices_dispatcher_host.h
@@ -14,6 +14,7 @@
#include "content/browser/renderer_host/media/media_devices_manager.h"
#include "content/common/content_export.h"
#include "content/common/media/media_devices.mojom.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
using ::mojom::MediaDeviceType;
@@ -48,6 +49,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 +83,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 media::VideoCaptureDeviceDescriptors& device_descriptors);
+
+ // 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,
« no previous file with comments | « content/browser/media/media_devices_util.cc ('k') | content/browser/renderer_host/media/media_devices_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698