OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // suggestions for the given |category|, if present, so that no suggestions | 144 // suggestions for the given |category|, if present, so that no suggestions |
145 // are suppressed. This does not necessarily make previously dismissed | 145 // are suppressed. This does not necessarily make previously dismissed |
146 // suggestions reappear, as they may have been permanently deleted, depending | 146 // suggestions reappear, as they may have been permanently deleted, depending |
147 // on the provider implementation. | 147 // on the provider implementation. |
148 virtual void ClearDismissedSuggestionsForDebugging(Category category) = 0; | 148 virtual void ClearDismissedSuggestionsForDebugging(Category category) = 0; |
149 | 149 |
150 protected: | 150 protected: |
151 ContentSuggestionsProvider(Observer* observer); | 151 ContentSuggestionsProvider(Observer* observer); |
152 | 152 |
153 Observer* observer() const { return observer_; } | 153 Observer* observer() const { return observer_; } |
| 154 |
154 private: | 155 private: |
155 Observer* observer_; | 156 Observer* observer_; |
156 }; | 157 }; |
157 | 158 |
158 } // namespace ntp_snippets | 159 } // namespace ntp_snippets |
159 | 160 |
160 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ | 161 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_PROVIDER_H_ |
OLD | NEW |