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

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

Issue 8480028: support video device enumeration from renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_dispatcher_host.h
===================================================================
--- content/browser/renderer_host/media/media_stream_dispatcher_host.h (revision 111389)
+++ content/browser/renderer_host/media/media_stream_dispatcher_host.h (working copy)
@@ -42,6 +42,13 @@
virtual void AudioDeviceFailed(const std::string& label, int index) OVERRIDE;
virtual void VideoDeviceFailed(const std::string& label, int index) OVERRIDE;
+ virtual void VideoDevicesEnumerated(const std::string& label,
+ const StreamDeviceInfoArray& devices);
+ virtual void VideoDevicesEnumerationFailed(const std::string& label);
+ virtual void VideoDeviceOpened(const std::string& label,
mflodman_chromium_OOO 2011/11/29 02:30:56 Q: Since we'll support audio in the future(?), wha
wjia(left Chromium) 2011/11/30 00:14:23 Done. I thought the first step is to make video wo
+ const StreamDeviceInfo& video_device);
+ virtual void VideoDeviceOpenFailed(const std::string& label);
+
// BrowserMessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) OVERRIDE;
@@ -57,6 +64,15 @@
void OnStopGeneratedStream(int render_view_id, const std::string& label);
+ void OnEnumerateVideoDevices(int render_view_id,
+ int page_request_id,
+ const std::string& security_origin);
+
+ void OnOpenVideoDevice(int render_view_id,
+ int page_request_id,
+ const std::string& device_id,
+ const std::string& security_origin);
+
// Returns the media stream manager to forward events to,
// creating one if needed.
MediaStreamManager* manager();

Powered by Google App Engine
This is Rietveld 408576698