Index: chrome/browser/media/media_capture_devices_dispatcher.h |
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.h b/chrome/browser/media/media_capture_devices_dispatcher.h |
index 6c716616c3f4c58c4791309a44443998ef683718..2bb0a42bc2e76db8791f0c78d38d7ecc5f47a541 100644 |
--- a/chrome/browser/media/media_capture_devices_dispatcher.h |
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h |
@@ -84,6 +84,12 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver, |
const content::MediaResponseCallback& callback, |
const extensions::Extension* extension); |
+ // Checks if we have media access permission. Note that this only checks the |
perkj_chrome
2014/08/28 15:09:40
nit: extra space
Henrik Grunell
2014/08/29 07:59:09
Done.
|
+ // settings and does not query the user. |
+ bool CheckMediaAccessPermission(content::BrowserContext* browser_context, |
+ const GURL& security_origin, |
+ content::MediaStreamType type); |
+ |
// Helper to get the default devices which can be used by the media request. |
// Uses the first available devices if the default devices are not available. |
// If the return list is empty, it means there is no available device on the |