Index: chrome/browser/autocomplete/autocomplete.h |
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h |
index c010975320ea52e0da0d1bf4ae9e0365e630618f..37ca60da6d9c5453a3737b8c34514417850e3d72 100644 |
--- a/chrome/browser/autocomplete/autocomplete.h |
+++ b/chrome/browser/autocomplete/autocomplete.h |
@@ -562,6 +562,7 @@ class AutocompleteResult { |
// Returns the match at the given index. |
const AutocompleteMatch& match_at(size_t index) const; |
+ AutocompleteMatch* match_at(size_t index); |
// Get the default match for the query (not necessarily the first). Returns |
// end() if there is no default match. |
@@ -732,6 +733,7 @@ class AutocompleteController : public ACProviderListener { |
friend class AutocompleteProviderTest; |
FRIEND_TEST_ALL_PREFIXES(AutocompleteProviderTest, |
RedundantKeywordsIgnoredInResult); |
+ FRIEND_TEST_ALL_PREFIXES(AutocompleteProviderTest, UpdateAssistedQueryStats); |
// Updates |result_| to reflect the current provider state. Resets timers and |
// fires notifications as necessary. |is_synchronous_pass| is true only when |
@@ -747,6 +749,11 @@ class AutocompleteController : public ACProviderListener { |
// provider name as a description on the first match in the group. |
void UpdateKeywordDescriptions(AutocompleteResult* result); |
+ // For each AutocompleteMatch returned by SearchProvider, updates the |
+ // destination_url iff the provider's TemplateURL supports assisted query |
+ // stats. |
+ void UpdateAssistedQueryStats(AutocompleteResult* result); |
+ |
// Calls AutocompleteControllerDelegate::OnResultChanged() and if done sends |
// AUTOCOMPLETE_CONTROLLER_RESULT_READY. |
void NotifyChanged(bool notify_default_match); |