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

Unified Diff: content/browser/frame_host/navigation_controller_impl.h

Issue 2174293002: NonValidatingReload: Monitor reload operations in NavigationControllerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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/frame_host/navigation_controller_impl.h
diff --git a/content/browser/frame_host/navigation_controller_impl.h b/content/browser/frame_host/navigation_controller_impl.h
index 20bb0f6528faf151eef1d3742374bedcf9f471f1..0b5da1349bcadefd5aaab03bcdd1b76360baa36f 100644
--- a/content/browser/frame_host/navigation_controller_impl.h
+++ b/content/browser/frame_host/navigation_controller_impl.h
@@ -450,6 +450,13 @@ class CONTENT_EXPORT NavigationControllerImpl
std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_;
+ // Used for tracking consecutive reload requests. If the last user-initiated
+ // navigation (either browser-initiated or renderer-initiated with a user
+ // gesture) was a reload, these hold the ReloadType and timestamp. Otherwise
+ // these are ReloadType::NONE and a null timestamp, respectively.
+ ReloadType last_committed_reload_type_;
+ base::Time last_committed_reload_time_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698