OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ |
6 #define COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ | 6 #define COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/task/cancelable_task_tracker.h" | 14 #include "base/task/cancelable_task_tracker.h" |
15 #include "base/threading/sequenced_worker_pool.h" | |
16 #include "components/sessions/core/sessions_export.h" | 15 #include "components/sessions/core/sessions_export.h" |
17 #include "url/gurl.h" | 16 #include "url/gurl.h" |
18 | 17 |
| 18 |
19 namespace sessions { | 19 namespace sessions { |
20 class BaseSessionServiceDelegate; | 20 class BaseSessionServiceDelegate; |
21 class SessionCommand; | 21 class SessionCommand; |
22 class SessionBackend; | 22 class SessionBackend; |
23 | 23 |
24 // BaseSessionService is the super class of both tab restore service and | 24 // BaseSessionService is the super class of both tab restore service and |
25 // session service. It contains commonality needed by both, in particular | 25 // session service. It contains commonality needed by both, in particular |
26 // it manages a set of SessionCommands that are periodically sent to a | 26 // it manages a set of SessionCommands that are periodically sent to a |
27 // SessionBackend. | 27 // SessionBackend. |
28 class SESSIONS_EXPORT BaseSessionService { | 28 class SESSIONS_EXPORT BaseSessionService { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Used to invoke Save. | 128 // Used to invoke Save. |
129 base::WeakPtrFactory<BaseSessionService> weak_factory_; | 129 base::WeakPtrFactory<BaseSessionService> weak_factory_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); | 131 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace sessions | 134 } // namespace sessions |
135 | 135 |
136 #endif // COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ | 136 #endif // COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_H_ |
OLD | NEW |