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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.h

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/platform/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index 5ceefdf330521fd1ee4a999af409dbbdb08e3031..ecb8f05b3e7b14f0dee39e3e2313d5470a132a3e 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -231,6 +231,9 @@ public:
bool checkForBrowserSideNavigation() const { return m_checkForBrowserSideNavigation; }
void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNavigation = check; }
+ bool bypassBeforeUnload() const { return m_bypassBeforeUnload; }
+ void setBypassBeforeUnload(bool bypass) { m_bypassBeforeUnload = bypass; }
+
double uiStartTime() const { return m_uiStartTime; }
void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; }
@@ -281,6 +284,7 @@ private:
ReferrerPolicy m_referrerPolicy;
bool m_didSetHTTPReferrer;
bool m_checkForBrowserSideNavigation;
+ bool m_bypassBeforeUnload;
double m_uiStartTime;
bool m_isExternalRequest;
InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
@@ -328,6 +332,7 @@ public:
ReferrerPolicy m_referrerPolicy;
bool m_didSetHTTPReferrer;
bool m_checkForBrowserSideNavigation;
+ bool m_bypassBeforeUnload;
double m_uiStartTime;
bool m_isExternalRequest;
InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;

Powered by Google App Engine
This is Rietveld 408576698