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

Unified Diff: net/http/http_features.h

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use features instead of command line flags Created 5 years 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: net/http/http_features.h
diff --git a/net/http/http_features.h b/net/http/http_features.h
new file mode 100644
index 0000000000000000000000000000000000000000..e1b10079d4a3f6500e865b949c3696388266d064
--- /dev/null
+++ b/net/http/http_features.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef NET_HTTP_HTTP_FEATURES_H_
+#define NET_HTTP_HTTP_FEATURES_H_
+
+// This file defines all the base::FeatureList features for the net module.
+
+#include "base/feature_list.h"
+
+namespace net {
+
+namespace features {
+
+// All features in alphabetical order. The features should be documented
+// alongside the definition of their values in the .cc file.
+extern const base::Feature kBrotliEncodingFeature;
+
+// Checks if brotli encoding feature is enabled AND supported.
xunjieli 2015/12/14 16:02:27 Is there a reason that AND is capitalized?
eustas 2015/12/14 17:39:45 To emphasise that not only feature value is taken
+bool IsBrotliEncodingEnabled();
+
+} // namespace features
+
+} // namespace net
+
+#endif // NET_HTTP_HTTP_FEATURES_H_

Powered by Google App Engine
This is Rietveld 408576698