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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/TabBase.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: chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
index ea58f094cbbd653757d641b14ee0410aedb7d321..4cdcfd39f485c285c11b155a9f0c655ce73b0413 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
@@ -5,14 +5,12 @@
package org.chromium.chrome.browser;
import android.app.Activity;
-import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import org.chromium.base.CalledByNative;
import org.chromium.base.ObserverList;
-import org.chromium.chrome.browser.RepostFormWarningDialog;
import org.chromium.chrome.browser.infobar.AutoLoginProcessor;
import org.chromium.chrome.browser.infobar.InfoBarContainer;
import org.chromium.chrome.browser.profiles.Profile;
@@ -327,10 +325,19 @@ public abstract class TabBase implements NavigationClient {
/**
* Reloads the current page content if it is a {@link ContentView}.
+ * TODO(dfalcantara): Get rid of this function.
*/
public void reload() {
+ reload(false);
+ }
+
+ /**
+ * Reloads the current page content if it is a {@link ContentView}.
+ * @param ignoreCache Ignore the contents of the cache and reload directly from the network.
+ */
+ public void reload(boolean ignoreCache) {
// TODO(dtrainor): Should we try to rebuild the ContentView if it's frozen?
- if (mContentViewCore != null) mContentViewCore.reload();
+ if (mContentViewCore != null) mContentViewCore.reload(ignoreCache);
}
/** Stop the current navigation. */

Powered by Google App Engine
This is Rietveld 408576698