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

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: Make UnloadDetachedHandler a delegate for all detached tabs. Created 8 years, 2 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/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 78a498552de5e9cebdc9a0e9d46c0e19d49d9f0e..2784882b42c10e4b6851d94128c05783a4652219 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -310,6 +310,9 @@ class WebContents : public PageNavigator,
// times, subsequent calls are ignored.
virtual void OnCloseStarted() = 0;
+ // Set the time during close when the tab is no longer visible.
+ virtual void OnUnloadDetachedStarted() = 0;
+
// Returns true if underlying WebContentsView should accept drag-n-drop.
virtual bool ShouldAcceptDragAndDrop() const = 0;
« chrome/browser/ui/unload_controller.cc ('K') | « 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