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

Unified Diff: net/BUILD.gn

Issue 1326503003: Added a net::BidirectionalStream to expose a bidirectional streaming interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Misha's comments 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 8ca7cdf2941f699622b06a1d88b221a601e09379..a0ae5fb9de0b22880d730e38003dc4177cdda293 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -46,6 +46,7 @@ disable_ftp_support = is_ios
declare_args() {
# Disables support for file URLs. File URL support requires use of icu.
disable_file_support = false
+ enable_bidirectional_stream = false
}
config("net_config") {
@@ -59,6 +60,9 @@ config("net_config") {
if (disable_ftp_support) {
defines += [ "DISABLE_FTP_SUPPORT=1" ]
}
+ if (enable_bidirectional_stream) {
+ defines += [ "ENABLE_BIDIRECTIONAL_STREAM=1" ]
+ }
}
# net_internal_config is shared with net and net_small.
@@ -423,6 +427,10 @@ component("net") {
sources += gypi_values.net_ftp_support_sources
}
+ if (enable_bidirectional_stream) {
+ sources += gypi_values.net_bidirectional_stream_sources
+ }
+
if (enable_websockets) {
sources += gypi_values.net_websockets_sources
}
@@ -1528,6 +1536,9 @@ test("net_unittests") {
]
}
+ if (!enable_bidirectional_stream) {
+ sources -= [ "http/bidirectional_stream_unittest.cc" ]
+ }
if (!enable_built_in_dns) {
sources -= [
"dns/address_sorter_posix_unittest.cc",

Powered by Google App Engine
This is Rietveld 408576698