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

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

Issue 2892953002: Remove the ClearCookies and ClearCache methods from ContentBrowserClient (Closed)
Patch Set: Rebase. 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_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 431 }
432 432
433 void AwContentBrowserClient::ResourceDispatcherHostCreated() { 433 void AwContentBrowserClient::ResourceDispatcherHostCreated() {
434 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated(); 434 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated();
435 } 435 }
436 436
437 net::NetLog* AwContentBrowserClient::GetNetLog() { 437 net::NetLog* AwContentBrowserClient::GetNetLog() {
438 return browser_context_->GetAwURLRequestContext()->GetNetLog(); 438 return browser_context_->GetAwURLRequestContext()->GetNetLog();
439 } 439 }
440 440
441 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) {
442 RemoveHttpDiskCache(rfh->GetProcess());
443 }
444
445 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) {
446 // TODO(boliu): Implement.
447 NOTIMPLEMENTED();
448 }
449
450 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() { 441 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() {
451 // Android WebView does not currently use the Chromium downloads system. 442 // Android WebView does not currently use the Chromium downloads system.
452 // Download requests are cancelled immedately when recognized; see 443 // Download requests are cancelled immedately when recognized; see
453 // AwResourceDispatcherHost::CreateResourceHandlerForDownload. However the 444 // AwResourceDispatcherHost::CreateResourceHandlerForDownload. However the
454 // download system still tries to start up and calls this before recognizing 445 // download system still tries to start up and calls this before recognizing
455 // the request has been cancelled. 446 // the request has been cancelled.
456 return base::FilePath(); 447 return base::FilePath();
457 } 448 }
458 449
459 std::string AwContentBrowserClient::GetDefaultDownloadName() { 450 std::string AwContentBrowserClient::GetDefaultDownloadName() {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 render_frame_host)); 549 render_frame_host));
559 550
560 // Although WebView does not support password manager feature, renderer code 551 // Although WebView does not support password manager feature, renderer code
561 // could still request this interface, so we register a dummy binder which 552 // could still request this interface, so we register a dummy binder which
562 // just drops the incoming request, to avoid the 'Failed to locate a binder 553 // just drops the incoming request, to avoid the 'Failed to locate a binder
563 // for interface' error log.. 554 // for interface' error log..
564 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); 555 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver));
565 } 556 }
566 557
567 } // namespace android_webview 558 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698