| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 virtual ~SessionService(); | 156 virtual ~SessionService(); |
| 157 | 157 |
| 158 // These types mirror Browser::Type, but are re-defined here because these | 158 // These types mirror Browser::Type, but are re-defined here because these |
| 159 // specific enumeration _values_ are written into the session database and | 159 // specific enumeration _values_ are written into the session database and |
| 160 // are needed to maintain forward compatibility. | 160 // are needed to maintain forward compatibility. |
| 161 enum WindowType { | 161 enum WindowType { |
| 162 TYPE_NORMAL = 0, | 162 TYPE_NORMAL = 0, |
| 163 TYPE_POPUP = 1, | 163 TYPE_POPUP = 1, |
| 164 TYPE_APP = 2, | 164 TYPE_APP = 2, |
| 165 TYPE_APP_POPUP = TYPE_APP + TYPE_POPUP | 165 TYPE_APP_POPUP = TYPE_APP + TYPE_POPUP, |
| 166 TYPE_DEVTOOLS = TYPE_APP + 4 |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 void Init(); | 169 void Init(); |
| 169 | 170 |
| 170 virtual void Observe(NotificationType type, | 171 virtual void Observe(NotificationType type, |
| 171 const NotificationSource& source, | 172 const NotificationSource& source, |
| 172 const NotificationDetails& details); | 173 const NotificationDetails& details); |
| 173 | 174 |
| 174 // Methods to create the various commands. It is up to the caller to delete | 175 // Methods to create the various commands. It is up to the caller to delete |
| 175 // the returned the SessionCommand* object. | 176 // the returned the SessionCommand* object. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // If true and a new tabbed browser is created and there are no opened tabbed | 386 // If true and a new tabbed browser is created and there are no opened tabbed |
| 386 // browser (has_open_trackable_browsers_ is false), then the current session | 387 // browser (has_open_trackable_browsers_ is false), then the current session |
| 387 // is made the previous session. See description above class for details on | 388 // is made the previous session. See description above class for details on |
| 388 // current/previou session. | 389 // current/previou session. |
| 389 bool move_on_new_browser_; | 390 bool move_on_new_browser_; |
| 390 | 391 |
| 391 DISALLOW_COPY_AND_ASSIGN(SessionService); | 392 DISALLOW_COPY_AND_ASSIGN(SessionService); |
| 392 }; | 393 }; |
| 393 | 394 |
| 394 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 395 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| OLD | NEW |