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

Side by Side Diff: chrome/browser/history/scored_history_match.h

Issue 11416285: Omnibiox: Tweak HQP New Scoring and Re-Enable Field Trial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_ 5 #ifndef CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_
6 #define CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_ 6 #define CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Pre-calculates days_ago_to_recency_numerator_, used in 92 // Pre-calculates days_ago_to_recency_numerator_, used in
93 // GetRecencyScore(). 93 // GetRecencyScore().
94 static void FillInDaysAgoToRecencyScoreArray(); 94 static void FillInDaysAgoToRecencyScoreArray();
95 95
96 // Returns a popularity score based on |typed_count| and 96 // Returns a popularity score based on |typed_count| and
97 // |visit_count|. 97 // |visit_count|.
98 static float GetPopularityScore(int typed_count, 98 static float GetPopularityScore(int typed_count,
99 int visit_count); 99 int visit_count);
100 100
101 // Combines the three component scores into a final score that's
102 // an appropriate value to use as a relevancy score.
103 static float GetFinalRelevancyScore(
104 float topicality_score, float recency_score, float popularity_score);
Peter Kasting 2012/12/01 02:45:30 Nit: One arg per line (local code style)
Mark P 2012/12/01 22:27:06 Done.
105
101 // Sets use_new_scoring based on command line flags and/or 106 // Sets use_new_scoring based on command line flags and/or
102 // field trial state. 107 // field trial state.
103 static void InitializeNewScoringField(); 108 static void InitializeNewScoringField();
104 109
105 // Sets also_do_hup_like_scoring based on the field trial state. 110 // Sets also_do_hup_like_scoring based on the field trial state.
106 static void InitializeAlsoDoHUPLikeScoringField(); 111 static void InitializeAlsoDoHUPLikeScoringField();
107 112
108 // End of functions used only in "new" scoring -------------------------- 113 // End of functions used only in "new" scoring --------------------------
109 114
110 // An interim score taking into consideration location and completeness 115 // An interim score taking into consideration location and completeness
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // a score that's similar to the score HistoryURL provider would assign). 154 // a score that's similar to the score HistoryURL provider would assign).
150 // This variable is set in the constructor by examining the field trial 155 // This variable is set in the constructor by examining the field trial
151 // state. 156 // state.
152 static bool also_do_hup_like_scoring; 157 static bool also_do_hup_like_scoring;
153 }; 158 };
154 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches; 159 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches;
155 160
156 } // namespace history 161 } // namespace history
157 162
158 #endif // CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_ 163 #endif // CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_field_trial.cc ('k') | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698