OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_MEDIA_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_MEDIA_UTILS_H_ |
6 #define CHROME_BROWSER_UI_MEDIA_UTILS_H_ | 6 #define CHROME_BROWSER_UI_MEDIA_UTILS_H_ |
7 | 7 |
| 8 #include "base/callback.h" |
8 #include "content/public/common/media_stream_request.h" | 9 #include "content/public/common/media_stream_request.h" |
9 | 10 |
| 11 class GURL; |
10 class Profile; | 12 class Profile; |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 class WebContents; | 15 class WebContents; |
14 } | 16 } |
15 | 17 |
16 void RequestMediaAccessPermission( | 18 void RequestMediaAccessPermission( |
17 content::WebContents* web_contents, | 19 content::WebContents* web_contents, |
18 Profile* profile, | 20 Profile* profile, |
19 const content::MediaStreamRequest& request, | 21 const content::MediaStreamRequest& request, |
20 const content::MediaResponseCallback& callback); | 22 const content::MediaResponseCallback& callback); |
21 | 23 |
| 24 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
| 25 const GURL& security_origin, |
| 26 content::MediaStreamType type); |
| 27 |
22 #endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_ | 28 #endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_ |
OLD | NEW |