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

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: 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/browser/renderer_host/media/media_stream_requester.h
===================================================================
--- content/browser/renderer_host/media/media_stream_requester.h (revision 118766)
+++ 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 EnumerateDevices.
+ virtual void DevicesEnumerated(const std::string& label,
+ const StreamDeviceInfoArray& devices) = 0;
+ // Called if EnumerateDevices failed.
+ virtual void DevicesEnumerationFailed(const std::string& label) = 0;
+ // Called as a reply of a successful call to OpenDevice.
+ virtual void DeviceOpened(const std::string& label,
+ const StreamDeviceInfo& device_info) = 0;
+ // Called if OpenDevice failed.
+ virtual void DeviceOpenFailed(const std::string& label) = 0;
+
protected:
virtual ~MediaStreamRequester() {
}

Powered by Google App Engine
This is Rietveld 408576698