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

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

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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_ui_proxy.h
diff --git a/content/browser/renderer_host/media/media_stream_ui_proxy.h b/content/browser/renderer_host/media/media_stream_ui_proxy.h
index 62bbeb8449594648198b8e75c6bc01c750fa90dd..61076be79e1ca8e061873bcd5020138c2f6ba4be 100644
--- a/content/browser/renderer_host/media/media_stream_ui_proxy.h
+++ b/content/browser/renderer_host/media/media_stream_ui_proxy.h
@@ -21,7 +21,9 @@ class RenderViewHostDelegate;
class CONTENT_EXPORT MediaStreamUIProxy {
public:
typedef base::Callback<
- void (const MediaStreamDevices& devices)> ResponseCallback;
+ void (const MediaStreamDevices& devices,
+ content::MediaStreamRequestResult result)>
+ ResponseCallback;
static scoped_ptr<MediaStreamUIProxy> Create();
static scoped_ptr<MediaStreamUIProxy> CreateForTests(
@@ -52,7 +54,9 @@ class CONTENT_EXPORT MediaStreamUIProxy {
friend class Core;
friend class FakeMediaStreamUIProxy;
- void ProcessAccessRequestResponse(const MediaStreamDevices& devices);
+ void ProcessAccessRequestResponse(
+ const MediaStreamDevices& devices,
+ content::MediaStreamRequestResult result);
void ProcessStopRequestFromUI();
scoped_ptr<Core> core_;

Powered by Google App Engine
This is Rietveld 408576698