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

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

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed comments and added more docs. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_match.h
diff --git a/chrome/browser/autocomplete/autocomplete_match.h b/chrome/browser/autocomplete/autocomplete_match.h
index e26e3477edd7b9b53c379d80e20cdbff116741e3..55932e03157b0cd2924170f66fbbb059c1818dc1 100644
--- a/chrome/browser/autocomplete/autocomplete_match.h
+++ b/chrome/browser/autocomplete/autocomplete_match.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/search_engines/template_url.h"
#include "content/public/common/page_transition_types.h"
#include "googleurl/src/gurl.h"
@@ -274,6 +275,15 @@ struct AutocompleteMatch {
// True if this match is from a previous result.
bool from_previous;
+ // Optional search terms args. If present,
+ // AutocompleteController::UpdateAssistedQueryStats() will incorporate this
+ // data with additional data it calculates and pass the completed struct to
+ // TemplateURLRef::ReplaceSearchTerms() to reset the match's |destination_url|
+ // after the complete set of matches in the AutocompleteResult has been chosen
+ // and sorted. Most providers will leave this as NULL, which will cause the
+ // AutocompleteController to do no additional transformations.
+ scoped_ptr<TemplateURLRef::SearchTermsArgs> search_terms_args;
+
#ifndef NDEBUG
// Does a data integrity check on this match.
void Validate() const;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698