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_HISTORY_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/containers/mru_cache.h" | 13 #include "base/containers/mru_cache.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/memory_pressure_listener.h" | 16 #include "base/memory/memory_pressure_listener.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/single_thread_task_runner.h" |
18 #include "base/task/cancelable_task_tracker.h" | 19 #include "base/task/cancelable_task_tracker.h" |
19 #include "chrome/browser/history/expire_history_backend.h" | 20 #include "chrome/browser/history/expire_history_backend.h" |
20 #include "chrome/browser/history/history_database.h" | 21 #include "chrome/browser/history/history_database.h" |
21 #include "chrome/browser/history/history_marshaling.h" | |
22 #include "chrome/browser/history/history_types.h" | 22 #include "chrome/browser/history/history_types.h" |
23 #include "chrome/browser/history/thumbnail_database.h" | 23 #include "chrome/browser/history/thumbnail_database.h" |
24 #include "chrome/browser/history/visit_tracker.h" | 24 #include "chrome/browser/history/visit_tracker.h" |
25 #include "components/history/core/browser/keyword_id.h" | 25 #include "components/history/core/browser/keyword_id.h" |
| 26 #include "components/visitedlink/browser/visitedlink_delegate.h" |
26 #include "sql/init_status.h" | 27 #include "sql/init_status.h" |
27 | 28 |
28 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
29 #include "chrome/browser/history/android/android_history_types.h" | 30 #include "chrome/browser/history/android/android_history_types.h" |
30 #endif | 31 #endif |
31 | 32 |
| 33 class HistoryURLProvider; |
| 34 struct HistoryURLProviderParams; |
| 35 struct ImportedFaviconUsage; |
32 class TestingProfile; | 36 class TestingProfile; |
33 class TypedUrlSyncableService; | |
34 struct ThumbnailScore; | 37 struct ThumbnailScore; |
35 | 38 |
| 39 namespace base { |
| 40 class MessageLoop; |
| 41 } |
| 42 |
36 namespace history { | 43 namespace history { |
37 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
38 class AndroidProviderBackend; | 45 class AndroidProviderBackend; |
39 #endif | 46 #endif |
40 | 47 |
41 class CommitLaterTask; | 48 class CommitLaterTask; |
| 49 struct DownloadRow; |
42 class HistoryClient; | 50 class HistoryClient; |
| 51 class HistoryDBTask; |
| 52 class InMemoryHistoryBackend; |
43 class VisitFilter; | 53 class VisitFilter; |
44 struct DownloadRow; | 54 class TypedUrlSyncableService; |
45 | 55 |
46 // The maximum number of icons URLs per page which can be stored in the | 56 // The maximum number of icons URLs per page which can be stored in the |
47 // thumbnail database. | 57 // thumbnail database. |
48 static const size_t kMaxFaviconsPerPage = 8; | 58 static const size_t kMaxFaviconsPerPage = 8; |
49 | 59 |
50 // The maximum number of bitmaps for a single icon URL which can be stored in | 60 // The maximum number of bitmaps for a single icon URL which can be stored in |
51 // the thumbnail database. | 61 // the thumbnail database. |
52 static const size_t kMaxFaviconBitmapsPerIconURL = 8; | 62 static const size_t kMaxFaviconBitmapsPerIconURL = 8; |
53 | 63 |
54 class QueuedHistoryDBTask { | 64 class QueuedHistoryDBTask { |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 | 896 |
887 // Listens for the system being under memory pressure. | 897 // Listens for the system being under memory pressure. |
888 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 898 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
889 | 899 |
890 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 900 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
891 }; | 901 }; |
892 | 902 |
893 } // namespace history | 903 } // namespace history |
894 | 904 |
895 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 905 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |