Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: chrome/browser/history/history.h

Issue 8451009: HQP Refactoring (in Preparation for SQLite Cache) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/expire_history_backend.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history.h
===================================================================
--- chrome/browser/history/history.h (revision 111352)
+++ chrome/browser/history/history.h (working copy)
@@ -143,8 +143,8 @@
// TODO(brettw) this should return the InMemoryHistoryBackend.
history::URLDatabase* InMemoryDatabase();
- // Return the quick history index.
- history::InMemoryURLIndex* InMemoryIndex();
+ // Returns the history database if it has been set, otherwise NULL.
+ history::URLDatabase* HistoryDatabase();
// Navigation ----------------------------------------------------------------
@@ -502,6 +502,11 @@
CancelableRequestConsumerBase* consumer,
const GetMostRecentKeywordSearchTermsCallback& callback);
+ // InMemoryURLIndex ----------------------------------------------------------
+
+ // Returns the quick history index.
+ history::InMemoryURLIndex* InMemoryIndex();
+
// Bookmarks -----------------------------------------------------------------
// Notification that a URL is no longer bookmarked.
@@ -845,6 +850,9 @@
// on the background thread.
scoped_ptr<history::InMemoryHistoryBackend> in_memory_backend_;
+ // The index used for quick history lookups.
+ scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
+
// The profile, may be null when testing.
Profile* profile_;
« no previous file with comments | « chrome/browser/history/expire_history_backend.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698