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

Side by Side Diff: ios/web/shell/shell_url_request_context_getter.cc

Issue 1160403005: ios: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error. Created 5 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 | « ios/web/shell/shell_url_request_context_getter.h ('k') | ios/web/web_thread_adapter.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/shell/shell_url_request_context_getter.h" 5 #include "ios/web/shell/shell_url_request_context_getter.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 22 matching lines...) Expand all
33 #include "net/url_request/url_request_context.h" 33 #include "net/url_request/url_request_context.h"
34 #include "net/url_request/url_request_context_storage.h" 34 #include "net/url_request/url_request_context_storage.h"
35 #include "net/url_request/url_request_job_factory_impl.h" 35 #include "net/url_request/url_request_job_factory_impl.h"
36 36
37 namespace web { 37 namespace web {
38 38
39 ShellURLRequestContextGetter::ShellURLRequestContextGetter( 39 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
40 const base::FilePath& base_path, 40 const base::FilePath& base_path,
41 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, 41 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner,
42 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, 42 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner,
43 const scoped_refptr<base::MessageLoopProxy>& cache_task_runner) 43 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner)
44 : base_path_(base_path), 44 : base_path_(base_path),
45 file_task_runner_(file_task_runner), 45 file_task_runner_(file_task_runner),
46 network_task_runner_(network_task_runner), 46 network_task_runner_(network_task_runner),
47 cache_task_runner_(cache_task_runner), 47 cache_task_runner_(cache_task_runner),
48 proxy_config_service_(new net::ProxyConfigServiceIOS), 48 proxy_config_service_(new net::ProxyConfigServiceIOS),
49 net_log_(new net::NetLog()) { 49 net_log_(new net::NetLog()) {
50 } 50 }
51 51
52 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() { 52 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
53 } 53 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 return url_request_context_.get(); 151 return url_request_context_.get();
152 } 152 }
153 153
154 scoped_refptr<base::SingleThreadTaskRunner> 154 scoped_refptr<base::SingleThreadTaskRunner>
155 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { 155 ShellURLRequestContextGetter::GetNetworkTaskRunner() const {
156 return network_task_runner_; 156 return network_task_runner_;
157 } 157 }
158 158
159 } // namespace web 159 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.h ('k') | ios/web/web_thread_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698