| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "chrome/browser/defaults.h" | 15 #include "chrome/browser/defaults.h" |
| 16 #include "chrome/browser/sessions/base_session_service.h" | 16 #include "chrome/browser/sessions/base_session_service.h" |
| 17 #include "chrome/browser/sessions/session_id.h" | 17 #include "chrome/browser/sessions/session_id.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/browser/ui/browser_list.h" | 19 #include "chrome/browser/ui/browser_list.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 #include "ui/base/ui_base_types.h" | 22 #include "ui/base/ui_base_types.h" |
| 23 | 23 |
| 24 class Profile; | 24 class Profile; |
| 25 class SessionCommand; | 25 class SessionCommand; |
| 26 class TabContentsWrapper; | 26 class TabContents; |
| 27 typedef TabContents TabContentsWrapper; |
| 27 struct SessionTab; | 28 struct SessionTab; |
| 28 struct SessionWindow; | 29 struct SessionWindow; |
| 29 | 30 |
| 30 namespace content { | 31 namespace content { |
| 31 class NavigationEntry; | 32 class NavigationEntry; |
| 32 } | 33 } |
| 33 | 34 |
| 34 // SessionService ------------------------------------------------------------ | 35 // SessionService ------------------------------------------------------------ |
| 35 | 36 |
| 36 // SessionService is responsible for maintaining the state of open windows | 37 // SessionService is responsible for maintaining the state of open windows |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 const base::TimeDelta save_delay_in_hrs_; | 471 const base::TimeDelta save_delay_in_hrs_; |
| 471 | 472 |
| 472 // For browser_tests, since we want to simulate the browser shutting down | 473 // For browser_tests, since we want to simulate the browser shutting down |
| 473 // without quitting. | 474 // without quitting. |
| 474 bool force_browser_not_alive_with_no_windows_; | 475 bool force_browser_not_alive_with_no_windows_; |
| 475 | 476 |
| 476 DISALLOW_COPY_AND_ASSIGN(SessionService); | 477 DISALLOW_COPY_AND_ASSIGN(SessionService); |
| 477 }; | 478 }; |
| 478 | 479 |
| 479 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 480 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| OLD | NEW |