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

Unified Diff: Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h

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: 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 | « no previous file | Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
diff --git a/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h b/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
index 7e74b66bd9c926f5f4a200e26c4bff815a532e62..af8b2d0ac68eaea46cf1d9d783091baf01adf269 100644
--- a/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
+++ b/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
@@ -284,6 +284,11 @@ public:
static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocompleteEnabled = isEnabled; }
#endif
+#if USE(WEBP)
darin (slow to review) 2013/04/10 23:13:16 WTF_USE_WEBP is no longer required in Blink. We c
urvang (Google) 2013/04/11 00:42:51 I was having a look at the latest tree, and WTF_US
+ static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHeaderEnabled = isEnabled; }
+ static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled; }
+#endif
+
private:
// Never instantiate.
RuntimeEnabledFeatures() { }
@@ -391,6 +396,10 @@ private:
static bool isFontLoadEventsEnabled;
#endif
+#if USE(WEBP)
+ static bool isWebPInAcceptHeaderEnabled;
+#endif
+
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698