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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 13814024: Add a runtime flag in WebRuntimeFeatures to enable 'image/webp' accept header (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch Created 7 years, 8 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/WebKit/chromium/public/WebRuntimeFeatures.h ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index 1ea6358495a3e475101d436ce4d351b40e231095..7dba2b7b89e522adca947be7b14bf9c451c86a2f 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -574,4 +574,22 @@ bool WebRuntimeFeatures::isDoNotTrackEnabled()
return RuntimeEnabledFeatures::doNotTrackEnabled();
}
+void WebRuntimeFeatures::enableWebPInAcceptHeader(bool enable)
+{
+#if USE(WEBP)
+ RuntimeEnabledFeatures::setWebPInAcceptHeaderEnabled(enable);
+#else
+ UNUSED_PARAM(enable);
+#endif
+}
+
+bool WebRuntimeFeatures::isWebPInAcceptHeaderEnabled()
+{
+#if USE(WEBP)
+ return RuntimeEnabledFeatures::webPInAcceptHeaderEnabled();
+#else
+ return false;
+#endif
+}
+
} // namespace WebKit
« no previous file with comments | « Source/WebKit/chromium/public/WebRuntimeFeatures.h ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698