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

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 2898443002: Implement GetBrowsingDataRemoverDelegate() for BrowserContext subclasses (Closed)
Patch Set: More fixes. Created 3 years, 7 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::BackgroundSyncController* 330 content::BackgroundSyncController*
331 AwBrowserContext::GetBackgroundSyncController() { 331 AwBrowserContext::GetBackgroundSyncController() {
332 return nullptr; 332 return nullptr;
333 } 333 }
334 334
335 content::BrowsingDataRemoverDelegate*
336 AwBrowserContext::GetBrowsingDataRemoverDelegate() {
337 return nullptr;
338 }
339
335 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext( 340 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext(
336 content::ProtocolHandlerMap* protocol_handlers, 341 content::ProtocolHandlerMap* protocol_handlers,
337 content::URLRequestInterceptorScopedVector request_interceptors) { 342 content::URLRequestInterceptorScopedVector request_interceptors) {
338 // This function cannot actually create the request context because 343 // This function cannot actually create the request context because
339 // there is a reentrant dependency on GetResourceContext() via 344 // there is a reentrant dependency on GetResourceContext() via
340 // content::StoragePartitionImplMap::Create(). This is not fixable 345 // content::StoragePartitionImplMap::Create(). This is not fixable
341 // until http://crbug.com/159193. Until then, assert that the context 346 // until http://crbug.com/159193. Until then, assert that the context
342 // has already been allocated and just handle setting the protocol_handlers. 347 // has already been allocated and just handle setting the protocol_handlers.
343 DCHECK(url_request_context_getter_.get()); 348 DCHECK(url_request_context_getter_.get());
344 url_request_context_getter_->SetHandlersAndInterceptors( 349 url_request_context_getter_->SetHandlersAndInterceptors(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 406
402 void AwBrowserContext::RebuildTable( 407 void AwBrowserContext::RebuildTable(
403 const scoped_refptr<URLEnumerator>& enumerator) { 408 const scoped_refptr<URLEnumerator>& enumerator) {
404 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 409 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
405 // can change in the lifetime of this WebView and may not yet be set here. 410 // can change in the lifetime of this WebView and may not yet be set here.
406 // Therefore this initialization path is not used. 411 // Therefore this initialization path is not used.
407 enumerator->OnComplete(true); 412 enumerator->OnComplete(true);
408 } 413 }
409 414
410 } // namespace android_webview 415 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698