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 COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "components/history/core/browser/history_types.h" | 17 #include "components/history/core/browser/history_types.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 class TestingProfile; | 20 class TestingProfile; |
21 | 21 |
22 namespace base { | |
23 class SequencedTaskRunner; | |
24 } | |
25 | |
26 namespace history { | 22 namespace history { |
27 | 23 |
28 class HistoryBackendClient; | 24 class HistoryBackendClient; |
29 class HistoryBackendNotifier; | 25 class HistoryBackendNotifier; |
30 class HistoryDatabase; | 26 class HistoryDatabase; |
31 class ThumbnailDatabase; | 27 class ThumbnailDatabase; |
32 | 28 |
33 // Encapsulates visit expiration criteria and type of visits to expire. | 29 // Encapsulates visit expiration criteria and type of visits to expire. |
34 class ExpiringVisitsReader { | 30 class ExpiringVisitsReader { |
35 public: | 31 public: |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Used to generate runnable methods to do timers on this class. They will be | 259 // Used to generate runnable methods to do timers on this class. They will be |
264 // automatically canceled when this class is deleted. | 260 // automatically canceled when this class is deleted. |
265 base::WeakPtrFactory<ExpireHistoryBackend> weak_factory_; | 261 base::WeakPtrFactory<ExpireHistoryBackend> weak_factory_; |
266 | 262 |
267 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); | 263 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); |
268 }; | 264 }; |
269 | 265 |
270 } // namespace history | 266 } // namespace history |
271 | 267 |
272 #endif // COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ | 268 #endif // COMPONENTS_HISTORY_CORE_BROWSER_EXPIRE_HISTORY_BACKEND_H_ |
OLD | NEW |