| OLD | NEW |
| 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 "mojo/loader/url_request_context_getter.h" | 5 #include "mojo/shell/url_request_context_getter.h" |
| 6 | 6 |
| 7 #include "net/cookies/cookie_monster.h" | 7 #include "net/cookies/cookie_monster.h" |
| 8 #include "net/http/http_cache.h" | 8 #include "net/http/http_cache.h" |
| 9 #include "net/http/http_network_session.h" | 9 #include "net/http/http_network_session.h" |
| 10 #include "net/http/http_server_properties_impl.h" | 10 #include "net/http/http_server_properties_impl.h" |
| 11 #include "net/proxy/proxy_service.h" | 11 #include "net/proxy/proxy_service.h" |
| 12 #include "net/ssl/ssl_config_service_defaults.h" | 12 #include "net/ssl/ssl_config_service_defaults.h" |
| 13 #include "net/url_request/static_http_user_agent_settings.h" | 13 #include "net/url_request/static_http_user_agent_settings.h" |
| 14 #include "net/url_request/url_request_context.h" | 14 #include "net/url_request/url_request_context.h" |
| 15 #include "net/url_request/url_request_job_factory_impl.h" | 15 #include "net/url_request/url_request_job_factory_impl.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace loader { | 18 namespace shell { |
| 19 | 19 |
| 20 URLRequestContextGetter::URLRequestContextGetter( | 20 URLRequestContextGetter::URLRequestContextGetter( |
| 21 base::FilePath base_path, | 21 base::FilePath base_path, |
| 22 base::SingleThreadTaskRunner* network_task_runner, | 22 base::SingleThreadTaskRunner* network_task_runner, |
| 23 base::MessageLoopProxy* cache_task_runner) | 23 base::MessageLoopProxy* cache_task_runner) |
| 24 : base_path_(base_path), | 24 : base_path_(base_path), |
| 25 network_task_runner_(network_task_runner), | 25 network_task_runner_(network_task_runner), |
| 26 cache_task_runner_(cache_task_runner), | 26 cache_task_runner_(cache_task_runner), |
| 27 net_log_(new net::NetLog()) { | 27 net_log_(new net::NetLog()) { |
| 28 } | 28 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 return url_request_context_.get(); | 85 return url_request_context_.get(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 scoped_refptr<base::SingleThreadTaskRunner> | 88 scoped_refptr<base::SingleThreadTaskRunner> |
| 89 URLRequestContextGetter::GetNetworkTaskRunner() const { | 89 URLRequestContextGetter::GetNetworkTaskRunner() const { |
| 90 return network_task_runner_; | 90 return network_task_runner_; |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace loader | 93 } // namespace shell |
| 94 } // namespace mojo | 94 } // namespace mojo |
| OLD | NEW |