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

Unified Diff: chrome/browser/tab_contents/navigation_controller.h

Issue 969003: Make repost form warning tab-modal on Mac. (Closed)
Patch Set: Remove an unnecessary line. Created 10 years, 9 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
« no previous file with comments | « chrome/browser/repost_form_warning_uitest.cc ('k') | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/navigation_controller.h
diff --git a/chrome/browser/tab_contents/navigation_controller.h b/chrome/browser/tab_contents/navigation_controller.h
index 810f8b93d77b91255559916307423ebf12907861..ea8645d1288397c337b1556a17a39a0612c5e4d2 100644
--- a/chrome/browser/tab_contents/navigation_controller.h
+++ b/chrome/browser/tab_contents/navigation_controller.h
@@ -400,6 +400,11 @@ class NavigationController {
}
static size_t max_entry_count() { return max_entry_count_; }
+ // Cancels a repost that brought up a warning.
+ void CancelPendingReload();
+ // Continues a repost that brought up a warning.
+ void ContinuePendingReload();
+
private:
class RestoreHelper;
friend class RestoreHelper;
@@ -557,6 +562,10 @@ class NavigationController {
// The maximum number of entries that a navigation controller can store.
static size_t max_entry_count_;
+ // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE),
+ // NO_RELOAD otherwise.
+ ReloadType pending_reload_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationController);
};
« no previous file with comments | « chrome/browser/repost_form_warning_uitest.cc ('k') | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698