OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_browser_context_impl.h" | 5 #include "headless/lib/browser/headless_browser_context_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if (!permission_manager_.get()) | 234 if (!permission_manager_.get()) |
235 permission_manager_.reset(new HeadlessPermissionManager()); | 235 permission_manager_.reset(new HeadlessPermissionManager()); |
236 return permission_manager_.get(); | 236 return permission_manager_.get(); |
237 } | 237 } |
238 | 238 |
239 content::BackgroundSyncController* | 239 content::BackgroundSyncController* |
240 HeadlessBrowserContextImpl::GetBackgroundSyncController() { | 240 HeadlessBrowserContextImpl::GetBackgroundSyncController() { |
241 return nullptr; | 241 return nullptr; |
242 } | 242 } |
243 | 243 |
| 244 content::BrowsingDataRemoverDelegate* |
| 245 HeadlessBrowserContextImpl::GetBrowsingDataRemoverDelegate() { |
| 246 return nullptr; |
| 247 } |
| 248 |
244 net::URLRequestContextGetter* HeadlessBrowserContextImpl::CreateRequestContext( | 249 net::URLRequestContextGetter* HeadlessBrowserContextImpl::CreateRequestContext( |
245 content::ProtocolHandlerMap* protocol_handlers, | 250 content::ProtocolHandlerMap* protocol_handlers, |
246 content::URLRequestInterceptorScopedVector request_interceptors) { | 251 content::URLRequestInterceptorScopedVector request_interceptors) { |
247 scoped_refptr<HeadlessURLRequestContextGetter> url_request_context_getter( | 252 scoped_refptr<HeadlessURLRequestContextGetter> url_request_context_getter( |
248 new HeadlessURLRequestContextGetter( | 253 new HeadlessURLRequestContextGetter( |
249 content::BrowserThread::GetTaskRunnerForThread( | 254 content::BrowserThread::GetTaskRunnerForThread( |
250 content::BrowserThread::IO), | 255 content::BrowserThread::IO), |
251 content::BrowserThread::GetTaskRunnerForThread( | 256 content::BrowserThread::GetTaskRunnerForThread( |
252 content::BrowserThread::FILE), | 257 content::BrowserThread::FILE), |
253 protocol_handlers, context_options_->TakeProtocolHandlers(), | 258 protocol_handlers, context_options_->TakeProtocolHandlers(), |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings() {} | 456 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings() {} |
452 | 457 |
453 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings( | 458 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings( |
454 const std::string& mojom_name, | 459 const std::string& mojom_name, |
455 const std::string& js_bindings) | 460 const std::string& js_bindings) |
456 : mojom_name(mojom_name), js_bindings(js_bindings) {} | 461 : mojom_name(mojom_name), js_bindings(js_bindings) {} |
457 | 462 |
458 HeadlessBrowserContext::Builder::MojoBindings::~MojoBindings() {} | 463 HeadlessBrowserContext::Builder::MojoBindings::~MojoBindings() {} |
459 | 464 |
460 } // namespace headless | 465 } // namespace headless |
OLD | NEW |