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

Unified Diff: content/renderer/media/media_stream_dispatcher_eventhandler.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/renderer/media/media_stream_dispatcher_eventhandler.h
===================================================================
--- content/renderer/media/media_stream_dispatcher_eventhandler.h (revision 111389)
+++ content/renderer/media/media_stream_dispatcher_eventhandler.h (working copy)
@@ -33,6 +33,23 @@
virtual void OnAudioDeviceFailed(const std::string& label,
int index) = 0;
+ // A new list of video devices have been enumerated.
+ virtual void OnVideoDevicesEnumerated(
+ int request_id,
+ const media_stream::StreamDeviceInfoArray& device_array) = 0;
+
+ // Failed to enumerate video devices.
+ virtual void OnVideoDevicesEnumerationFailed(int request_id) = 0;
+
+ // A video device has been opened.
+ virtual void OnVideoDeviceOpened(
+ int request_id,
+ const std::string& label,
+ const media_stream::StreamDeviceInfo& video_device) = 0;
+
+ // Failed to open the video device.
+ virtual void OnVideoDeviceOpenFailed(int request_id) = 0;
+
protected:
virtual ~MediaStreamDispatcherEventHandler();
};

Powered by Google App Engine
This is Rietveld 408576698