Index: net/http/http_features.cc |
diff --git a/net/http/http_features.cc b/net/http/http_features.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d052f36c41581fe796833e58ee136b7c8df3d095 |
--- /dev/null |
+++ b/net/http/http_features.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/http/http_features.h" |
+ |
+namespace net { |
+ |
+namespace features { |
+ |
+// Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
+// Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
+const base::Feature kBrotliEncodingFeature = { |
+ "brotli-encoding", base::FEATURE_DISABLED_BY_DEFAULT}; |
+ |
+bool IsBrotliEncodingEnabled() { |
+#if !defined(DISABLE_BROTLI_SUPPORT) |
+ return base::FeatureList::IsEnabled(kBrotliEncodingFeature); |
+#else |
+ return false; |
+#endif |
+} |
+ |
+} // namespace features |
+ |
+} // namespace net |