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

Side by Side Diff: android_webview/browser/aw_browser_context.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "android_webview/browser/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_policy_connector.h" 9 #include "android_webview/browser/aw_browser_policy_connector.h"
10 #include "android_webview/browser/aw_form_database_service.h" 10 #include "android_webview/browser/aw_form_database_service.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 return ssl_host_state_delegate_.get(); 321 return ssl_host_state_delegate_.get();
322 } 322 }
323 323
324 content::PermissionManager* AwBrowserContext::GetPermissionManager() { 324 content::PermissionManager* AwBrowserContext::GetPermissionManager() {
325 if (!permission_manager_.get()) 325 if (!permission_manager_.get())
326 permission_manager_.reset(new AwPermissionManager()); 326 permission_manager_.reset(new AwPermissionManager());
327 return permission_manager_.get(); 327 return permission_manager_.get();
328 } 328 }
329 329
330 content::BackgroundFetchClient* AwBrowserContext::GetBackgroundFetchClient() {
331 return nullptr;
332 }
333
330 content::BackgroundSyncController* 334 content::BackgroundSyncController*
331 AwBrowserContext::GetBackgroundSyncController() { 335 AwBrowserContext::GetBackgroundSyncController() {
332 return nullptr; 336 return nullptr;
333 } 337 }
334 338
335 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext( 339 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext(
336 content::ProtocolHandlerMap* protocol_handlers, 340 content::ProtocolHandlerMap* protocol_handlers,
337 content::URLRequestInterceptorScopedVector request_interceptors) { 341 content::URLRequestInterceptorScopedVector request_interceptors) {
338 // This function cannot actually create the request context because 342 // This function cannot actually create the request context because
339 // there is a reentrant dependency on GetResourceContext() via 343 // there is a reentrant dependency on GetResourceContext() via
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 405
402 void AwBrowserContext::RebuildTable( 406 void AwBrowserContext::RebuildTable(
403 const scoped_refptr<URLEnumerator>& enumerator) { 407 const scoped_refptr<URLEnumerator>& enumerator) {
404 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 408 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
405 // can change in the lifetime of this WebView and may not yet be set here. 409 // can change in the lifetime of this WebView and may not yet be set here.
406 // Therefore this initialization path is not used. 410 // Therefore this initialization path is not used.
407 enumerator->OnComplete(true); 411 enumerator->OnComplete(true);
408 } 412 }
409 413
410 } // namespace android_webview 414 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698