summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/in_memory_url_index.h
diff options
context:
space:
mode:
authormrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 19:25:58 +0000
committermrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 19:25:58 +0000
commit5c86ada8d84f6e67d17b027d347052ef451241c4 (patch)
treea52e511aa41f5a0b5221bbb16a1f99892c6c2e7b /chrome/browser/history/in_memory_url_index.h
parent7c9c9dcd65b5fe4b5b5d223e096eb4b68164fed2 (diff)
downloadchromium_src-5c86ada8d84f6e67d17b027d347052ef451241c4.zip
chromium_src-5c86ada8d84f6e67d17b027d347052ef451241c4.tar.gz
chromium_src-5c86ada8d84f6e67d17b027d347052ef451241c4.tar.bz2
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/3017008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54354 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.h9
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