OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |