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 COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class GURL; | 22 class GURL; |
23 class InMemoryURLIndex; | 23 class InMemoryURLIndex; |
24 class KeywordProvider; | 24 class KeywordProvider; |
25 class PrefService; | 25 class PrefService; |
26 class ShortcutsBackend; | 26 class ShortcutsBackend; |
27 | 27 |
28 namespace bookmarks { | 28 namespace bookmarks { |
29 class BookmarkModel; | 29 class BookmarkModel; |
30 } | 30 } |
31 | 31 |
| 32 namespace contextual_suggestions { |
| 33 class ContextualSuggestionsService; |
| 34 } |
| 35 |
32 namespace history { | 36 namespace history { |
33 class HistoryService; | 37 class HistoryService; |
34 class URLDatabase; | 38 class URLDatabase; |
35 } | 39 } |
36 | 40 |
37 namespace net { | 41 namespace net { |
38 class URLRequestContextGetter; | 42 class URLRequestContextGetter; |
39 } | 43 } |
40 | 44 |
41 namespace physical_web { | 45 namespace physical_web { |
(...skipping 11 matching lines...) Expand all Loading... |
53 virtual PrefService* GetPrefs() = 0; | 57 virtual PrefService* GetPrefs() = 0; |
54 virtual const AutocompleteSchemeClassifier& GetSchemeClassifier() const = 0; | 58 virtual const AutocompleteSchemeClassifier& GetSchemeClassifier() const = 0; |
55 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; | 59 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; |
56 virtual history::HistoryService* GetHistoryService() = 0; | 60 virtual history::HistoryService* GetHistoryService() = 0; |
57 virtual scoped_refptr<history::TopSites> GetTopSites() = 0; | 61 virtual scoped_refptr<history::TopSites> GetTopSites() = 0; |
58 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; | 62 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; |
59 virtual history::URLDatabase* GetInMemoryDatabase() = 0; | 63 virtual history::URLDatabase* GetInMemoryDatabase() = 0; |
60 virtual InMemoryURLIndex* GetInMemoryURLIndex() = 0; | 64 virtual InMemoryURLIndex* GetInMemoryURLIndex() = 0; |
61 virtual TemplateURLService* GetTemplateURLService() = 0; | 65 virtual TemplateURLService* GetTemplateURLService() = 0; |
62 virtual const TemplateURLService* GetTemplateURLService() const = 0; | 66 virtual const TemplateURLService* GetTemplateURLService() const = 0; |
| 67 virtual contextual_suggestions::ContextualSuggestionsService* |
| 68 GetContextualSuggestionsService() const = 0; |
63 virtual const SearchTermsData& GetSearchTermsData() const = 0; | 69 virtual const SearchTermsData& GetSearchTermsData() const = 0; |
64 virtual scoped_refptr<ShortcutsBackend> GetShortcutsBackend() = 0; | 70 virtual scoped_refptr<ShortcutsBackend> GetShortcutsBackend() = 0; |
65 virtual scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() = 0; | 71 virtual scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() = 0; |
66 virtual std::unique_ptr<KeywordExtensionsDelegate> | 72 virtual std::unique_ptr<KeywordExtensionsDelegate> |
67 GetKeywordExtensionsDelegate(KeywordProvider* keyword_provider) = 0; | 73 GetKeywordExtensionsDelegate(KeywordProvider* keyword_provider) = 0; |
68 virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; | 74 virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; |
69 | 75 |
70 // The value to use for Accept-Languages HTTP header when making an HTTP | 76 // The value to use for Accept-Languages HTTP header when making an HTTP |
71 // request. | 77 // request. |
72 virtual std::string GetAcceptLanguages() const = 0; | 78 virtual std::string GetAcceptLanguages() const = 0; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // listeners add themselves to, and then kill this method. | 125 // listeners add themselves to, and then kill this method. |
120 virtual void OnAutocompleteControllerResultReady( | 126 virtual void OnAutocompleteControllerResultReady( |
121 AutocompleteController* controller) {} | 127 AutocompleteController* controller) {} |
122 | 128 |
123 // Called after creation of |keyword_provider| to allow the client to | 129 // Called after creation of |keyword_provider| to allow the client to |
124 // configure the provider if desired. | 130 // configure the provider if desired. |
125 virtual void ConfigureKeywordProvider(KeywordProvider* keyword_provider) {} | 131 virtual void ConfigureKeywordProvider(KeywordProvider* keyword_provider) {} |
126 }; | 132 }; |
127 | 133 |
128 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 134 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
OLD | NEW |