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

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: Missed AwContents somehow 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 e22d08a9cf7bcfa9d3b21c590ff2a3340d06e3b9..dc00d28d38567ee786d58c4dea62de2727cd785a 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
@@ -1229,9 +1229,21 @@ public class ContentViewCore
/**
* Reload the current page.
*/
- public void reload() {
+ public void reload(boolean checkForRepost) {
mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
- if (mNativeContentViewCore != 0) nativeReload(mNativeContentViewCore);
+ if (mNativeContentViewCore != 0) {
+ nativeReload(mNativeContentViewCore, checkForRepost);
+ }
+ }
+
+ /**
+ * Reload the current page, ignoring the contents of the cache.
+ */
+ public void reloadIgnoringCache(boolean checkForRepost) {
+ mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
+ if (mNativeContentViewCore != 0) {
+ nativeReloadIgnoringCache(mNativeContentViewCore, checkForRepost);
+ }
}
/**
@@ -3305,7 +3317,9 @@ public class ContentViewCore
private native void nativeStopLoading(int nativeContentViewCoreImpl);
- private native void nativeReload(int nativeContentViewCoreImpl);
+ private native void nativeReload(int nativeContentViewCoreImpl, boolean checkForRepost);
+ private native void nativeReloadIgnoringCache(
+ int nativeContentViewCoreImpl, boolean checkForRepost);
private native void nativeCancelPendingReload(int nativeContentViewCoreImpl);

Powered by Google App Engine
This is Rietveld 408576698