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_BASE_SESSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ |
6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/task/cancelable_task_tracker.h" | 16 #include "base/task/cancelable_task_tracker.h" |
17 #include "base/threading/sequenced_worker_pool.h" | 17 #include "base/threading/sequenced_worker_pool.h" |
18 #include "chrome/browser/sessions/session_id.h" | 18 #include "components/sessions/session_id.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 class SessionBackend; | 22 class SessionBackend; |
23 class SessionCommand; | 23 class SessionCommand; |
24 | 24 |
25 namespace sessions { | 25 namespace sessions { |
26 class SerializedNavigationEntry; | 26 class SerializedNavigationEntry; |
27 } | 27 } |
28 | 28 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // The number of commands sent to the backend before doing a reset. | 184 // The number of commands sent to the backend before doing a reset. |
185 int commands_since_reset_; | 185 int commands_since_reset_; |
186 | 186 |
187 // A token to make sure that all tasks will be serialized. | 187 // A token to make sure that all tasks will be serialized. |
188 base::SequencedWorkerPool::SequenceToken sequence_token_; | 188 base::SequencedWorkerPool::SequenceToken sequence_token_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); | 190 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); |
191 }; | 191 }; |
192 | 192 |
193 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ | 193 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ |
OLD | NEW |