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

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 160229: Merge 21531 - Fix a race condition where rapid back/forward clicks could clos... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 5 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: chrome/browser/renderer_host/render_view_host.h
===================================================================
--- chrome/browser/renderer_host/render_view_host.h (revision 21759)
+++ chrome/browser/renderer_host/render_view_host.h (working copy)
@@ -146,28 +146,25 @@
void SetNavigationsSuspended(bool suspend);
// Causes the renderer to invoke the onbeforeunload event handler. The
- // result will be returned via ViewMsg_ShouldClose.
+ // result will be returned via ViewMsg_ShouldClose. See also ClosePage which
+ // will fire the PageUnload event.
void FirePageBeforeUnload();
- // Close the page after the page has responded that it can be closed via
- // ViewMsg_ShouldClose. This is where the page itself is closed. The
- // unload handler is triggered here, which can block with a dialog, but cannot
- // cancel the close of the page.
- void FirePageUnload();
+ // Causes the renderer to close the current page, including running its
+ // onunload event handler. A ClosePage_ACK message will be sent to the
+ // ResourceDispatcherHost when it is finished.
+ //
+ // Please see ViewMsg_ClosePage in resource_messages_internal.h for a
+ // description of the parameters.
+ void ClosePage(bool for_cross_site_transition,
+ int new_render_process_host_id,
+ int new_request_id);
// Close the page ignoring whether it has unload events registers.
// This is called after the beforeunload and unload events have fired
// and the user has agreed to continue with closing the page.
- static void ClosePageIgnoringUnloadEvents(int render_process_host_id,
- int request_id);
+ void ClosePageIgnoringUnloadEvents();
- // Causes the renderer to close the current page, including running its
- // onunload event handler. A ClosePage_ACK message will be sent to the
- // ResourceDispatcherHost when it is finished. |new_render_process_host_id|
- // and |new_request_id| will help the ResourceDispatcherHost identify which
- // response is associated with this event.
- void ClosePage(int new_render_process_host_id, int new_request_id);
-
// Sets whether this RenderViewHost has an outstanding cross-site request,
// for which another renderer will need to run an onunload event handler.
// This is called before the first navigation event for this RenderViewHost,
Property changes on: chrome\browser\renderer_host\render_view_host.h
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/renderer_host/render_view_host.h:r21531
« no previous file with comments | « chrome/browser/renderer_host/render_process_host.h ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698