Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: components/omnibox/autocomplete_provider_client.h

Issue 1192373002: Prepare AutocompleteController for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
Patch Set: Remove stale include Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/omnibox/autocomplete_provider_client.h
diff --git a/components/omnibox/autocomplete_provider_client.h b/components/omnibox/autocomplete_provider_client.h
index fe84198c02ca3d525cac9cb268dfbe04e113643d..1adee89a82bac929c1d4d57539ada70451bb6951 100644
--- a/components/omnibox/autocomplete_provider_client.h
+++ b/components/omnibox/autocomplete_provider_client.h
@@ -17,6 +17,8 @@ struct AutocompleteMatch;
class AutocompleteClassifier;
class AutocompleteSchemeClassifier;
class GURL;
+class InMemoryURLIndex;
+class KeywordProvider;
class PrefService;
class ShortcutsBackend;
@@ -48,6 +50,7 @@ class AutocompleteProviderClient {
virtual scoped_refptr<history::TopSites> GetTopSites() = 0;
virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0;
virtual history::URLDatabase* GetInMemoryDatabase() = 0;
+ virtual InMemoryURLIndex* GetInMemoryURLIndex() = 0;
virtual TemplateURLService* GetTemplateURLService() = 0;
virtual const SearchTermsData& GetSearchTermsData() = 0;
virtual scoped_refptr<ShortcutsBackend> GetShortcutsBackend() = 0;
@@ -92,6 +95,10 @@ class AutocompleteProviderClient {
// listeners add themselves to, and then kill this method.
virtual void OnAutocompleteControllerResultReady(
AutocompleteController* controller) {}
+
+ // Called after creation of |keyword_provider| to allow the client to
+ // configure the provider if desired.
+ virtual void ConfigureKeywordProvider(KeywordProvider* keyword_provider) {}
};
#endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698