Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
| 10 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" | 10 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" |
| 11 #include "components/contextual_suggestions/contextual_suggestions_service.h" | |
|
Mark P
2017/07/07 20:13:54
No need to add this here; you get it from the pare
gcomanici
2017/07/07 21:24:45
Removed.
| |
| 11 #include "components/omnibox/browser/autocomplete_provider_client.h" | 12 #include "components/omnibox/browser/autocomplete_provider_client.h" |
| 12 | 13 |
| 13 class Profile; | 14 class Profile; |
| 14 | 15 |
| 15 class ChromeAutocompleteProviderClient : public AutocompleteProviderClient { | 16 class ChromeAutocompleteProviderClient : public AutocompleteProviderClient { |
| 16 public: | 17 public: |
| 17 explicit ChromeAutocompleteProviderClient(Profile* profile); | 18 explicit ChromeAutocompleteProviderClient(Profile* profile); |
| 18 ~ChromeAutocompleteProviderClient() override; | 19 ~ChromeAutocompleteProviderClient() override; |
| 19 | 20 |
| 20 // AutocompleteProviderClient: | 21 // AutocompleteProviderClient: |
| 21 net::URLRequestContextGetter* GetRequestContext() override; | 22 net::URLRequestContextGetter* GetRequestContext() override; |
| 22 PrefService* GetPrefs() override; | 23 PrefService* GetPrefs() override; |
| 23 const AutocompleteSchemeClassifier& GetSchemeClassifier() const override; | 24 const AutocompleteSchemeClassifier& GetSchemeClassifier() const override; |
| 24 AutocompleteClassifier* GetAutocompleteClassifier() override; | 25 AutocompleteClassifier* GetAutocompleteClassifier() override; |
| 25 history::HistoryService* GetHistoryService() override; | 26 history::HistoryService* GetHistoryService() override; |
| 26 scoped_refptr<history::TopSites> GetTopSites() override; | 27 scoped_refptr<history::TopSites> GetTopSites() override; |
| 27 bookmarks::BookmarkModel* GetBookmarkModel() override; | 28 bookmarks::BookmarkModel* GetBookmarkModel() override; |
| 28 history::URLDatabase* GetInMemoryDatabase() override; | 29 history::URLDatabase* GetInMemoryDatabase() override; |
| 29 InMemoryURLIndex* GetInMemoryURLIndex() override; | 30 InMemoryURLIndex* GetInMemoryURLIndex() override; |
| 30 TemplateURLService* GetTemplateURLService() override; | 31 TemplateURLService* GetTemplateURLService() override; |
| 31 const TemplateURLService* GetTemplateURLService() const override; | 32 const TemplateURLService* GetTemplateURLService() const override; |
| 33 contextual_suggestions::ContextualSuggestionsService* | |
| 34 GetContextualSuggestionsService() const override; | |
| 32 const SearchTermsData& GetSearchTermsData() const override; | 35 const SearchTermsData& GetSearchTermsData() const override; |
| 33 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override; | 36 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override; |
| 34 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override; | 37 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override; |
| 35 std::unique_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( | 38 std::unique_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( |
| 36 KeywordProvider* keyword_provider) override; | 39 KeywordProvider* keyword_provider) override; |
| 37 physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override; | 40 physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override; |
| 38 std::string GetAcceptLanguages() const override; | 41 std::string GetAcceptLanguages() const override; |
| 39 std::string GetEmbedderRepresentationOfAboutScheme() override; | 42 std::string GetEmbedderRepresentationOfAboutScheme() override; |
| 40 std::vector<base::string16> GetBuiltinURLs() override; | 43 std::vector<base::string16> GetBuiltinURLs() override; |
| 41 std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() override; | 44 std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() override; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 58 | 61 |
| 59 private: | 62 private: |
| 60 Profile* profile_; | 63 Profile* profile_; |
| 61 ChromeAutocompleteSchemeClassifier scheme_classifier_; | 64 ChromeAutocompleteSchemeClassifier scheme_classifier_; |
| 62 UIThreadSearchTermsData search_terms_data_; | 65 UIThreadSearchTermsData search_terms_data_; |
| 63 | 66 |
| 64 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient); |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 70 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| OLD | NEW |