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

Unified Diff: extensions/shell/browser/media_capture_util.h

Issue 514463002: app_shell: Allow getUserMedia to select a capture device by id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | extensions/shell/browser/media_capture_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/media_capture_util.h
diff --git a/extensions/shell/browser/media_capture_util.h b/extensions/shell/browser/media_capture_util.h
index 69fec811dc029715caae20f836ace14bf62d325a..f254071f6605a3cb09be274cb0df33b12835b124 100644
--- a/extensions/shell/browser/media_capture_util.h
+++ b/extensions/shell/browser/media_capture_util.h
@@ -18,14 +18,15 @@ class Extension;
namespace media_capture_util {
-// Grants access to the first available audio capture device (if requested) and
-// the first available video capture device (if requested). Usually used as a
-// helper for media capture ProcessMediaAccessRequest().
-void GrantMediaStreamRequestWithFirstDevice(
- content::WebContents* web_contents,
- const content::MediaStreamRequest& request,
- const content::MediaResponseCallback& callback,
- const Extension* extension);
+// Grants access to audio and video capture devices.
+// * If the caller requests specific device ids, grants access to those.
+// * If the caller does not request specific ids, grants access to the first
+// available device.
+// Usually used as a helper for media capture ProcessMediaAccessRequest().
+void GrantMediaStreamRequest(content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback,
+ const Extension* extension);
} // namespace media_capture_util
} // namespace extensions
« no previous file with comments | « no previous file | extensions/shell/browser/media_capture_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698