summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 02:00:53 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 02:00:53 +0000
commit7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10 (patch)
tree1070bdfc922ca45660dc6bf56b26fc19dfeba7d6 /chrome/browser/browser_list.h
parentf47c61458a0c89c9ec57b3bb3a51d4ef46528ca6 (diff)
downloadchromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.zip
chromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.tar.gz
chromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.tar.bz2
Last couple of bits of new-frame related cleanup:
- Remove frame_util.cc, moving functions to BrowserList (endsession) and BrowserView (GetBrowserWindowForHWND) - Tidy up interface for TabIconView model. The model now sources only the information it needs (loading state and favicon). - Replace BrowserType class with an enum on Browser. http://crbug.com/2320 http://crbug.com/3363 Review URL: http://codereview.chromium.org/10786 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index f385777..ef9a16f 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -62,7 +62,7 @@ class BrowserList {
// Find an existing browser window with the provided type. If the last active
// has the right type, it is returned. Otherwise, the next available browser
// is returned. Returns NULL if no such browser currently exists.
- static Browser* FindBrowserWithType(Profile* p, BrowserType::Type t);
+ static Browser* FindBrowserWithType(Profile* p, Browser::Type t);
// Closes all browsers. If use_post is true the windows are closed by way of
// posting a WM_CLOSE message, otherwise the windows are closed directly. In
@@ -70,6 +70,9 @@ class BrowserList {
// the session. use_post should only be false when invoked from end session.
static void CloseAllBrowsers(bool use_post);
+ // Begins shutdown of the application when the Windows session is ending.
+ static void WindowsSessionEnding();
+
// Returns true if there is at least one Browser with the specified profile.
static bool HasBrowserWithProfile(Profile* profile);
@@ -132,7 +135,7 @@ class BrowserList {
// Return the number of browsers with the following profile and type which are
// currently open.
- static size_t GetBrowserCountForType(Profile* p, BrowserType::Type type);
+ static size_t GetBrowserCountForType(Profile* p, Browser::Type type);
// Returns true if at least one off the record session is active.
static bool IsOffTheRecordSessionActive();