diff options
author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 16:07:34 +0000 |
---|---|---|
committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 16:07:34 +0000 |
commit | 7c6821db64d3eb49fe986212d621d11a066912ce (patch) | |
tree | faca56e0577c5424857b366a8b43991904c20d5b /chrome/browser/history/in_memory_url_index.h | |
parent | b3ccac85bee8a3d89c7b5ca3a64ee311f3f565c3 (diff) | |
download | chromium_src-7c6821db64d3eb49fe986212d621d11a066912ce.zip chromium_src-7c6821db64d3eb49fe986212d621d11a066912ce.tar.gz chromium_src-7c6821db64d3eb49fe986212d621d11a066912ce.tar.bz2 |
Add Framework for History Quick Provider
Incorporate 'quick' history provider index as an autocomplete provider in preparation for the replacement of the current history_url_provider. This step refactors the history provider code a bit, introduces the replacement class (history-quick_provider), and adds a unittest template. Note that the 'quick' provider will only support the fast, synchronous autocomplete pass. Once the quick provider has been completed the current history_url_provider will be replaced. In the meantime, the latter will remain in operation in order to provide the slower history results.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3005050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/in_memory_url_index.h')
-rw-r--r-- | chrome/browser/history/in_memory_url_index.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/history/in_memory_url_index.h b/chrome/browser/history/in_memory_url_index.h index 166c400..5b7861a 100644 --- a/chrome/browser/history/in_memory_url_index.h +++ b/chrome/browser/history/in_memory_url_index.h @@ -8,6 +8,8 @@ namespace history { +class URLDatabase; + // The URL history source. // Holds portions of the URL database in memory in an indexed form. Used to // quickly look up matching URLs for a given query string. Used by @@ -15,8 +17,11 @@ namespace history { // matches to the omnibox. class InMemoryURLIndex { public: - InMemoryURLIndex(); - ~InMemoryURLIndex(); + InMemoryURLIndex() {} + ~InMemoryURLIndex() {} + + // Open and index the URL history database. + bool Init(URLDatabase* history_db); }; } // namespace history |