OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "content/network/network_context.h" | 5 #include "content/network/network_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "components/network_session_configurator/common/network_switches.h" |
10 #include "content/network/cache_url_loader.h" | 11 #include "content/network/cache_url_loader.h" |
11 #include "content/network/network_service_url_loader_factory_impl.h" | 12 #include "content/network/network_service_url_loader_factory_impl.h" |
12 #include "content/network/url_loader_impl.h" | 13 #include "content/network/url_loader_impl.h" |
13 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
14 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
15 #include "net/dns/host_resolver.h" | 16 #include "net/dns/host_resolver.h" |
16 #include "net/dns/mapped_host_resolver.h" | 17 #include "net/dns/mapped_host_resolver.h" |
17 #include "net/http/http_network_session.h" | 18 #include "net/http/http_network_session.h" |
18 #include "net/proxy/proxy_config.h" | 19 #include "net/proxy/proxy_config.h" |
19 #include "net/proxy/proxy_config_service_fixed.h" | 20 #include "net/proxy/proxy_config_service_fixed.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 mojom::URLLoaderClientPtr client) { | 131 mojom::URLLoaderClientPtr client) { |
131 StartCacheURLLoader(url, url_request_context_.get(), std::move(client)); | 132 StartCacheURLLoader(url, url_request_context_.get(), std::move(client)); |
132 } | 133 } |
133 | 134 |
134 NetworkContext::NetworkContext() | 135 NetworkContext::NetworkContext() |
135 : url_request_context_(MakeURLRequestContext()), | 136 : url_request_context_(MakeURLRequestContext()), |
136 in_shutdown_(false), | 137 in_shutdown_(false), |
137 binding_(this) {} | 138 binding_(this) {} |
138 | 139 |
139 } // namespace content | 140 } // namespace content |
OLD | NEW |