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

Unified Diff: content/browser/renderer_host/media/media_stream_requester.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_requester.h
===================================================================
--- content/browser/renderer_host/media/media_stream_requester.h (revision 111389)
+++ content/browser/renderer_host/media/media_stream_requester.h (working copy)
@@ -30,6 +30,17 @@
// an error.
virtual void VideoDeviceFailed(const std::string& label, int index) = 0;
+ // Called as a reply of a successful call to EnumerateVideoDevices.
+ virtual void VideoDevicesEnumerated(const std::string& label,
+ const StreamDeviceInfoArray& devices) = 0;
+ // Called if EnumerateVideoDevices failed.
+ virtual void VideoDevicesEnumerationFailed(const std::string& label) = 0;
+ // Called as a reply of a successful call to OpenVideoDevice.
+ virtual void VideoDeviceOpened(const std::string& label,
+ const StreamDeviceInfo& video_device) = 0;
+ // Called if OpenVideoDevice failed.
+ virtual void VideoDeviceOpenFailed(const std::string& label) = 0;
+
protected:
virtual ~MediaStreamRequester() {
}

Powered by Google App Engine
This is Rietveld 408576698