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

Unified Diff: Source/bindings/v8/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: 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/src/WebRuntimeFeatures.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/RuntimeEnabledFeatures.h
diff --git a/Source/bindings/v8/RuntimeEnabledFeatures.h b/Source/bindings/v8/RuntimeEnabledFeatures.h
index a17ae2346fe3976561fd845dadb9bb29f09e9711..dd6d95b5728ea8ba06867a17173edf2aba67c8b3 100644
--- a/Source/bindings/v8/RuntimeEnabledFeatures.h
+++ b/Source/bindings/v8/RuntimeEnabledFeatures.h
@@ -248,6 +248,11 @@ public:
static bool requestAutocompleteEnabled() { return isRequestAutocompleteEnabled; }
static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocompleteEnabled = isEnabled; }
+#if USE(WEBP)
+ static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHeaderEnabled = isEnabled; }
+ static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled; }
+#endif
+
private:
// Never instantiate.
RuntimeEnabledFeatures() { }
@@ -333,6 +338,10 @@ private:
static bool isDoNotTrackEnabled;
+#if USE(WEBP)
+ static bool isWebPInAcceptHeaderEnabled;
+#endif
+
};
} // namespace WebCore
« no previous file with comments | « Source/WebKit/chromium/src/WebRuntimeFeatures.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698