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

Side by Side Diff: content/shell/browser/shell_url_request_context_getter.cc

Issue 1892123003: Add components/network_session_configurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on https://crrev.com/1945513002. Created 4 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 | « content/shell/browser/shell_browser_context.cc ('k') | extensions/shell/browser/DEPS » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "content/shell/browser/shell_url_request_context_getter.h" 5 #include "content/shell/browser/shell_url_request_context_getter.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/threading/sequenced_worker_pool.h" 17 #include "base/threading/sequenced_worker_pool.h"
18 #include "base/threading/worker_pool.h" 18 #include "base/threading/worker_pool.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "components/network_session_configurator/switches.h"
20 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/cookie_store_factory.h" 22 #include "content/public/browser/cookie_store_factory.h"
22 #include "content/public/common/content_switches.h" 23 #include "content/public/common/content_switches.h"
23 #include "content/shell/browser/shell_network_delegate.h" 24 #include "content/shell/browser/shell_network_delegate.h"
24 #include "content/shell/common/shell_content_client.h" 25 #include "content/shell/common/shell_content_client.h"
25 #include "content/shell/common/shell_switches.h" 26 #include "content/shell/common/shell_switches.h"
26 #include "net/base/cache_type.h" 27 #include "net/base/cache_type.h"
27 #include "net/cert/cert_verifier.h" 28 #include "net/cert/cert_verifier.h"
28 #include "net/cookies/cookie_monster.h" 29 #include "net/cookies/cookie_monster.h"
29 #include "net/dns/host_resolver.h" 30 #include "net/dns/host_resolver.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 scoped_refptr<base::SingleThreadTaskRunner> 248 scoped_refptr<base::SingleThreadTaskRunner>
248 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { 249 ShellURLRequestContextGetter::GetNetworkTaskRunner() const {
249 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 250 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
250 } 251 }
251 252
252 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { 253 net::HostResolver* ShellURLRequestContextGetter::host_resolver() {
253 return url_request_context_->host_resolver(); 254 return url_request_context_->host_resolver();
254 } 255 }
255 256
256 } // namespace content 257 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.cc ('k') | extensions/shell/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698