Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: extensions/browser/app_window/app_web_contents_helper.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/app_window/app_web_contents_helper.h
diff --git a/extensions/browser/app_window/app_web_contents_helper.h b/extensions/browser/app_window/app_web_contents_helper.h
index 3d17851b451319f935e4775345a7b15381ee248f..ea4f13e55f5d93d31c7b418b1a66aeda62c808d7 100644
--- a/extensions/browser/app_window/app_web_contents_helper.h
+++ b/extensions/browser/app_window/app_web_contents_helper.h
@@ -48,6 +48,11 @@ class AppWebContentsHelper {
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) const;
+ // Checks permission to use the camera or microphone. See
+ // WebContentsDelegate.
+ bool CheckMediaAccessPermission(const GURL& security_origin,
+ content::MediaStreamType type) const;
+
private:
const Extension* GetExtension() const;
« no previous file with comments | « extensions/browser/app_window/app_delegate.h ('k') | extensions/browser/app_window/app_web_contents_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698