diff options
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h index 4c509c5..57a723d 100644 --- a/chrome/browser/autocomplete/search_provider.h +++ b/chrome/browser/autocomplete/search_provider.h @@ -88,6 +88,11 @@ class SearchProvider : public AutocompleteProvider, void StartOrStopHistoryQuery(bool minimal_changes, bool synchronous_only); void StartOrStopSuggestQuery(bool minimal_changes, bool synchronous_only); + // Returns true when the current query can be sent to the Suggest service. + // This will be false e.g. when Suggest is disabled, the query contains + // potentially private data, etc. + bool IsQuerySuitableForSuggest() const; + // Functions to stop the separate asynchronous subcomponents. // NOTE: These functions do not update |done_|. Callers must do so. void StopHistory(); @@ -188,4 +193,3 @@ class SearchProvider : public AutocompleteProvider, }; #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ - |