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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/task/cancelable_task_tracker.h" | 15 #include "base/task/cancelable_task_tracker.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/defaults.h" | 17 #include "chrome/browser/defaults.h" |
18 #include "chrome/browser/sessions/session_common_utils.h" | 18 #include "chrome/browser/sessions/session_common_utils.h" |
19 #include "chrome/browser/sessions/session_service_utils.h" | 19 #include "chrome/browser/sessions/session_service_utils.h" |
20 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
21 #include "chrome/browser/ui/browser_finder.h" | 21 #include "chrome/browser/ui/browser_finder.h" |
22 #include "chrome/browser/ui/browser_list_observer.h" | 22 #include "chrome/browser/ui/browser_list_observer.h" |
23 #include "components/keyed_service/core/keyed_service.h" | 23 #include "components/keyed_service/core/keyed_service.h" |
24 #include "components/sessions/base_session_service_delegate.h" | 24 #include "components/sessions/core/base_session_service_delegate.h" |
| 25 #include "components/sessions/core/session_service_commands.h" |
25 #include "components/sessions/core/tab_restore_service_client.h" | 26 #include "components/sessions/core/tab_restore_service_client.h" |
26 #include "components/sessions/session_service_commands.h" | |
27 #include "content/public/browser/notification_observer.h" | 27 #include "content/public/browser/notification_observer.h" |
28 #include "content/public/browser/notification_registrar.h" | 28 #include "content/public/browser/notification_registrar.h" |
29 #include "ui/base/ui_base_types.h" | 29 #include "ui/base/ui_base_types.h" |
30 | 30 |
31 class Profile; | 31 class Profile; |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 class NavigationEntry; | 34 class NavigationEntry; |
35 class WebContents; | 35 class WebContents; |
36 } // namespace content | 36 } // namespace content |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // For browser_tests, since we want to simulate the browser shutting down | 399 // For browser_tests, since we want to simulate the browser shutting down |
400 // without quitting. | 400 // without quitting. |
401 bool force_browser_not_alive_with_no_windows_; | 401 bool force_browser_not_alive_with_no_windows_; |
402 | 402 |
403 base::WeakPtrFactory<SessionService> weak_factory_; | 403 base::WeakPtrFactory<SessionService> weak_factory_; |
404 | 404 |
405 DISALLOW_COPY_AND_ASSIGN(SessionService); | 405 DISALLOW_COPY_AND_ASSIGN(SessionService); |
406 }; | 406 }; |
407 | 407 |
408 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 408 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |