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

Unified Diff: content/browser/android/content_view_core_impl.cc

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/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 8f1179a3caf2c2d545e552e07a6763c2ef17e9c8..076f639f4b321680154d79b27effd3ba42024dd9 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1200,13 +1200,19 @@ void ContentViewCoreImpl::StopLoading(JNIEnv* env, jobject obj) {
web_contents_->Stop();
}
-void ContentViewCoreImpl::Reload(JNIEnv* env, jobject obj) {
- // Set check_for_repost parameter to false as we have no repost confirmation
- // dialog ("confirm form resubmission" screen will still appear, however).
+void ContentViewCoreImpl::Reload(JNIEnv* env,
+ jobject obj,
+ jboolean check_for_repost) {
if (web_contents_->GetController().NeedsReload())
web_contents_->GetController().LoadIfNecessary();
else
- web_contents_->GetController().Reload(true);
+ web_contents_->GetController().Reload(check_for_repost);
+ UpdateTabCrashedFlag();
+}
+
+void ContentViewCoreImpl::ReloadIgnoringCache(JNIEnv* env, jobject obj,
Ted C 2013/11/07 00:15:26 jobject obj should go on it's own line
+ jboolean check_for_repost) {
+ web_contents_->GetController().ReloadIgnoringCache(check_for_repost);
UpdateTabCrashedFlag();
}

Powered by Google App Engine
This is Rietveld 408576698