Index: chrome/browser/autocomplete/autocomplete_controller.h |
diff --git a/chrome/browser/autocomplete/autocomplete_controller.h b/chrome/browser/autocomplete/autocomplete_controller.h |
index b0913172015211acc5bd258ab04b2c08cc4f172b..87a8684130c775d81249de14da0efe3264c00652 100644 |
--- a/chrome/browser/autocomplete/autocomplete_controller.h |
+++ b/chrome/browser/autocomplete/autocomplete_controller.h |
@@ -19,6 +19,7 @@ class AutocompleteControllerDelegate; |
class KeywordProvider; |
class Profile; |
class SearchProvider; |
+class ZerosuggestProvider; |
// The AutocompleteController is the center of the autocomplete system. A |
// class creates an instance of the controller, which in turn creates a set of |
@@ -108,6 +109,14 @@ class AutocompleteController : public AutocompleteProviderListener { |
// If |clear_result| is true, the controller will also erase the result set. |
void Stop(bool clear_result); |
+ // Begin asynchronously fetching Zerosuggest suggestions for |url|. |
+ // |user_text| is the text entered in the omnibox, which may be non-empty if |
+ // the user previously focused in the omnibox during this interaction. |
+ void StartZerosuggest(const GURL& url, const string16& user_text); |
+ |
+ // Cancels any pending Zerosuggest fetch. |
+ void StopZerosuggest(); |
+ |
// Asks the relevant provider to delete |match|, and ensures observers are |
// notified of resulting changes immediately. This should only be called when |
// no query is running. |
@@ -188,6 +197,8 @@ class AutocompleteController : public AutocompleteProviderListener { |
SearchProvider* search_provider_; |
+ ZerosuggestProvider* zerosuggest_provider_; |
+ |
// Input passed to Start. |
AutocompleteInput input_; |