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

Unified Diff: public/web/WebPermissionClient.h

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename "video" to "media". Created 7 years, 2 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
« Source/web/FrameLoaderClientImpl.h ('K') | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPermissionClient.h
diff --git a/public/web/WebPermissionClient.h b/public/web/WebPermissionClient.h
index 2b7d5727faf9b6952fcd79939b9471b12eefc11f..cfaed248d334d8e4676aa5574c651460d9ced48b 100644
--- a/public/web/WebPermissionClient.h
+++ b/public/web/WebPermissionClient.h
@@ -53,6 +53,9 @@ public:
// Controls whether access to Indexed DB are allowed for this frame.
virtual bool allowIndexedDB(WebFrame*, const WebString& name, const WebSecurityOrigin&) { return true; }
+ // Controls whether HTML5 media elements (<audio>, <video>) are allowed for this frame.
+ virtual bool allowMedia(WebFrame* frame, bool enabledPerSettings, const WebURL& videoURL) { return enabledPerSettings; }
+
// Controls whether plugins are allowed for this frame.
virtual bool allowPlugins(WebFrame*, bool enabledPerSettings) { return enabledPerSettings; }
« Source/web/FrameLoaderClientImpl.h ('K') | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698