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> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
| 15 #include "base/callback_forward.h" |
15 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
18 #include "base/timer/timer.h" | 19 #include "base/timer/timer.h" |
19 #include "components/image_fetcher/image_fetcher_delegate.h" | 20 #include "components/image_fetcher/image_fetcher_delegate.h" |
20 #include "components/keyed_service/core/keyed_service.h" | 21 #include "components/keyed_service/core/keyed_service.h" |
21 #include "components/ntp_snippets/ntp_snippet.h" | 22 #include "components/ntp_snippets/ntp_snippet.h" |
22 #include "components/ntp_snippets/ntp_snippets_fetcher.h" | 23 #include "components/ntp_snippets/ntp_snippets_fetcher.h" |
23 #include "components/ntp_snippets/ntp_snippets_scheduler.h" | 24 #include "components/ntp_snippets/ntp_snippets_scheduler.h" |
24 #include "components/ntp_snippets/ntp_snippets_status_service.h" | 25 #include "components/ntp_snippets/ntp_snippets_status_service.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // If the service might be enabled, DisabledReason::NONE will be provided. | 318 // If the service might be enabled, DisabledReason::NONE will be provided. |
318 virtual void NTPSnippetsServiceDisabledReasonChanged(DisabledReason) = 0; | 319 virtual void NTPSnippetsServiceDisabledReasonChanged(DisabledReason) = 0; |
319 | 320 |
320 protected: | 321 protected: |
321 virtual ~NTPSnippetsServiceObserver() {} | 322 virtual ~NTPSnippetsServiceObserver() {} |
322 }; | 323 }; |
323 | 324 |
324 } // namespace ntp_snippets | 325 } // namespace ntp_snippets |
325 | 326 |
326 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ | 327 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ |
OLD | NEW |