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

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: Addressed comments, moved feature declatation to content 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/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 4ca6128f1888119f336ed9d40fcce6e5236103d3..df31b0deade654747e25092d96516f3ddbb8a4dc 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" ]
}
}
« no previous file with comments | « content/public/common/content_features.cc ('k') | net/DEPS » ('j') | net/filter/brotli_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698