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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

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
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index fbf56542c1609eae1051a8926899c51de2ef4d93..fd6f2b492f1ba6ecb48cc29f3c98dd3b8b8ffec7 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -22,6 +22,7 @@
#include "content/common/page_state_serialization.h"
#include "content/common/resource_request_body_impl.h"
#include "content/common/site_isolation_policy.h"
+#include "content/public/browser/reload_type.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/url_constants.h"
@@ -259,7 +260,8 @@ NavigationEntryImpl::NavigationEntryImpl(
should_replace_entry_(false),
should_clear_history_list_(false),
can_load_local_resources_(false),
- frame_tree_node_id_(-1) {
+ frame_tree_node_id_(-1),
+ reload_type_(ReloadType::NONE) {
#if defined(OS_ANDROID)
has_user_gesture_ = false;
#endif
@@ -639,6 +641,7 @@ std::unique_ptr<NavigationEntryImpl> NavigationEntryImpl::CloneAndReplace(
#if defined(OS_ANDROID)
copy->has_user_gesture_ = has_user_gesture_;
#endif
+ // ResetForCommit: reload_type_
copy->extra_data_ = extra_data_;
return copy;
@@ -753,6 +756,7 @@ void NavigationEntryImpl::ResetForCommit(FrameNavigationEntry* frame_entry) {
set_should_clear_history_list(false);
set_frame_tree_node_id(-1);
+ set_reload_type(ReloadType::NONE);
if (frame_entry)
frame_entry->set_source_site_instance(nullptr);
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698