| Index: chrome/browser/autocomplete/base_search_provider.h
|
| diff --git a/chrome/browser/autocomplete/base_search_provider.h b/chrome/browser/autocomplete/base_search_provider.h
|
| index bc77f13b61af2b54546e017d45e71a8cfe9bc655..dea57609720154c281217adc6b546313afb4134a 100644
|
| --- a/chrome/browser/autocomplete/base_search_provider.h
|
| +++ b/chrome/browser/autocomplete/base_search_provider.h
|
| @@ -54,6 +54,17 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| // Returns whether |match| is flagged as a query that should be prefetched.
|
| static bool ShouldPrefetch(const AutocompleteMatch& match);
|
|
|
| + // Returns a simpler AutocompleteMatch suitable for persistence like in
|
| + // ShortcutsDatabase.
|
| + // NOTE: Use with care. Most likely you want the other CreateSearchSuggestion
|
| + // with protected access.
|
| + static AutocompleteMatch CreateSearchSuggestion(
|
| + const base::string16& suggestion,
|
| + AutocompleteMatchType::Type type,
|
| + const base::string16& match_contents,
|
| + bool from_keyword_provider,
|
| + const TemplateURL* template_url);
|
| +
|
| // AutocompleteProvider:
|
| virtual void Stop(bool clear_cached_results) OVERRIDE;
|
| virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
|
|
|