| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "headless/lib/browser/headless_url_request_context_getter.h" | 5 #include "headless/lib/browser/headless_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "content/public/browser/cookie_store_factory.h" | 12 #include "content/public/browser/cookie_store_factory.h" |
| 13 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
| 14 #include "net/cert/cert_verifier.h" | 14 #include "net/cert/cert_verifier.h" |
| 15 #include "net/cookies/cookie_store.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_auth_handler_factory.h" | 18 #include "net/http/http_auth_handler_factory.h" |
| 18 #include "net/http/http_cache.h" | 19 #include "net/http/http_cache.h" |
| 19 #include "net/http/http_network_session.h" | 20 #include "net/http/http_network_session.h" |
| 20 #include "net/http/http_server_properties_impl.h" | 21 #include "net/http/http_server_properties_impl.h" |
| 21 #include "net/http/transport_security_state.h" | 22 #include "net/http/transport_security_state.h" |
| 22 #include "net/proxy/proxy_service.h" | 23 #include "net/proxy/proxy_service.h" |
| 23 #include "net/ssl/channel_id_service.h" | 24 #include "net/ssl/channel_id_service.h" |
| 24 #include "net/ssl/default_channel_id_store.h" | 25 #include "net/ssl/default_channel_id_store.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 HeadlessURLRequestContextGetter::GetNetworkTaskRunner() const { | 213 HeadlessURLRequestContextGetter::GetNetworkTaskRunner() const { |
| 213 return content::BrowserThread::GetMessageLoopProxyForThread( | 214 return content::BrowserThread::GetMessageLoopProxyForThread( |
| 214 content::BrowserThread::IO); | 215 content::BrowserThread::IO); |
| 215 } | 216 } |
| 216 | 217 |
| 217 net::HostResolver* HeadlessURLRequestContextGetter::host_resolver() const { | 218 net::HostResolver* HeadlessURLRequestContextGetter::host_resolver() const { |
| 218 return url_request_context_->host_resolver(); | 219 return url_request_context_->host_resolver(); |
| 219 } | 220 } |
| 220 | 221 |
| 221 } // namespace headless | 222 } // namespace headless |
| OLD | NEW |