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

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

Issue 903493002: Componentize ScoredHistoryMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_quick_provider.h
diff --git a/chrome/browser/autocomplete/history_quick_provider.h b/chrome/browser/autocomplete/history_quick_provider.h
index 9a8df833e83678028ca208e517fa3f81def41c7f..e50a109818f8f31f4c9c52aac4e0fb2d5e19884d 100644
--- a/chrome/browser/autocomplete/history_quick_provider.h
+++ b/chrome/browser/autocomplete/history_quick_provider.h
@@ -19,6 +19,7 @@ class Profile;
namespace history {
class ScoredHistoryMatch;
+class ScoredHistoryMatchClient;
} // namespace history
// This class is an autocomplete provider (a pseudo-internal component of
@@ -66,9 +67,15 @@ class HistoryQuickProvider : public HistoryProvider {
index_for_testing_.reset(index);
}
+ // Returns the ScoredHistoryMatchClient, lazily constructing it if necessary.
+ const history::ScoredHistoryMatchClient* GetScoredHistoryMatchClient();
+
AutocompleteInput autocomplete_input_;
std::string languages_;
+ // Used for computing ScoredHistoryMatches.
+ scoped_ptr<history::ScoredHistoryMatchClient> scored_history_match_client_;
+
// Only used for testing.
scoped_ptr<history::InMemoryURLIndex> index_for_testing_;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698