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

Unified Diff: chrome/browser/history/scored_history_match.h

Issue 77453007: Omnibox: Make HistoryURL Highlight Titles like HistoryQuick Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « chrome/browser/autocomplete/history_url_provider.cc ('k') | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/scored_history_match.h
diff --git a/chrome/browser/history/scored_history_match.h b/chrome/browser/history/scored_history_match.h
index c6a1f6324e7d6331f8c6cf40532f5151aba3d012..b641ea3cb633d53df42e7805b407c0d10ce9d234 100644
--- a/chrome/browser/history/scored_history_match.h
+++ b/chrome/browser/history/scored_history_match.h
@@ -64,6 +64,14 @@ class ScoredHistoryMatch : public history::HistoryMatch {
const TermMatches& title_matches() const { return title_matches_; }
bool can_inline() const { return can_inline_; }
+ // Returns |term_matches| after removing all matches that are not at a
+ // word break that starts after position |start_pos|. If |start_pos| is
+ // string::npos, does no filtering and simply returns |term_matches|.
+ static TermMatches FilterTermMatchesByWordStarts(
+ const TermMatches& term_matches,
+ const WordStarts& word_starts,
+ const size_t start_pos);
+
private:
friend class ScoredHistoryMatchTest;
@@ -83,15 +91,6 @@ class ScoredHistoryMatch : public history::HistoryMatch {
const string16& cleaned_up_url,
const RowWordStarts& word_starts);
- // Helper function for GetTopicalityScore().
- // Returns |term_matches| after removing all matches that are not at a
- // word break that starts after position |start_pos|. If |start_pos| is
- // string::npos, does no filtering and simply returns |term_matches|.
- static TermMatches FilterTermMatchesByWordStarts(
- const TermMatches& term_matches,
- const WordStarts& word_starts,
- const size_t start_pos);
-
// Precalculates raw_term_score_to_topicality_score_, used in
// GetTopicalityScore().
static void FillInTermScoreToTopicalityScoreArray();
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.cc ('k') | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698