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

Unified Diff: content/shell/renderer/test_runner/WebPermissions.h

Issue 312103004: Content Shell test_runner hooks for <audio> and <video> blocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | content/shell/renderer/test_runner/WebPermissions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebPermissions.h
diff --git a/content/shell/renderer/test_runner/WebPermissions.h b/content/shell/renderer/test_runner/WebPermissions.h
index 85330b6e390225f3a3009ef73a2888c4aeade5f8..09656f56cc7b41cad992f92921df9fd1c66e4ce0 100644
--- a/content/shell/renderer/test_runner/WebPermissions.h
+++ b/content/shell/renderer/test_runner/WebPermissions.h
@@ -20,6 +20,7 @@ public:
// Override WebPermissionClient methods.
virtual bool allowImage(bool enabledPerSettings, const blink::WebURL& imageURL);
+ virtual bool allowMedia(const blink::WebURL& mediaURL);
virtual bool allowScriptFromSource(bool enabledPerSettings, const blink::WebURL& scriptURL);
virtual bool allowStorage(bool local);
virtual bool allowPlugins(bool enabledPerSettings);
@@ -28,6 +29,7 @@ public:
// Hooks to set the different policies.
void setImagesAllowed(bool);
+ void setMediaAllowed(bool);
void setScriptsAllowed(bool);
void setStorageAllowed(bool);
void setPluginsAllowed(bool);
@@ -45,6 +47,7 @@ private:
bool m_dumpCallbacks;
bool m_imagesAllowed;
+ bool m_mediaAllowed;
bool m_scriptsAllowed;
bool m_storageAllowed;
bool m_pluginsAllowed;
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/WebPermissions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698