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

Unified Diff: chrome/browser/autocomplete/autocomplete_result.h

Issue 11198074: Initial implementation of dedupping search provider's URLs. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add a missing include. Created 8 years, 2 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/autocomplete/autocomplete_result.h
diff --git a/chrome/browser/autocomplete/autocomplete_result.h b/chrome/browser/autocomplete/autocomplete_result.h
index 36b0aa982ef662aabdcf00bde2339971d8d2dac0..6ae7e390dc482251dd005c87684f0e6f1a2a61db 100644
--- a/chrome/browser/autocomplete/autocomplete_result.h
+++ b/chrome/browser/autocomplete/autocomplete_result.h
@@ -15,6 +15,7 @@
class AutocompleteInput;
class AutocompleteProvider;
+class Profile;
// All matches from all providers for a particular query. This also tracks
// what the default match should be if the user doesn't manually select another
@@ -71,7 +72,8 @@ class AutocompleteResult {
// Copies matches from |old_matches| to provide a consistant result set. See
// comments in code for specifics.
void CopyOldMatches(const AutocompleteInput& input,
- const AutocompleteResult& old_matches);
+ const AutocompleteResult& old_matches,
+ Profile* profile);
// Adds a single match. The match is inserted at the appropriate position
// based on relevancy and display order. This is ONLY for use after
@@ -84,7 +86,7 @@ class AutocompleteResult {
// Removes duplicates, puts the list in sorted order and culls to leave only
// the best kMaxMatches matches. Sets the default match to the best match
// and updates the alternate nav URL.
- void SortAndCull(const AutocompleteInput& input);
+ void SortAndCull(const AutocompleteInput& input, Profile* profile);
// Returns true if at least one match was copied from the last result.
bool HasCopiedMatches() const;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_provider_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698