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

Unified Diff: content/public/browser/web_contents.h

Issue 11016023: Quickly close tabs/window with long-running unload handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 7 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 3e97d6eb5ebe79770cb5e99599408d0910bebd9a..f2146f574aa6772a39ef544900567f31ffc21d4d 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -371,6 +371,18 @@ class WebContents : public PageNavigator,
// times, subsequent calls are ignored.
virtual void OnCloseStarted() = 0;
+ // Notification that tab closing was cancelled. This can happen when a user
+ // cancels a window close via another tab's beforeunload dialog.
+ virtual void OnCloseCanceled() = 0;
+
+ // Set the time during close when unload is started. Normally, this is set
+ // after the beforeunload dialog. However, for a window close, it is set
+ // after all the beforeunload dialogs have finished.
+ virtual void OnUnloadStarted() = 0;
+
+ // Set the time during close when the tab is no longer visible.
+ virtual void OnUnloadDetachedStarted() = 0;
+
// A render view-originated drag has ended. Informs the render view host and
// WebContentsDelegate.
virtual void SystemDragEnded() = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698