Index: chrome/browser/ui/browser_list.h |
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h |
index 705e423d97708612cc9059cef1158f78ee55769e..eed7858e61dba3791d38f50c0727b385dab33d16 100644 |
--- a/chrome/browser/ui/browser_list.h |
+++ b/chrome/browser/ui/browser_list.h |
@@ -57,6 +57,10 @@ class BrowserList { |
return last_active_browsers_.rend(); |
} |
+ size_t currently_closing_browsers_count() const { |
+ return currently_closing_browsers_.size(); |
+ } |
+ |
static BrowserList* GetInstance(); |
// Adds or removes |browser| from the list it is associated with. The browser |
@@ -82,6 +86,12 @@ class BrowserList { |
// Notifies the observers when the current active browser becomes not active. |
static void NotifyBrowserNoLongerActive(Browser* browser); |
+ // Notifies the observers when browser close was started. |
+ static void NotifyBrowserCloseStarted(Browser* browser); |
+ |
+ // Notifies the observers when browser window close is cancelled. |
+ static void NotifyBrowserCloseCancelled(Browser* browser); |
+ |
// Closes all browsers for |profile| across all desktops. |
// TODO(mlerman): Move the Profile Deletion flow to use the overloaded |
// version of this method with a callback, then remove this method. |
@@ -148,6 +158,8 @@ class BrowserList { |
// A vector of the browsers in this list that have been activated, in the |
// reverse order in which they were last activated. |
BrowserVector last_active_browsers_; |
+ // A vector of the browsers that are currently in the closing state. |
+ BrowserVector currently_closing_browsers_; |
// A list of observers which will be notified of every browser addition and |
// removal across all BrowserLists. |