Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index f8253a663b2c4f3595bfb4aaf3d8c84d7be5c786..1c39ed68b885307f7d77ec59056cc135e3b9643b 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/certificate_request_result_type.h" |
#include "content/public/browser/desktop_notification_delegate.h" |
#include "content/public/common/content_client.h" |
+#include "content/public/common/media_stream_request.h" |
#include "content/public/common/resource_type.h" |
#include "content/public/common/socket_permission_request.h" |
#include "content/public/common/window_container_type.h" |
@@ -637,6 +638,13 @@ class CONTENT_EXPORT ContentBrowserClient { |
virtual ExternalVideoSurfaceContainer* |
OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
#endif |
+ |
+// Checks if we have permission to access the microphone or camera. Note that |
Charlie Reis
2014/08/28 17:27:48
nit: we have -> |security_origin| has
Henrik Grunell
2014/08/29 07:59:10
Done.
|
+// this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE |
+// or MEDIA_DEVICE_VIDEO_CAPTURE. |
+virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
+ const GURL& security_origin, |
+ MediaStreamType type); |
}; |
} // namespace content |