Chromium Code Reviews| 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 cce826fe6e816eaa66d277ac1703be1f44e5aeb7..a94c743d19ffba9cc7e6a818ae7fbd3519ff71f5 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.h |
| +++ b/content/browser/frame_host/render_frame_host_impl.h |
| @@ -397,9 +397,12 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
| // Runs the beforeunload handler for this frame. |for_navigation| indicates |
| // whether this call is for the current frame during a cross-process |
| - // navigation. False means we're closing the entire tab. |
| + // navigation. False means we're closing the entire tab. |is_reload| |
| + // indicates whether the navigation is a reload of the page or a different |
|
nasko
2016/05/09 21:56:04
nit: s/or a different kind of navigation/or not/
clamy
2016/05/10 01:58:09
Done.
|
| + // kind of navigation. If |for_navigation| is false, |is_reload| should be |
| + // false as well. |
| // PlzNavigate: this call happens on all browser-initiated navigations. |
| - void DispatchBeforeUnload(bool for_navigation); |
| + void DispatchBeforeUnload(bool for_navigation, bool is_reload); |
| // 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 |