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

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

Issue 11187032: Handle resubmission of HTTP Posts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix the dependency Created 8 years, 2 months 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 be5f845e5dd450b807dea9528f2e262cbe0789d4..824bcddd83d55a6680f6b095142ee825b162b05e 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -831,10 +831,18 @@ void ContentViewCoreImpl::StopLoading(JNIEnv* env, jobject obj) {
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).
- web_contents_->GetController().Reload(false);
+ web_contents_->GetController().Reload(true);
tab_crashed_ = false;
}
+void ContentViewCoreImpl::CancelPendingReload(JNIEnv* env, jobject obj) {
+ web_contents_->GetController().CancelPendingReload();
+}
+
+void ContentViewCoreImpl::ContinuePendingReload(JNIEnv* env, jobject obj) {
+ web_contents_->GetController().ContinuePendingReload();
+}
+
void ContentViewCoreImpl::ClearHistory(JNIEnv* env, jobject obj) {
web_contents_->GetController().PruneAllButActive();
}

Powered by Google App Engine
This is Rietveld 408576698