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

Unified Diff: Source/core/page/Settings.cpp

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/core/page/Settings.cpp
diff --git a/Source/core/page/Settings.cpp b/Source/core/page/Settings.cpp
index 317c8e34b48d46add7fc4d735e2f90153510ef88..b7799f1e9fed509f822459a9acd13e501ad5b5bd 100644
--- a/Source/core/page/Settings.cpp
+++ b/Source/core/page/Settings.cpp
@@ -126,6 +126,7 @@ Settings::Settings(Page* page)
, m_isJavaEnabled(false)
, m_loadsImagesAutomatically(false)
, m_areImagesEnabled(true)
+ , m_isMediaLoadingEnabled(true)
, m_arePluginsEnabled(false)
, m_isScriptEnabled(false)
, m_dnsPrefetchingEnabled(false)
@@ -329,6 +330,11 @@ void Settings::setImagesEnabled(bool areImagesEnabled)
m_setImageLoadingSettingsTimer.startOneShot(0);
}
+void Settings::setMediaLoadingEnabled(bool isMediaLoadingEnabled)
+{
+ m_isMediaLoadingEnabled = isMediaLoadingEnabled;
+}
+
void Settings::setPluginsEnabled(bool arePluginsEnabled)
{
m_arePluginsEnabled = arePluginsEnabled;

Powered by Google App Engine
This is Rietveld 408576698