| 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..c61cffa78cb2844ccf8f9c74335f610e87118bdf 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,10 @@ 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. This may be called
|
| + // more than once for a particular browser.
|
| + static void NotifyBrowserCloseStarted(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 +156,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.
|
|
|