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

Side by Side Diff: content/network/network_context.cc

Issue 2914893002: Move some of IOThread's command line logic to network_session_configurator. (Closed)
Patch Set: Fix merge 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 | « content/network/DEPS ('k') | content/public/common/content_switches.h » ('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 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
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
OLDNEW
« no previous file with comments | « content/network/DEPS ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698