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

Unified Diff: chrome/browser/autocomplete/history_provider.h

Issue 1185723002: Prepare HistoryProvider for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: chrome/browser/autocomplete/history_provider.h
diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h
index 0f06ab888f800aa19ae1e2ceddcb8dbf104c8d0f..b83039711b5af4ef7e89304b1a4c31c41b747807 100644
--- a/chrome/browser/autocomplete/history_provider.h
+++ b/chrome/browser/autocomplete/history_provider.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "components/omnibox/autocomplete_provider.h"
+#include "components/omnibox/autocomplete_provider_client.h"
#include "components/omnibox/in_memory_url_index_types.h"
class AutocompleteInput;
@@ -25,7 +26,9 @@ class HistoryProvider : public AutocompleteProvider {
static bool PreventInlineAutocomplete(const AutocompleteInput& input);
protected:
- HistoryProvider(Profile* profile, AutocompleteProvider::Type type);
+ HistoryProvider(AutocompleteProvider::Type type,
+ AutocompleteProviderClient* client);
+
~HistoryProvider() override;
// Finds and removes the match from the current collection of matches and
@@ -38,7 +41,12 @@ class HistoryProvider : public AutocompleteProvider {
size_t text_length,
bool is_url);
- Profile* profile_;
+ AutocompleteProviderClient* client() { return client_; }
+
+ private:
+ AutocompleteProviderClient* client_;
+
+ DISALLOW_COPY_AND_ASSIGN(HistoryProvider);
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
« no previous file with comments | « chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698