Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: headless/lib/browser/headless_browser_context_impl.cc

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698