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

Unified Diff: components/omnibox/browser/url_index_private_data.h

Issue 2187343002: Generating autocomplete results with and without word breaks in the Omnibox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fixes for patch entitled "Generating autocomplete results with and without word breaks … Created 4 years, 4 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: components/omnibox/browser/url_index_private_data.h
diff --git a/components/omnibox/browser/url_index_private_data.h b/components/omnibox/browser/url_index_private_data.h
index 100692cd7b44e63de9bfbc2b01c3501a6e2bbd95..94564f15bd4a9ac516132bd6a9c29ea07bc07b65 100644
--- a/components/omnibox/browser/url_index_private_data.h
+++ b/components/omnibox/browser/url_index_private_data.h
@@ -50,6 +50,21 @@ class URLIndexPrivateData
public:
URLIndexPrivateData();
+ bool TrimCandidatePool (
Mark P 2016/08/10 17:46:20 All of these function should be private. They're
Mark P 2016/08/10 17:46:20 This function and the one below should be commente
Mark P 2016/08/10 17:46:20 Here and throughout the change, you introduce a nu
Lavar Askew 2016/08/18 03:07:52 Done.
Lavar Askew 2016/08/18 03:07:52 "git cl format" did not make any suggestions for m
+ HistoryIDSet history_id_set);
+
+ ScoredHistoryMatches GetScoredItemsForSearchString(
Mark P 2016/08/10 17:46:19 Most of this class calls this parameter a "term_st
Lavar Askew 2016/08/18 03:07:52 search_string was the name of the variable before
+ base::string16 search_string,
+ HistoryIDSet history_id_set,
+ size_t max_matches,
+ bookmarks::BookmarkModel* bookmark_model,
+ TemplateURLService* template_url_service);
+
+ // Given a base::string16 in |term_string|, scans the history index and
+ // returns the set of history item IDs.
+ HistoryIDSet HistoryItemsForWords(
Mark P 2016/08/10 17:46:19 This function is confusingly named. It sounds a l
Lavar Askew 2016/08/18 03:07:52 Done.
+ base::string16 search_string);
+
// Given a base::string16 in |term_string|, scans the history index and
// returns a vector with all scored, matching history items. The
// |term_string| is broken down into individual terms (words), each of which

Powered by Google App Engine
This is Rietveld 408576698