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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 HeadlessBrowserContextImpl::GetSSLHostStateDelegate() { | 201 HeadlessBrowserContextImpl::GetSSLHostStateDelegate() { |
202 return nullptr; | 202 return nullptr; |
203 } | 203 } |
204 | 204 |
205 content::PermissionManager* HeadlessBrowserContextImpl::GetPermissionManager() { | 205 content::PermissionManager* HeadlessBrowserContextImpl::GetPermissionManager() { |
206 if (!permission_manager_.get()) | 206 if (!permission_manager_.get()) |
207 permission_manager_.reset(new HeadlessPermissionManager()); | 207 permission_manager_.reset(new HeadlessPermissionManager()); |
208 return permission_manager_.get(); | 208 return permission_manager_.get(); |
209 } | 209 } |
210 | 210 |
| 211 content::BackgroundFetchClient* |
| 212 HeadlessBrowserContextImpl::GetBackgroundFetchClient() { |
| 213 return nullptr; |
| 214 } |
| 215 |
211 content::BackgroundSyncController* | 216 content::BackgroundSyncController* |
212 HeadlessBrowserContextImpl::GetBackgroundSyncController() { | 217 HeadlessBrowserContextImpl::GetBackgroundSyncController() { |
213 return nullptr; | 218 return nullptr; |
214 } | 219 } |
215 | 220 |
216 net::URLRequestContextGetter* HeadlessBrowserContextImpl::CreateRequestContext( | 221 net::URLRequestContextGetter* HeadlessBrowserContextImpl::CreateRequestContext( |
217 content::ProtocolHandlerMap* protocol_handlers, | 222 content::ProtocolHandlerMap* protocol_handlers, |
218 content::URLRequestInterceptorScopedVector request_interceptors) { | 223 content::URLRequestInterceptorScopedVector request_interceptors) { |
219 scoped_refptr<HeadlessURLRequestContextGetter> url_request_context_getter( | 224 scoped_refptr<HeadlessURLRequestContextGetter> url_request_context_getter( |
220 new HeadlessURLRequestContextGetter( | 225 new HeadlessURLRequestContextGetter( |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings() {} | 427 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings() {} |
423 | 428 |
424 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings( | 429 HeadlessBrowserContext::Builder::MojoBindings::MojoBindings( |
425 const std::string& mojom_name, | 430 const std::string& mojom_name, |
426 const std::string& js_bindings) | 431 const std::string& js_bindings) |
427 : mojom_name(mojom_name), js_bindings(js_bindings) {} | 432 : mojom_name(mojom_name), js_bindings(js_bindings) {} |
428 | 433 |
429 HeadlessBrowserContext::Builder::MojoBindings::~MojoBindings() {} | 434 HeadlessBrowserContext::Builder::MojoBindings::~MojoBindings() {} |
430 | 435 |
431 } // namespace headless | 436 } // namespace headless |
OLD | NEW |