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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 49353008: Add way to reload the page, ignoring the cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take 4 Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 739a66ab7a2fb0074f31d921dd8aa60857e11c7b..36c20b20d90f2c0f29c98f561d039311c5c4c5d7 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -1228,10 +1228,11 @@ public class ContentViewCore
/**
* Reload the current page.
+ * @param ignoreCache Ignore the contents of the cache and reload everything from the network.
*/
- public void reload() {
+ public void reload(boolean ignoreCache) {
joth 2013/11/06 19:57:28 There were plans afoot to make ContentViewCore be
gone 2013/11/06 21:24:35 I think that's how an older patch set was? Ted as
Ted C 2013/11/06 21:38:14 WebContents doesn't actually export a reload funct
mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
- if (mNativeContentViewCore != 0) nativeReload(mNativeContentViewCore);
+ if (mNativeContentViewCore != 0) nativeReload(mNativeContentViewCore, ignoreCache);
}
/**
@@ -3305,7 +3306,7 @@ public class ContentViewCore
private native void nativeStopLoading(int nativeContentViewCoreImpl);
- private native void nativeReload(int nativeContentViewCoreImpl);
+ private native void nativeReload(int nativeContentViewCoreImpl, boolean ignoreCache);
private native void nativeCancelPendingReload(int nativeContentViewCoreImpl);

Powered by Google App Engine
This is Rietveld 408576698