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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.h

Issue 8291005: HQP Refactoring (in Preparation for SQLite Cache) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rattle those Bots Senseless Created 9 years, 2 months 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/autocomplete/history_quick_provider.h
===================================================================
--- chrome/browser/autocomplete/history_quick_provider.h (revision 105497)
+++ chrome/browser/autocomplete/history_quick_provider.h (working copy)
@@ -37,9 +37,6 @@
virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
- // Performs the autocomplete matching and scoring.
- void DoAutocomplete();
-
// Disable this provider. For unit testing purposes only. This is required
// because this provider is closely associated with the HistoryURLProvider
// and in order to properly test the latter the HistoryQuickProvider must
@@ -52,6 +49,9 @@
FRIEND_TEST_ALL_PREFIXES(HistoryQuickProviderTest, Spans);
FRIEND_TEST_ALL_PREFIXES(HistoryQuickProviderTest, Relevance);
+ // Performs the autocomplete matching and scoring.
+ void DoAutocomplete();
+
// Creates an AutocompleteMatch from |history_match|. |max_match_score| gives
// the maximum possible score for the match. |history_matches| is the full set
// of matches to compare each match to when calculating confidence.
@@ -81,7 +81,8 @@
bool is_url);
// Only for use in unittests. Takes ownership of |index|.
- void SetIndexForTesting(history::InMemoryURLIndex* index);
+ void set_index(history::InMemoryURLIndex* index);
+
AutocompleteInput autocomplete_input_;
std::string languages_;
« no previous file with comments | « chrome/browser/autocomplete/history_provider.cc ('k') | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698