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

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

Issue 10909046: Boost HQP Scores for Bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « chrome/browser/history/in_memory_url_index.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
===================================================================
--- chrome/browser/history/scored_history_match.h (revision 154855)
+++ chrome/browser/history/scored_history_match.h (working copy)
@@ -14,6 +14,8 @@
#include "chrome/browser/autocomplete/history_provider_util.h"
#include "chrome/browser/history/in_memory_url_index_types.h"
+class BookmarkService;
+
namespace history {
// An HistoryMatch that has a score as well as metrics defining where in the
@@ -26,12 +28,14 @@
// 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.
+ // If the row does not qualify the raw score will be 0. |bookmark_service| is
+ // used to determine if the match's URL is referenced by any bookmarks.
ScoredHistoryMatch(const URLRow& row,
const string16& lower_string,
const String16Vector& terms_vector,
const RowWordStarts& word_starts,
- const base::Time now);
+ const base::Time now,
+ BookmarkService* bookmark_service);
~ScoredHistoryMatch();
// Calculates a component score based on position, ordering and total
« no previous file with comments | « chrome/browser/history/in_memory_url_index.cc ('k') | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698