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

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

Issue 1163303003: PlzNavigate: Create the speculative renderer earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 1d0188516c689326f5f1f6ab0ba62ce80ab90499..519936de9e278ee1a62148e5fa4f13d75a36354a 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -347,6 +347,11 @@ class CONTENT_EXPORT RenderFrameHostImpl
// PlzNavigate: this call happens on all browser-initiated navigations.
void DispatchBeforeUnload(bool for_navigation);
+ // Returns true if a call to DispatchBeforeUnload will actually send the
+ // BeforeUnload IPC. This is the case if the current renderer is live and this
+ // frame is the main frame.
+ bool ShouldDispatchBeforeUnload();
+
// Set the frame's opener to null in the renderer process in response to an
// action in another renderer process.
void DisownOpener();

Powered by Google App Engine
This is Rietveld 408576698