| 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 "content/shell/browser/shell_browser_context.h" | 5 #include "content/shell/browser/shell_browser_context.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return download_manager_delegate_.get(); | 149 return download_manager_delegate_.get(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 ShellURLRequestContextGetter* | 152 ShellURLRequestContextGetter* |
| 153 ShellBrowserContext::CreateURLRequestContextGetter( | 153 ShellBrowserContext::CreateURLRequestContextGetter( |
| 154 ProtocolHandlerMap* protocol_handlers, | 154 ProtocolHandlerMap* protocol_handlers, |
| 155 URLRequestInterceptorScopedVector request_interceptors) { | 155 URLRequestInterceptorScopedVector request_interceptors) { |
| 156 return new ShellURLRequestContextGetter( | 156 return new ShellURLRequestContextGetter( |
| 157 ignore_certificate_errors_, GetPath(), | 157 ignore_certificate_errors_, GetPath(), |
| 158 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), | 158 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), |
| 159 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), | |
| 160 protocol_handlers, std::move(request_interceptors), net_log_); | 159 protocol_handlers, std::move(request_interceptors), net_log_); |
| 161 } | 160 } |
| 162 | 161 |
| 163 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( | 162 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( |
| 164 ProtocolHandlerMap* protocol_handlers, | 163 ProtocolHandlerMap* protocol_handlers, |
| 165 URLRequestInterceptorScopedVector request_interceptors) { | 164 URLRequestInterceptorScopedVector request_interceptors) { |
| 166 DCHECK(!url_request_getter_.get()); | 165 DCHECK(!url_request_getter_.get()); |
| 167 url_request_getter_ = CreateURLRequestContextGetter( | 166 url_request_getter_ = CreateURLRequestContextGetter( |
| 168 protocol_handlers, std::move(request_interceptors)); | 167 protocol_handlers, std::move(request_interceptors)); |
| 169 resource_context_->set_url_request_context_getter(url_request_getter_.get()); | 168 resource_context_->set_url_request_context_getter(url_request_getter_.get()); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 background_sync_controller_.reset(new MockBackgroundSyncController()); | 222 background_sync_controller_.reset(new MockBackgroundSyncController()); |
| 224 return background_sync_controller_.get(); | 223 return background_sync_controller_.get(); |
| 225 } | 224 } |
| 226 | 225 |
| 227 BrowsingDataRemoverDelegate* | 226 BrowsingDataRemoverDelegate* |
| 228 ShellBrowserContext::GetBrowsingDataRemoverDelegate() { | 227 ShellBrowserContext::GetBrowsingDataRemoverDelegate() { |
| 229 return nullptr; | 228 return nullptr; |
| 230 } | 229 } |
| 231 | 230 |
| 232 } // namespace content | 231 } // namespace content |
| OLD | NEW |