diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 02:00:53 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 02:00:53 +0000 |
commit | 7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10 (patch) | |
tree | 1070bdfc922ca45660dc6bf56b26fc19dfeba7d6 /chrome/browser/session_service.h | |
parent | f47c61458a0c89c9ec57b3bb3a51d4ef46528ca6 (diff) | |
download | chromium_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/session_service.h')
-rw-r--r-- | chrome/browser/session_service.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/session_service.h b/chrome/browser/session_service.h index 68b6c74b..2ff8608 100644 --- a/chrome/browser/session_service.h +++ b/chrome/browser/session_service.h @@ -11,7 +11,7 @@ #include "base/gfx/rect.h" #include "base/task.h" #include "base/time.h" -#include "chrome/browser/browser_type.h" +#include "chrome/browser/browser.h" #include "chrome/browser/cancelable_request.h" #include "chrome/browser/session_id.h" #include "chrome/common/notification_service.h" @@ -122,7 +122,7 @@ struct SessionTab { struct SessionWindow { SessionWindow() : selected_tab_index(-1), - type(BrowserType::TABBED_BROWSER), + type(Browser::TYPE_NORMAL), is_constrained(true), is_maximized(false) {} ~SessionWindow() { STLDeleteElements(&tabs); } @@ -143,8 +143,8 @@ struct SessionWindow { int selected_tab_index; // Type of the browser. Currently we only store browsers of type - // TABBED_BROWSER and BROWSER. - BrowserType::Type type; + // TYPE_NORMAL and TYPE_POPUP. + Browser::Type type; // If true, the window is constrained. // @@ -239,7 +239,7 @@ class SessionService : public CancelableRequestProvider, // Sets the type of window. In order for the contents of a window to be // tracked SetWindowType must be invoked with a type we track // (should_track_changes_for_browser_type returns true). - void SetWindowType(const SessionID& window_id, BrowserType::Type type); + void SetWindowType(const SessionID& window_id, Browser::Type type); // Invoked when the NavigationController has removed entries from the back of // the list. |count| gives the number of entries in the navigation controller. @@ -386,7 +386,7 @@ class SessionService : public CancelableRequestProvider, int index); SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, - BrowserType::Type type); + Browser::Type type); // Callback form the backend for getting the commands from the previous // or save file. Converts the commands in SessionWindows and notifies @@ -520,8 +520,8 @@ class SessionService : public CancelableRequestProvider, bool SessionService::ShouldTrackEntry(const NavigationEntry& entry); // Returns true if we track changes to the specified browser type. - static bool should_track_changes_for_browser_type(BrowserType::Type type) { - return type == BrowserType::TABBED_BROWSER; + static bool should_track_changes_for_browser_type(Browser::Type type) { + return type == Browser::TYPE_NORMAL; } // The profile used to determine where to save, as well as what tabs |