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

Side by Side Diff: net/BUILD.gn

Issue 2881613002: Allow use of Mojo/V8 ProxyResolvers with URLRequestContextBuilder. (Closed)
Patch Set: Missed some ENABLE_MOJOs Created 3 years, 7 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 | « no previous file | net/proxy/proxy_script_fetcher_impl_unittest.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 40
40 # 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
41 # 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
42 # 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.
43 # 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.
44 use_byte_certs = is_mac || is_android || is_nacl || is_ios 45 use_byte_certs = is_mac || is_android || is_nacl || is_ios
45 46
46 buildflag_header("features") { 47 buildflag_header("features") {
47 header = "net_features.h" 48 header = "net_features.h"
48 flags = [ 49 flags = [
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2485 "test/embedded_test_server/embedded_test_server.h", 2486 "test/embedded_test_server/embedded_test_server.h",
2486 "test/embedded_test_server/embedded_test_server_connection_listener.h", 2487 "test/embedded_test_server/embedded_test_server_connection_listener.h",
2487 "test/embedded_test_server/http_connection.cc", 2488 "test/embedded_test_server/http_connection.cc",
2488 "test/embedded_test_server/http_connection.h", 2489 "test/embedded_test_server/http_connection.h",
2489 "test/embedded_test_server/http_request.cc", 2490 "test/embedded_test_server/http_request.cc",
2490 "test/embedded_test_server/http_request.h", 2491 "test/embedded_test_server/http_request.h",
2491 "test/embedded_test_server/http_response.cc", 2492 "test/embedded_test_server/http_response.cc",
2492 "test/embedded_test_server/http_response.h", 2493 "test/embedded_test_server/http_response.h",
2493 "test/embedded_test_server/request_handler_util.cc", 2494 "test/embedded_test_server/request_handler_util.cc",
2494 "test/embedded_test_server/request_handler_util.h", 2495 "test/embedded_test_server/request_handler_util.h",
2496 "test/embedded_test_server/simple_connection_listener.cc",
2497 "test/embedded_test_server/simple_connection_listener.h",
2495 "test/event_waiter.h", 2498 "test/event_waiter.h",
2496 "test/gtest_util.h", 2499 "test/gtest_util.h",
2497 "test/net_test_suite.cc", 2500 "test/net_test_suite.cc",
2498 "test/net_test_suite.h", 2501 "test/net_test_suite.h",
2499 "test/python_utils.cc", 2502 "test/python_utils.cc",
2500 "test/python_utils.h", 2503 "test/python_utils.h",
2501 "test/scoped_disable_exit_on_dfatal.cc", 2504 "test/scoped_disable_exit_on_dfatal.cc",
2502 "test/scoped_disable_exit_on_dfatal.h", 2505 "test/scoped_disable_exit_on_dfatal.h",
2503 "test/test_certificate_data.h", 2506 "test/test_certificate_data.h",
2504 "test/test_data_directory.cc", 2507 "test/test_data_directory.cc",
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 ] 2630 ]
2628 deps = [ 2631 deps = [
2629 "//base", 2632 "//base",
2630 "//gin", 2633 "//gin",
2631 "//url", 2634 "//url",
2632 "//v8", 2635 "//v8",
2633 ] 2636 ]
2634 } 2637 }
2635 } 2638 }
2636 2639
2637 if (!is_ios && !is_android && !is_proto_quic) { 2640 if (enable_net_mojo) {
2638 source_set("net_browser_services") { 2641 source_set("net_browser_services") {
2639 sources = [ 2642 sources = [
2640 "dns/mojo_host_resolver_impl.cc", 2643 "dns/mojo_host_resolver_impl.cc",
2641 "dns/mojo_host_resolver_impl.h", 2644 "dns/mojo_host_resolver_impl.h",
2642 "proxy/mojo_proxy_resolver_factory.h", 2645 "proxy/mojo_proxy_resolver_factory.h",
2643 "proxy/proxy_resolver_factory_mojo.cc", 2646 "proxy/proxy_resolver_factory_mojo.cc",
2644 "proxy/proxy_resolver_factory_mojo.h", 2647 "proxy/proxy_resolver_factory_mojo.h",
2645 "proxy/proxy_service_mojo.cc", 2648 "proxy/proxy_service_mojo.cc",
2646 "proxy/proxy_service_mojo.h", 2649 "proxy/proxy_service_mojo.h",
2647 ] 2650 ]
(...skipping 23 matching lines...) Expand all
2671 ] 2674 ]
2672 2675
2673 public_deps = [ 2676 public_deps = [
2674 ":net", 2677 ":net",
2675 "//mojo/public/cpp/bindings", 2678 "//mojo/public/cpp/bindings",
2676 "//net/interfaces", 2679 "//net/interfaces",
2677 ] 2680 ]
2678 } 2681 }
2679 } 2682 }
2680 2683
2684 if (use_v8_in_net) {
2685 source_set("net_context_builder_with_v8") {
2686 sources = [
2687 "url_request/url_request_context_builder_v8.cc",
2688 "url_request/url_request_context_builder_v8.h",
2689 ]
2690
2691 defines = []
2692
2693 deps = [
2694 ":net",
2695 ":net_with_v8",
2696 "//base",
2697 ]
2698
2699 if (enable_net_mojo) {
2700 deps += [
2701 ":net_browser_services",
2702 "//mojo/public/cpp/bindings",
2703 "//net/interfaces",
2704 ]
2705
2706 defines += [ "ENABLE_NET_MOJO" ]
2707 }
2708 }
2709 }
2710
2681 if (!is_ios && !is_android) { 2711 if (!is_ios && !is_android) {
2682 executable("cert_verify_tool") { 2712 executable("cert_verify_tool") {
2683 testonly = true 2713 testonly = true
2684 sources = [ 2714 sources = [
2685 "tools/cert_verify_tool/cert_verify_tool.cc", 2715 "tools/cert_verify_tool/cert_verify_tool.cc",
2686 "tools/cert_verify_tool/cert_verify_tool_util.cc", 2716 "tools/cert_verify_tool/cert_verify_tool_util.cc",
2687 "tools/cert_verify_tool/cert_verify_tool_util.h", 2717 "tools/cert_verify_tool/cert_verify_tool_util.h",
2688 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc", 2718 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
2689 "tools/cert_verify_tool/verify_using_cert_verify_proc.h", 2719 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
2690 "tools/cert_verify_tool/verify_using_path_builder.cc", 2720 "tools/cert_verify_tool/verify_using_path_builder.cc",
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after
4550 "proxy/proxy_list_unittest.cc", 4580 "proxy/proxy_list_unittest.cc",
4551 "proxy/proxy_resolver_factory_mojo_unittest.cc", 4581 "proxy/proxy_resolver_factory_mojo_unittest.cc",
4552 "proxy/proxy_resolver_v8_tracing_unittest.cc", 4582 "proxy/proxy_resolver_v8_tracing_unittest.cc",
4553 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc", 4583 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
4554 "proxy/proxy_resolver_v8_unittest.cc", 4584 "proxy/proxy_resolver_v8_unittest.cc",
4555 "proxy/proxy_script_decider_unittest.cc", 4585 "proxy/proxy_script_decider_unittest.cc",
4556 "proxy/proxy_script_fetcher_impl_unittest.cc", 4586 "proxy/proxy_script_fetcher_impl_unittest.cc",
4557 "proxy/proxy_server_unittest.cc", 4587 "proxy/proxy_server_unittest.cc",
4558 "proxy/proxy_service_mojo_unittest.cc", 4588 "proxy/proxy_service_mojo_unittest.cc",
4559 "proxy/proxy_service_unittest.cc", 4589 "proxy/proxy_service_unittest.cc",
4590 "proxy/test_mojo_proxy_resolver_factory.cc",
4591 "proxy/test_mojo_proxy_resolver_factory.h",
4560 "quic/chromium/bidirectional_stream_quic_impl_unittest.cc", 4592 "quic/chromium/bidirectional_stream_quic_impl_unittest.cc",
4561 "quic/chromium/crypto/proof_test_chromium.cc", 4593 "quic/chromium/crypto/proof_test_chromium.cc",
4562 "quic/chromium/crypto/proof_verifier_chromium_test.cc", 4594 "quic/chromium/crypto/proof_verifier_chromium_test.cc",
4563 "quic/chromium/crypto_test_utils_chromium.cc", 4595 "quic/chromium/crypto_test_utils_chromium.cc",
4564 "quic/chromium/mock_crypto_client_stream_factory.cc", 4596 "quic/chromium/mock_crypto_client_stream_factory.cc",
4565 "quic/chromium/mock_crypto_client_stream_factory.h", 4597 "quic/chromium/mock_crypto_client_stream_factory.h",
4566 "quic/chromium/mock_quic_data.cc", 4598 "quic/chromium/mock_quic_data.cc",
4567 "quic/chromium/mock_quic_data.h", 4599 "quic/chromium/mock_quic_data.h",
4568 "quic/chromium/network_connection_unittest.cc", 4600 "quic/chromium/network_connection_unittest.cc",
4569 "quic/chromium/properties_based_quic_server_info_test.cc", 4601 "quic/chromium/properties_based_quic_server_info_test.cc",
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 "tools/content_decoder_tool/content_decoder_tool_unittest.cc", 4918 "tools/content_decoder_tool/content_decoder_tool_unittest.cc",
4887 "tools/quic/quic_simple_client_test.cc", 4919 "tools/quic/quic_simple_client_test.cc",
4888 "tools/quic/test_tools/mock_quic_session_visitor.cc", 4920 "tools/quic/test_tools/mock_quic_session_visitor.cc",
4889 "tools/quic/test_tools/mock_quic_session_visitor.h", 4921 "tools/quic/test_tools/mock_quic_session_visitor.h",
4890 "tools/tld_cleanup/tld_cleanup_util_unittest.cc", 4922 "tools/tld_cleanup/tld_cleanup_util_unittest.cc",
4891 "url_request/report_sender_unittest.cc", 4923 "url_request/report_sender_unittest.cc",
4892 "url_request/sdch_dictionary_fetcher_unittest.cc", 4924 "url_request/sdch_dictionary_fetcher_unittest.cc",
4893 "url_request/url_fetcher_impl_unittest.cc", 4925 "url_request/url_fetcher_impl_unittest.cc",
4894 "url_request/url_fetcher_response_writer_unittest.cc", 4926 "url_request/url_fetcher_response_writer_unittest.cc",
4895 "url_request/url_request_context_builder_unittest.cc", 4927 "url_request/url_request_context_builder_unittest.cc",
4928 "url_request/url_request_context_builder_v8_unittest.cc",
4896 "url_request/url_request_context_unittest.cc", 4929 "url_request/url_request_context_unittest.cc",
4897 "url_request/url_request_data_job_unittest.cc", 4930 "url_request/url_request_data_job_unittest.cc",
4898 "url_request/url_request_file_dir_job_unittest.cc", 4931 "url_request/url_request_file_dir_job_unittest.cc",
4899 "url_request/url_request_file_job_unittest.cc", 4932 "url_request/url_request_file_job_unittest.cc",
4900 "url_request/url_request_filter_unittest.cc", 4933 "url_request/url_request_filter_unittest.cc",
4901 "url_request/url_request_ftp_job_unittest.cc", 4934 "url_request/url_request_ftp_job_unittest.cc",
4902 "url_request/url_request_http_job_unittest.cc", 4935 "url_request/url_request_http_job_unittest.cc",
4903 "url_request/url_request_job_factory_impl_unittest.cc", 4936 "url_request/url_request_job_factory_impl_unittest.cc",
4904 "url_request/url_request_job_unittest.cc", 4937 "url_request/url_request_job_unittest.cc",
4905 "url_request/url_request_quic_unittest.cc", 4938 "url_request/url_request_quic_unittest.cc",
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
5145 } 5178 }
5146 5179
5147 if (!enable_built_in_dns) { 5180 if (!enable_built_in_dns) {
5148 sources -= [ 5181 sources -= [
5149 "dns/address_sorter_posix_unittest.cc", 5182 "dns/address_sorter_posix_unittest.cc",
5150 "dns/address_sorter_unittest.cc", 5183 "dns/address_sorter_unittest.cc",
5151 ] 5184 ]
5152 } 5185 }
5153 5186
5154 if (use_v8_in_net) { 5187 if (use_v8_in_net) {
5155 deps += [ ":net_with_v8" ] 5188 deps += [
5189 ":net_context_builder_with_v8",
5190 ":net_with_v8",
5191 ]
5156 } else { 5192 } else {
5157 sources -= [ 5193 sources -= [
5158 "proxy/proxy_resolver_v8_tracing_unittest.cc", 5194 "proxy/proxy_resolver_v8_tracing_unittest.cc",
5159 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc", 5195 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
5160 "proxy/proxy_resolver_v8_unittest.cc", 5196 "proxy/proxy_resolver_v8_unittest.cc",
5197 "url_request/url_request_context_builder_v8_unittest.cc",
5161 ] 5198 ]
5162 } 5199 }
5163 5200
5164 if (use_v8_in_net && !is_android) { 5201 if (enable_net_mojo) {
5165 deps += [ 5202 deps += [
5166 ":net_browser_services", 5203 ":net_browser_services",
5167 ":net_utility_services", 5204 ":net_utility_services",
5168 "//mojo/edk/system", 5205 "//mojo/edk/system",
5169 ] 5206 ]
5207
5208 defines += [ "ENABLE_NET_MOJO" ]
5170 } else { 5209 } else {
5171 sources -= [ 5210 sources -= [
5172 "dns/host_resolver_mojo_unittest.cc", 5211 "dns/host_resolver_mojo_unittest.cc",
5173 "dns/mojo_host_resolver_impl_unittest.cc", 5212 "dns/mojo_host_resolver_impl_unittest.cc",
5174 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc", 5213 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
5175 "proxy/mojo_proxy_resolver_impl_unittest.cc", 5214 "proxy/mojo_proxy_resolver_impl_unittest.cc",
5176 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc", 5215 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
5177 "proxy/proxy_resolver_factory_mojo_unittest.cc", 5216 "proxy/proxy_resolver_factory_mojo_unittest.cc",
5178 "proxy/proxy_service_mojo_unittest.cc", 5217 "proxy/proxy_service_mojo_unittest.cc",
5218 "proxy/test_mojo_proxy_resolver_factory.cc",
5219 "proxy/test_mojo_proxy_resolver_factory.h",
5179 ] 5220 ]
5180 } 5221 }
5181 5222
5182 if (!enable_mdns) { 5223 if (!enable_mdns) {
5183 sources -= [ 5224 sources -= [
5184 "dns/mdns_cache_unittest.cc", 5225 "dns/mdns_cache_unittest.cc",
5185 "dns/mdns_client_unittest.cc", 5226 "dns/mdns_client_unittest.cc",
5186 ] 5227 ]
5187 } 5228 }
5188 5229
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
5893 ] 5934 ]
5894 deps = [ 5935 deps = [
5895 ":net_fuzzer_test_support", 5936 ":net_fuzzer_test_support",
5896 ":test_support", 5937 ":test_support",
5897 "//base", 5938 "//base",
5898 "//net", 5939 "//net",
5899 ] 5940 ]
5900 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 5941 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
5901 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 5942 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
5902 } 5943 }
OLDNEW
« no previous file with comments | « no previous file | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698