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> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/macros.h" | 13 #include "base/macros.h" |
12 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
13 #include "components/keyed_service/core/keyed_service.h" | 15 #include "components/keyed_service/core/keyed_service.h" |
14 #include "components/ntp_snippets/inner_iterator.h" | 16 #include "components/ntp_snippets/inner_iterator.h" |
15 #include "components/ntp_snippets/ntp_snippet.h" | 17 #include "components/ntp_snippets/ntp_snippet.h" |
16 | 18 |
17 namespace ntp_snippets { | 19 namespace ntp_snippets { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Send when the service is shutting down. | 91 // Send when the service is shutting down. |
90 virtual void NTPSnippetsServiceShutdown(NTPSnippetsService* service) = 0; | 92 virtual void NTPSnippetsServiceShutdown(NTPSnippetsService* service) = 0; |
91 | 93 |
92 protected: | 94 protected: |
93 virtual ~NTPSnippetsServiceObserver() {} | 95 virtual ~NTPSnippetsServiceObserver() {} |
94 }; | 96 }; |
95 | 97 |
96 } // namespace ntp_snippets | 98 } // namespace ntp_snippets |
97 | 99 |
98 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ | 100 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ |
OLD | NEW |