Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |