OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/common/media_stream_request.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 15 namespace extensions { |
| 16 namespace media_capture_util { |
| 17 |
| 18 // Grants access to the first available audio capture device (if requested) and |
| 19 // the first available video capture device (if requested). Usually used as a |
| 20 // helper for media capture ProcessMediaAccessRequest(). |
| 21 void GrantMediaStreamRequestWithFirstDevice( |
| 22 content::WebContents* web_contents, |
| 23 const content::MediaStreamRequest& request, |
| 24 const content::MediaResponseCallback& callback); |
| 25 |
| 26 } // namespace media_capture_util |
| 27 } // namespace extensions |
| 28 |
| 29 #endif // EXTENSIONS_SHELL_BROWSER_MEDIA_CAPTURE_UTIL_H_ |
OLD | NEW |