| 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();
|
|
|