Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NTP_SNIPPETS_SERVICE_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); | 192 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 class NTPSnippetsServiceObserver { | 195 class NTPSnippetsServiceObserver { |
| 196 public: | 196 public: |
| 197 // Sent every time the service loads a new set of data. | 197 // Sent every time the service loads a new set of data. |
| 198 virtual void NTPSnippetsServiceLoaded() = 0; | 198 virtual void NTPSnippetsServiceLoaded() = 0; |
| 199 // Sent when the service is shutting down. | 199 // Sent when the service is shutting down. |
| 200 virtual void NTPSnippetsServiceShutdown() = 0; | 200 virtual void NTPSnippetsServiceShutdown() = 0; |
| 201 // Sent every time the service has its data sources cleared. | |
|
Bernhard Bauer
2016/05/17 09:12:48
Maybe add a comment that explains why we do this?
dgn
2016/05/17 10:46:00
Added comments both here and in snippets_bridge.cc
| |
| 202 virtual void NTPSnippetsServiceCleared() = 0; | |
| 201 | 203 |
| 202 protected: | 204 protected: |
| 203 virtual ~NTPSnippetsServiceObserver() {} | 205 virtual ~NTPSnippetsServiceObserver() {} |
| 204 }; | 206 }; |
| 205 | 207 |
| 206 } // namespace ntp_snippets | 208 } // namespace ntp_snippets |
| 207 | 209 |
| 208 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ | 210 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ |
| OLD | NEW |