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

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
Index: chrome/browser/history/history.h
===================================================================
--- chrome/browser/history/history.h (revision 108940)
+++ chrome/browser/history/history.h (working copy)
@@ -156,8 +156,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 ----------------------------------------------------------------
@@ -515,6 +515,11 @@
CancelableRequestConsumerBase* consumer,
const GetMostRecentKeywordSearchTermsCallback& callback);
+ // InMemoryURLIndex ----------------------------------------------------------
+
+ // Returns the quick history index.
+ history::InMemoryURLIndex* InMemoryIndex() const;
Peter Kasting 2011/11/21 19:07:50 Nit: const mehtods should not return non-const poi
mrossetti 2011/11/21 21:53:25 Done.
+
// Bookmarks -----------------------------------------------------------------
// Notification that a URL is no longer bookmarked.
@@ -854,6 +859,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_;

Powered by Google App Engine
This is Rietveld 408576698