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

Unified Diff: components/omnibox/keyword_provider.h

Issue 1192373002: Prepare AutocompleteController for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
Patch Set: Response to review 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
« no previous file with comments | « components/omnibox/history_quick_provider.cc ('k') | components/omnibox/keyword_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/keyword_provider.h
diff --git a/components/omnibox/keyword_provider.h b/components/omnibox/keyword_provider.h
index 983db4232c5d62b75b114f1f0d2e55cc9f2e79f2..63dfa47f29d4047e88c2ecee40002bf2dc5e7fed 100644
--- a/components/omnibox/keyword_provider.h
+++ b/components/omnibox/keyword_provider.h
@@ -21,6 +21,7 @@
#include "components/omnibox/autocomplete_provider.h"
#include "components/omnibox/keyword_extensions_delegate.h"
+class AutocompleteProviderClient;
class AutocompleteProviderListener;
class KeywordExtensionsDelegate;
class TemplateURL;
@@ -50,13 +51,8 @@ class TemplateURLService;
// "<enter term(s)>" as the substituted input, and does nothing when selected.
class KeywordProvider : public AutocompleteProvider {
public:
- KeywordProvider(AutocompleteProviderListener* listener,
- TemplateURLService* model);
-
- void set_extensions_delegate(
- scoped_ptr<KeywordExtensionsDelegate> extensions_delegate) {
- extensions_delegate_ = extensions_delegate.Pass();
- }
+ KeywordProvider(AutocompleteProviderClient* client,
+ AutocompleteProviderListener* listener);
// Extracts the next whitespace-delimited token from input and returns it.
// Sets |remaining_input| to everything after the first token (skipping over
« no previous file with comments | « components/omnibox/history_quick_provider.cc ('k') | components/omnibox/keyword_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698