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

Unified Diff: extensions/shell/browser/media_capture_util.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/shell/browser/media_capture_util.h
diff --git a/extensions/shell/browser/media_capture_util.h b/extensions/shell/browser/media_capture_util.h
index f254071f6605a3cb09be274cb0df33b12835b124..b1b15ba98cf7cbcf1904fea838c66320d77ad3fd 100644
--- a/extensions/shell/browser/media_capture_util.h
+++ b/extensions/shell/browser/media_capture_util.h
@@ -28,6 +28,10 @@ void GrantMediaStreamRequest(content::WebContents* web_contents,
const content::MediaResponseCallback& callback,
const Extension* extension);
+// Verifies that the extension has permission for |type|. If not, crash.
+void VerifyMediaAccessPermission(content::MediaStreamType type,
+ const Extension* extension);
+
} // namespace media_capture_util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698