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 |
| 29 #if defined(OS_ANDROID) |
| 30 #include "chrome/browser/history/history_marshaling_android.h" |
| 31 #endif |
| 32 |
| 33 class HistoryURLProvider; |
| 34 struct HistoryURLProviderParams; |
| 35 struct ImportedFaviconUsage; |
28 class TestingProfile; | 36 class TestingProfile; |
29 class TypedUrlSyncableService; | |
30 struct ThumbnailScore; | 37 struct ThumbnailScore; |
31 | 38 |
| 39 namespace base { |
| 40 class MessageLoop; |
| 41 } |
| 42 |
32 namespace history { | 43 namespace history { |
33 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
34 class AndroidProviderBackend; | 45 class AndroidProviderBackend; |
35 #endif | 46 #endif |
36 | 47 |
37 class CommitLaterTask; | 48 class CommitLaterTask; |
| 49 struct DownloadRow; |
38 class HistoryClient; | 50 class HistoryClient; |
| 51 class HistoryDBTask; |
| 52 class InMemoryHistoryBackend; |
39 class VisitFilter; | 53 class VisitFilter; |
40 struct DownloadRow; | 54 class TypedUrlSyncableService; |
41 | 55 |
42 // 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 |
43 // thumbnail database. | 57 // thumbnail database. |
44 static const size_t kMaxFaviconsPerPage = 8; | 58 static const size_t kMaxFaviconsPerPage = 8; |
45 | 59 |
46 // 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 |
47 // the thumbnail database. | 61 // the thumbnail database. |
48 static const size_t kMaxFaviconBitmapsPerIconURL = 8; | 62 static const size_t kMaxFaviconBitmapsPerIconURL = 8; |
49 | 63 |
50 class QueuedHistoryDBTask { | 64 class QueuedHistoryDBTask { |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 | 867 |
854 // Listens for the system being under memory pressure. | 868 // Listens for the system being under memory pressure. |
855 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 869 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
856 | 870 |
857 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 871 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
858 }; | 872 }; |
859 | 873 |
860 } // namespace history | 874 } // namespace history |
861 | 875 |
862 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 876 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |