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

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: Rebased. Created 6 years, 6 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
« no previous file with comments | « 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 b1e9f58c7eff0386f38024f424fd886fa0124bd1..3ee573c6e06ed2f06da9df091a4b3e74a84b0cfb 100644
--- a/public/web/WebPermissionClient.h
+++ b/public/web/WebPermissionClient.h
@@ -57,6 +57,9 @@ public:
// Controls whether access to Indexed DB are allowed for this frame.
virtual bool allowIndexedDB(const WebString& name, const WebSecurityOrigin&) { return true; }
+ // Controls whether HTML5 media elements (<audio>, <video>) are allowed for this frame.
+ virtual bool allowMedia(const WebURL& videoURL) { return true; }
+
// Controls whether plugins are allowed for this frame.
virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettings; }
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698