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..a670c7823a83be166f6b8d51219d4c908290f07f 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 |security_origin| has permission to access the microphone or |
+// camera. Note that this does not query the user. |type| must be |
+// MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
+virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
jam
2014/09/02 19:56:42
this should be on BrowserContext, since it's a met
|
+ const GURL& security_origin, |
+ MediaStreamType type); |
}; |
} // namespace content |