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

Side by Side Diff: net/BUILD.gn

Issue 2919423002: Make URLRequestContextBuilderV8 Mojo-only. (Closed)
Patch Set: Response to comments, fix net Mojo tests on Android, change chrome/utility workaround approach Created 3 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | net/test/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 18 matching lines...) Expand all
29 29
30 # The way the cache uses mmap() is inefficient on some Android devices. If 30 # The way the cache uses mmap() is inefficient on some Android devices. If
31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are 31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are
32 # pretty confident that mmap-ing the index would not hurt any existing x86 32 # pretty confident that mmap-ing the index would not hurt any existing x86
33 # android devices, but we cannot be so sure about the variety of ARM devices. 33 # android devices, but we cannot be so sure about the variety of ARM devices.
34 # So enable it for x86 only for now. 34 # So enable it for x86 only for now.
35 posix_avoid_mmap = is_android && current_cpu != "x86" 35 posix_avoid_mmap = is_android && current_cpu != "x86"
36 36
37 use_v8_in_net = !is_ios && !is_proto_quic 37 use_v8_in_net = !is_ios && !is_proto_quic
38 enable_built_in_dns = !is_ios && !is_proto_quic 38 enable_built_in_dns = !is_ios && !is_proto_quic
39 enable_net_mojo = !is_ios && !is_android && !is_proto_quic 39 enable_net_mojo = !is_ios && !is_proto_quic
40 40
41 # True if certificates are represented with DER byte buffers. This can be true 41 # True if certificates are represented with DER byte buffers. This can be true
42 # in addition to use_openssl_certs or use_nss_certs, in that case byte certs 42 # in addition to use_openssl_certs or use_nss_certs, in that case byte certs
43 # are used internally but OpenSSL or NSS are used for certificate verification. 43 # are used internally but OpenSSL or NSS are used for certificate verification.
44 # TODO(mattm): crbug.com/671420: Implement and enable this for all platforms. 44 # TODO(mattm): crbug.com/671420: Implement and enable this for all platforms.
45 use_byte_certs = is_mac || is_android || is_nacl || is_ios 45 use_byte_certs = is_mac || is_android || is_nacl || is_ios
46 46
47 buildflag_header("features") { 47 buildflag_header("features") {
48 header = "net_features.h" 48 header = "net_features.h"
49 flags = [ 49 flags = [
(...skipping 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 if (enable_net_mojo) { 2650 if (enable_net_mojo) {
2651 source_set("net_browser_services") { 2651 source_set("net_browser_services") {
2652 sources = [ 2652 sources = [
2653 "dns/mojo_host_resolver_impl.cc", 2653 "dns/mojo_host_resolver_impl.cc",
2654 "dns/mojo_host_resolver_impl.h", 2654 "dns/mojo_host_resolver_impl.h",
2655 "proxy/mojo_proxy_resolver_factory.h", 2655 "proxy/mojo_proxy_resolver_factory.h",
2656 "proxy/proxy_resolver_factory_mojo.cc", 2656 "proxy/proxy_resolver_factory_mojo.cc",
2657 "proxy/proxy_resolver_factory_mojo.h", 2657 "proxy/proxy_resolver_factory_mojo.h",
2658 "proxy/proxy_service_mojo.cc", 2658 "proxy/proxy_service_mojo.cc",
2659 "proxy/proxy_service_mojo.h", 2659 "proxy/proxy_service_mojo.h",
2660 "url_request/url_request_context_builder_mojo.cc",
2661 "url_request/url_request_context_builder_mojo.h",
2660 ] 2662 ]
2661 2663
2662 public_deps = [ 2664 public_deps = [
2663 ":net", 2665 ":net",
2664 "//base", 2666 "//base",
2665 "//mojo/public/cpp/bindings", 2667 "//mojo/public/cpp/bindings",
2666 "//net/interfaces", 2668 "//net/interfaces",
2667 ] 2669 ]
2668 } 2670 }
2669 2671
(...skipping 14 matching lines...) Expand all
2684 ] 2686 ]
2685 2687
2686 public_deps = [ 2688 public_deps = [
2687 ":net", 2689 ":net",
2688 "//mojo/public/cpp/bindings", 2690 "//mojo/public/cpp/bindings",
2689 "//net/interfaces", 2691 "//net/interfaces",
2690 ] 2692 ]
2691 } 2693 }
2692 } 2694 }
2693 2695
2694 if (use_v8_in_net) {
2695 source_set("net_context_builder_with_v8") {
2696 sources = [
2697 "url_request/url_request_context_builder_v8.cc",
2698 "url_request/url_request_context_builder_v8.h",
2699 ]
2700
2701 defines = []
2702
2703 deps = [
2704 ":net",
2705 ":net_with_v8",
2706 "//base",
2707 ]
2708
2709 if (enable_net_mojo) {
2710 deps += [
2711 ":net_browser_services",
2712 "//mojo/public/cpp/bindings",
2713 "//net/interfaces",
2714 ]
2715
2716 defines += [ "ENABLE_NET_MOJO" ]
2717 }
2718 }
2719 }
2720
2721 if (!is_ios && !is_android) { 2696 if (!is_ios && !is_android) {
2722 executable("cert_verify_tool") { 2697 executable("cert_verify_tool") {
2723 testonly = true 2698 testonly = true
2724 sources = [ 2699 sources = [
2725 "tools/cert_verify_tool/cert_verify_tool.cc", 2700 "tools/cert_verify_tool/cert_verify_tool.cc",
2726 "tools/cert_verify_tool/cert_verify_tool_util.cc", 2701 "tools/cert_verify_tool/cert_verify_tool_util.cc",
2727 "tools/cert_verify_tool/cert_verify_tool_util.h", 2702 "tools/cert_verify_tool/cert_verify_tool_util.h",
2728 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc", 2703 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
2729 "tools/cert_verify_tool/verify_using_cert_verify_proc.h", 2704 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
2730 "tools/cert_verify_tool/verify_using_path_builder.cc", 2705 "tools/cert_verify_tool/verify_using_path_builder.cc",
(...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after
5082 "third_party/nist-pkits/pkits_testcases-inl.h", 5057 "third_party/nist-pkits/pkits_testcases-inl.h",
5083 "tools/content_decoder_tool/content_decoder_tool.cc", 5058 "tools/content_decoder_tool/content_decoder_tool.cc",
5084 "tools/content_decoder_tool/content_decoder_tool.h", 5059 "tools/content_decoder_tool/content_decoder_tool.h",
5085 "tools/content_decoder_tool/content_decoder_tool_unittest.cc", 5060 "tools/content_decoder_tool/content_decoder_tool_unittest.cc",
5086 "tools/quic/quic_simple_client_test.cc", 5061 "tools/quic/quic_simple_client_test.cc",
5087 "tools/tld_cleanup/tld_cleanup_util_unittest.cc", 5062 "tools/tld_cleanup/tld_cleanup_util_unittest.cc",
5088 "url_request/report_sender_unittest.cc", 5063 "url_request/report_sender_unittest.cc",
5089 "url_request/sdch_dictionary_fetcher_unittest.cc", 5064 "url_request/sdch_dictionary_fetcher_unittest.cc",
5090 "url_request/url_fetcher_impl_unittest.cc", 5065 "url_request/url_fetcher_impl_unittest.cc",
5091 "url_request/url_fetcher_response_writer_unittest.cc", 5066 "url_request/url_fetcher_response_writer_unittest.cc",
5067 "url_request/url_request_context_builder_mojo_unittest.cc",
5092 "url_request/url_request_context_builder_unittest.cc", 5068 "url_request/url_request_context_builder_unittest.cc",
5093 "url_request/url_request_context_builder_v8_unittest.cc",
5094 "url_request/url_request_context_unittest.cc", 5069 "url_request/url_request_context_unittest.cc",
5095 "url_request/url_request_data_job_unittest.cc", 5070 "url_request/url_request_data_job_unittest.cc",
5096 "url_request/url_request_file_dir_job_unittest.cc", 5071 "url_request/url_request_file_dir_job_unittest.cc",
5097 "url_request/url_request_file_job_unittest.cc", 5072 "url_request/url_request_file_job_unittest.cc",
5098 "url_request/url_request_filter_unittest.cc", 5073 "url_request/url_request_filter_unittest.cc",
5099 "url_request/url_request_ftp_job_unittest.cc", 5074 "url_request/url_request_ftp_job_unittest.cc",
5100 "url_request/url_request_http_job_unittest.cc", 5075 "url_request/url_request_http_job_unittest.cc",
5101 "url_request/url_request_job_factory_impl_unittest.cc", 5076 "url_request/url_request_job_factory_impl_unittest.cc",
5102 "url_request/url_request_job_unittest.cc", 5077 "url_request/url_request_job_unittest.cc",
5103 "url_request/url_request_quic_unittest.cc", 5078 "url_request/url_request_quic_unittest.cc",
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5322 } 5297 }
5323 5298
5324 if (!enable_built_in_dns) { 5299 if (!enable_built_in_dns) {
5325 sources -= [ 5300 sources -= [
5326 "dns/address_sorter_posix_unittest.cc", 5301 "dns/address_sorter_posix_unittest.cc",
5327 "dns/address_sorter_unittest.cc", 5302 "dns/address_sorter_unittest.cc",
5328 ] 5303 ]
5329 } 5304 }
5330 5305
5331 if (use_v8_in_net) { 5306 if (use_v8_in_net) {
5332 deps += [ 5307 deps += [ ":net_with_v8" ]
5333 ":net_context_builder_with_v8",
5334 ":net_with_v8",
5335 ]
5336 } else { 5308 } else {
5337 sources -= [ 5309 sources -= [
5338 "proxy/proxy_resolver_v8_tracing_unittest.cc", 5310 "proxy/proxy_resolver_v8_tracing_unittest.cc",
5339 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc", 5311 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
5340 "proxy/proxy_resolver_v8_unittest.cc", 5312 "proxy/proxy_resolver_v8_unittest.cc",
5341 "url_request/url_request_context_builder_v8_unittest.cc",
5342 ] 5313 ]
5343 } 5314 }
5344 5315
5345 if (enable_net_mojo) { 5316 if (enable_net_mojo) {
5346 deps += [ 5317 deps += [
5347 ":net_browser_services", 5318 ":net_browser_services",
5348 ":net_utility_services", 5319 ":net_utility_services",
5349 "//mojo/edk/system", 5320 "//mojo/edk/system",
5350 ] 5321 ]
5351
5352 defines += [ "ENABLE_NET_MOJO" ]
5353 } else { 5322 } else {
5354 sources -= [ 5323 sources -= [
5355 "dns/host_resolver_mojo_unittest.cc", 5324 "dns/host_resolver_mojo_unittest.cc",
5356 "dns/mojo_host_resolver_impl_unittest.cc", 5325 "dns/mojo_host_resolver_impl_unittest.cc",
5357 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc", 5326 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
5358 "proxy/mojo_proxy_resolver_impl_unittest.cc", 5327 "proxy/mojo_proxy_resolver_impl_unittest.cc",
5359 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc", 5328 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
5360 "proxy/proxy_resolver_factory_mojo_unittest.cc", 5329 "proxy/proxy_resolver_factory_mojo_unittest.cc",
5361 "proxy/proxy_service_mojo_unittest.cc", 5330 "proxy/proxy_service_mojo_unittest.cc",
5362 "proxy/test_mojo_proxy_resolver_factory.cc", 5331 "proxy/test_mojo_proxy_resolver_factory.cc",
5363 "proxy/test_mojo_proxy_resolver_factory.h", 5332 "proxy/test_mojo_proxy_resolver_factory.h",
5333 "url_request/url_request_context_builder_mojo_unittest.cc",
5364 ] 5334 ]
5365 } 5335 }
5366 5336
5367 if (!enable_mdns) { 5337 if (!enable_mdns) {
5368 sources -= [ 5338 sources -= [
5369 "dns/mdns_cache_unittest.cc", 5339 "dns/mdns_cache_unittest.cc",
5370 "dns/mdns_client_unittest.cc", 5340 "dns/mdns_client_unittest.cc",
5371 ] 5341 ]
5372 } 5342 }
5373 5343
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
6082 ] 6052 ]
6083 deps = [ 6053 deps = [
6084 ":net_fuzzer_test_support", 6054 ":net_fuzzer_test_support",
6085 ":test_support", 6055 ":test_support",
6086 "//base", 6056 "//base",
6087 "//net", 6057 "//net",
6088 ] 6058 ]
6089 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 6059 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
6090 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 6060 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
6091 } 6061 }
OLDNEW
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | net/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698