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

Unified Diff: net/BUILD.gn

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude brotli_filter_unittest on ios - needs to read input data files 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
« no previous file with comments | « content/public/common/content_features.cc ('k') | net/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 4ca6128f1888119f336ed9d40fcce6e5236103d3..4c453f318b9c8aabe510882b6a6b9be3444e11b3 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -451,11 +451,16 @@ component("net") {
"base/net_string_util_icu.cc",
"base/net_util_icu.cc",
]
+
+ # Brotli support.
+ deps += [ "//third_party/brotli" ]
+ sources += [ "filter/brotli_filter.cc" ]
}
}
if (is_android) {
- # Same as net, but with ICU, file, ftp, and websocket support stripped.
+ # Same as net, but with brotli encoding, ICU, file, ftp, and websocket
+ # support stripped.
component("net_small") {
sources = net_shared_sources
@@ -484,6 +489,9 @@ if (is_android) {
"base/net_string_util_icu_alternatives_android.cc",
"base/net_string_util_icu_alternatives_android.h",
]
+
+ # Disable Brotli support.
+ sources += [ "filter/brotli_filter_disabled.cc" ]
}
}
@@ -1620,6 +1628,7 @@ test("net_unittests") {
"disk_cache/blockfile/block_files_unittest.cc",
# Need to read input data files.
+ "filter/brotli_filter_unittest.cc",
"filter/gzip_filter_unittest.cc",
"socket/ssl_server_socket_unittest.cc",
"spdy/fuzzing/hpack_fuzz_util_test.cc",
« no previous file with comments | « content/public/common/content_features.cc ('k') | net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698