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

Unified Diff: third_party/WebKit/public/platform/WebURLRequest.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/public/platform/WebURLRequest.h
diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
index 09b58183fd9e0717ee776f2f549b0cd958e33800..0f1f38a6ab05205db485907910852b04ad686414 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -297,6 +297,12 @@ public:
BLINK_PLATFORM_EXPORT bool checkForBrowserSideNavigation() const;
BLINK_PLATFORM_EXPORT void setCheckForBrowserSideNavigation(bool);
+ // PlzNavigate: whether the loader should bypass executing the BeforeUnload
+ // event when loading this request. This is set to true when committing
+ // urls that have already made a network request, as the BeforeUnload event
+ // has already run before the network request was made.
+ BLINK_PLATFORM_EXPORT void setBypassBeforeUnload(bool);
+
// This is used to report navigation metrics starting from the UI action
// that triggered the navigation (which can be different from the navigation
// start time used in the Navigation Timing API).

Powered by Google App Engine
This is Rietveld 408576698