Chromium Code Reviews| 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_ |