am 7450a32b: Merge "Clear the files we copy over to the temp cache" into honeycomb
* commit '7450a32bab8945738589d7b323953cdc80de111f': Clear the files we copy over to the temp cache
This commit is contained in:
@@ -244,6 +244,9 @@ public final class CacheManager {
|
|||||||
* obtained from {@link android.webkit.CacheManager.CacheResult#getLocalPath}, this
|
* obtained from {@link android.webkit.CacheManager.CacheResult#getLocalPath}, this
|
||||||
* identifies the cache file.
|
* identifies the cache file.
|
||||||
*
|
*
|
||||||
|
* Cache files are not guaranteed to be in this directory before
|
||||||
|
* CacheManager#getCacheFile(String, Map<String, String>) is called.
|
||||||
|
*
|
||||||
* @return File The base directory of the cache.
|
* @return File The base directory of the cache.
|
||||||
*
|
*
|
||||||
* @deprecated Access to the HTTP cache will be removed in a future release.
|
* @deprecated Access to the HTTP cache will be removed in a future release.
|
||||||
@@ -611,8 +614,9 @@ public final class CacheManager {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// delete rows in the cache database
|
// delete rows in the cache database
|
||||||
WebViewWorker.getHandler().sendEmptyMessage(
|
if (!JniUtil.useChromiumHttpStack())
|
||||||
WebViewWorker.MSG_CLEAR_CACHE);
|
WebViewWorker.getHandler().sendEmptyMessage(WebViewWorker.MSG_CLEAR_CACHE);
|
||||||
|
|
||||||
// delete cache files in a separate thread to not block UI.
|
// delete cache files in a separate thread to not block UI.
|
||||||
final Runnable clearCache = new Runnable() {
|
final Runnable clearCache = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|||||||
@@ -1770,7 +1770,7 @@ final class WebViewCore {
|
|||||||
|
|
||||||
private void clearCache(boolean includeDiskFiles) {
|
private void clearCache(boolean includeDiskFiles) {
|
||||||
mBrowserFrame.clearCache();
|
mBrowserFrame.clearCache();
|
||||||
if (includeDiskFiles && !JniUtil.useChromiumHttpStack()) {
|
if (includeDiskFiles) {
|
||||||
CacheManager.removeAllCacheFiles();
|
CacheManager.removeAllCacheFiles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user