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

Side by Side 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, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | extensions/shell/browser/media_capture_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_
6 #define EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ 6 #define EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 10
11 namespace content { 11 namespace content {
12 class WebContents; 12 class WebContents;
13 } 13 }
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 class Extension; 17 class Extension;
18 18
19 namespace media_capture_util { 19 namespace media_capture_util {
20 20
21 // Grants access to the first available audio capture device (if requested) and 21 // Grants access to audio and video capture devices.
22 // the first available video capture device (if requested). Usually used as a 22 // * If the caller requests specific device ids, grants access to those.
23 // helper for media capture ProcessMediaAccessRequest(). 23 // * If the caller does not request specific ids, grants access to the first
24 void GrantMediaStreamRequestWithFirstDevice( 24 // available device.
25 content::WebContents* web_contents, 25 // Usually used as a helper for media capture ProcessMediaAccessRequest().
26 const content::MediaStreamRequest& request, 26 void GrantMediaStreamRequest(content::WebContents* web_contents,
27 const content::MediaResponseCallback& callback, 27 const content::MediaStreamRequest& request,
28 const Extension* extension); 28 const content::MediaResponseCallback& callback,
29 const Extension* extension);
29 30
30 } // namespace media_capture_util 31 } // namespace media_capture_util
31 } // namespace extensions 32 } // namespace extensions
32 33
33 #endif // EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ 34 #endif // EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_
OLDNEW
« 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