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

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: code review Created 8 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/renderer/media/media_stream_dispatcher_eventhandler.h
===================================================================
--- content/renderer/media/media_stream_dispatcher_eventhandler.h (revision 118766)
+++ 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 devices have been enumerated.
+ virtual void OnDevicesEnumerated(
+ int request_id,
+ const media_stream::StreamDeviceInfoArray& device_array) = 0;
+
+ // Failed to enumerate devices.
+ virtual void OnDevicesEnumerationFailed(int request_id) = 0;
+
+ // A device has been opened.
+ virtual void OnDeviceOpened(
+ int request_id,
+ const std::string& label,
+ const media_stream::StreamDeviceInfo& device_info) = 0;
+
+ // Failed to open the device.
+ virtual void OnDeviceOpenFailed(int request_id) = 0;
+
protected:
virtual ~MediaStreamDispatcherEventHandler();
};
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.cc ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698