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

Unified Diff: Source/testing/runner/WebPermissions.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
Index: Source/testing/runner/WebPermissions.h
diff --git a/Source/testing/runner/WebPermissions.h b/Source/testing/runner/WebPermissions.h
index 1bdcc8edb50050f4bd6eb11f7b13ee8e9c973f20..e0eab47a231f70283015ec30e929a420deb09039 100644
--- a/Source/testing/runner/WebPermissions.h
+++ b/Source/testing/runner/WebPermissions.h
@@ -45,6 +45,7 @@ public:
// Override WebPermissionClient methods.
virtual bool allowImage(WebKit::WebFrame*, bool enabledPerSettings, const WebKit::WebURL& imageURL);
+ virtual bool allowMedia(WebKit::WebFrame*, bool enabledPerSettings, const WebKit::WebURL& mediaURL);
virtual bool allowScriptFromSource(WebKit::WebFrame*, bool enabledPerSettings, const WebKit::WebURL& scriptURL);
virtual bool allowStorage(WebKit::WebFrame*, bool local);
virtual bool allowPlugins(WebKit::WebFrame*, bool enabledPerSettings);
@@ -53,6 +54,7 @@ public:
// Hooks to set the different policies.
void setImagesAllowed(bool);
+ void setMediaAllowed(bool);
void setScriptsAllowed(bool);
void setStorageAllowed(bool);
void setPluginsAllowed(bool);
@@ -70,6 +72,7 @@ private:
bool m_dumpCallbacks;
bool m_imagesAllowed;
+ bool m_mediaAllowed;
bool m_scriptsAllowed;
bool m_storageAllowed;
bool m_pluginsAllowed;

Powered by Google App Engine
This is Rietveld 408576698