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

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

Issue 284183011: Code clean up for ScoredHistoryMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleting unused variables from header file Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Untyped visits to bookmarked pages score this, compared to 1 for 180 // Untyped visits to bookmarked pages score this, compared to 1 for
181 // untyped visits to non-bookmarked pages and 20 for typed visits. 181 // untyped visits to non-bookmarked pages and 20 for typed visits.
182 static int bookmark_value_; 182 static int bookmark_value_;
183 183
184 // If true, we allow input terms to match in the TLD (e.g., .com). 184 // If true, we allow input terms to match in the TLD (e.g., .com).
185 static bool allow_tld_matches_; 185 static bool allow_tld_matches_;
186 186
187 // If true, we allow input terms to match in the scheme (e.g., http://). 187 // If true, we allow input terms to match in the scheme (e.g., http://).
188 static bool allow_scheme_matches_; 188 static bool allow_scheme_matches_;
189
190 // If true, assign raw scores to be max(whatever it normally would be,
191 // a score that's similar to the score HistoryURL provider would assign).
192 // This variable is set in the constructor by examining the field trial
193 // state.
194 static bool also_do_hup_like_scoring_;
195
196 // The maximum score that can be assigned to non-inlineable matches.
197 // This is useful because often we want inlineable matches to come
198 // first (even if they don't sometimes score as well as non-inlineable
199 // matches) because if a non-inlineable match comes first than all matches
200 // will get demoted later in HistoryQuickProvider to non-inlineable scores.
201 // Set to -1 to indicate no maximum score.
202 static int max_assigned_score_for_non_inlineable_matches_;
203 }; 189 };
204 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches; 190 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches;
205 191
206 } // namespace history 192 } // namespace history
207 193
208 #endif // CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_ 194 #endif // CHROME_BROWSER_HISTORY_SCORED_HISTORY_MATCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698