OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/http/http_features.h" | |
6 | |
7 namespace net { | |
8 | |
9 namespace features { | |
10 | |
11 // Enables brotli "Accept-Encooding" advertising and "Content-Encoding" support. | |
xunjieli
2015/12/14 16:02:27
Could you also link ietf draft here? http://www.ie
xunjieli
2015/12/14 16:02:27
nit: typo in Encoding
eustas
2015/12/14 17:39:45
Done.
eustas
2015/12/14 17:39:45
Done.
| |
12 const base::Feature kBrotliEncodingFeature = { | |
13 "brotli-encoding", base::FEATURE_DISABLED_BY_DEFAULT}; | |
14 | |
15 bool IsBrotliEncodingEnabled() { | |
16 #if !defined(DISABLE_BROTLI_SUPPORT) | |
17 return base::FeatureList::IsEnabled(kBrotliEncodingFeature); | |
18 #else | |
19 return false; | |
20 #endif | |
21 } | |
22 | |
23 } // namespace features | |
24 | |
25 } // namespace net | |
OLD | NEW |