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-Encoding" advertising and "Content-Encoding" support. |
| 12 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 13 const base::Feature kBrotliEncodingFeature = { |
| 14 "brotli-encoding", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 15 |
| 16 bool IsBrotliEncodingEnabled() { |
| 17 #if !defined(DISABLE_BROTLI_SUPPORT) |
| 18 return base::FeatureList::IsEnabled(kBrotliEncodingFeature); |
| 19 #else |
| 20 return false; |
| 21 #endif |
| 22 } |
| 23 |
| 24 } // namespace features |
| 25 |
| 26 } // namespace net |
OLD | NEW |