Chromium Code Reviews| Index: chrome/browser/autocomplete/keyword_provider.h |
| =================================================================== |
| --- chrome/browser/autocomplete/keyword_provider.h (revision 94623) |
| +++ chrome/browser/autocomplete/keyword_provider.h (working copy) |
| @@ -24,6 +24,7 @@ |
| class Profile; |
| class TemplateURL; |
| +class TemplateURLModel; |
| class TemplateURLService; |
| // Autocomplete provider for keyword input. |
| @@ -71,6 +72,18 @@ |
| const AutocompleteInput& input, |
| string16* remaining_input); |
| + // If |text| corresponds (in the sense of |
| + // TemplateURLModel::CleanUserInputKeyword()) to an enabled, substituting |
| + // keyword, returns that keyword; returns the empty string otherwise. |
| + string16 GetKeywordForText(const string16& text) const; |
| + |
| + TemplateURLService* GetTemplateURLService() const; |
|
Peter Kasting
2011/07/29 21:08:44
Nit: This can be private, I think
|
| + |
| + // Creates a fully marked-up AutocompleteMatch for a specific keyword. |
| + AutocompleteMatch CreateAutocompleteMatch( |
| + const string16& keyword, |
| + const AutocompleteInput& input); |
| + |
| // AutocompleteProvider |
| virtual void Start(const AutocompleteInput& input, bool minimal_changes); |
| virtual void Stop(); |