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

Side by Side Diff: net/BUILD.gn

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