diff options
Diffstat (limited to 'chrome/browser/history/history_backend.h')
-rw-r--r-- | chrome/browser/history/history_backend.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h index 057b0f5..73423f2 100644 --- a/chrome/browser/history/history_backend.h +++ b/chrome/browser/history/history_backend.h @@ -27,6 +27,7 @@ class BookmarkService; struct DownloadPersistentStoreInfo; +class Profile; class TestingProfile; struct ThumbnailScore; @@ -104,7 +105,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // may be NULL. // // This constructor is fast and does no I/O, so can be called at any time. - HistoryBackend(const FilePath& history_dir, + HistoryBackend(Profile* profile, + const FilePath& history_dir, int id, Delegate* delegate, BookmarkService* bookmark_service); @@ -257,6 +259,13 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, const base::Time remove_end); void RemoveDownloads(const base::Time remove_end); + // InMemoryURLIndex ---------------------------------------------------------- + + // Returns the quick history index. + history::InMemoryURLIndex* InMemoryIndex() const { + return in_memory_url_index_.get(); + } + // Segment usage ------------------------------------------------------------- void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, @@ -574,6 +583,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // created. scoped_ptr<TextDatabaseManager> text_database_; + // The index used for quick history lookups. + scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; + // Manages expiration between the various databases. ExpireHistoryBackend expirer_; |