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

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

Issue 10872032: Revert 152946 - Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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: chrome/browser/history/scored_history_match.h
===================================================================
--- chrome/browser/history/scored_history_match.h (revision 152962)
+++ chrome/browser/history/scored_history_match.h (working copy)
@@ -22,11 +22,14 @@
ScoredHistoryMatch(); // Required by STL.
// Creates a new match with a raw score calculated for the history item given
- // in |row|. First determines if the row qualifies by seeing if all of the
- // terms in |terms_vector| occur in |row|. If so, calculates a raw score.
- // This raw score allows the results to be ordered and can be used to
- // influence the final score calculated by the client of this index.
- // If the row does not qualify the raw score will be 0.
+ // in |row| by first determining if all of the terms in |terms_vector| occur
+ // in |row| and, if so, calculating a raw score based on 1) starting position
+ // of each term in the user input, 2) completeness of each term's match,
+ // 3) ordering of the occurrence of each term (i.e. they appear in order),
+ // 4) last visit time (compared to |now|), and 5) number of visits.
+ // This raw score allows the results to be ordered and can be used
+ // to influence the final score calculated by the client of this
+ // index.
ScoredHistoryMatch(const URLRow& row,
const string16& lower_string,
const String16Vector& terms_vector,
« no previous file with comments | « chrome/browser/history/in_memory_url_index_unittest.cc ('k') | chrome/browser/history/scored_history_match_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698