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

Side by Side Diff: android_webview/browser/aw_contents.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_contents.h" 5 #include "android_webview/browser/aw_contents.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <utility> 8 #include <utility>
9 9
10 #include "android_webview/browser/aw_autofill_client.h" 10 #include "android_webview/browser/aw_autofill_client.h"
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 DCHECK_CURRENTLY_ON(BrowserThread::UI); 705 DCHECK_CURRENTLY_ON(BrowserThread::UI);
706 GetFindHelper()->ClearMatches(); 706 GetFindHelper()->ClearMatches();
707 } 707 }
708 708
709 void AwContents::ClearCache(JNIEnv* env, 709 void AwContents::ClearCache(JNIEnv* env,
710 const JavaParamRef<jobject>& obj, 710 const JavaParamRef<jobject>& obj,
711 jboolean include_disk_files) { 711 jboolean include_disk_files) {
712 DCHECK_CURRENTLY_ON(BrowserThread::UI); 712 DCHECK_CURRENTLY_ON(BrowserThread::UI);
713 render_view_host_ext_->ClearCache(); 713 render_view_host_ext_->ClearCache();
714 714
715 // TODO(crbug.com/668114): This functionality is a subset of what
716 // BrowsingDataRemover would do for REMOVE_CACHE mask. Consider calling that
boliu 2017/05/19 17:31:31 so what does does REMOVE_CACHE remove?
msramek 2017/05/19 17:35:29 It calls to StoragePartitionHttpCacheDataRemover,
boliu 2017/05/19 17:38:36 Ahh, different protocols. Yes, this should clear t
msramek 2017/05/19 18:14:59 Actually, I have one clarifying question :) Browsi
717 // instead.
715 if (include_disk_files) 718 if (include_disk_files)
716 RemoveHttpDiskCache(web_contents_->GetRenderProcessHost()); 719 RemoveHttpDiskCache(web_contents_->GetRenderProcessHost());
717 } 720 }
718 721
719 void AwContents::KillRenderProcess(JNIEnv* env, 722 void AwContents::KillRenderProcess(JNIEnv* env,
720 const JavaParamRef<jobject>& obj) { 723 const JavaParamRef<jobject>& obj) {
721 DCHECK_CURRENTLY_ON(BrowserThread::UI); 724 DCHECK_CURRENTLY_ON(BrowserThread::UI);
722 render_view_host_ext_->KillRenderProcess(); 725 render_view_host_ext_->KillRenderProcess();
723 } 726 }
724 727
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 1448
1446 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id, 1449 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id,
1447 crashed); 1450 crashed);
1448 } 1451 }
1449 1452
1450 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { 1453 void AwContents::RenderProcessReady(content::RenderProcessHost* host) {
1451 UpdateRendererPriority(); 1454 UpdateRendererPriority();
1452 } 1455 }
1453 1456
1454 } // namespace android_webview 1457 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698