Index: components/offline_pages/core/prefetch/prefetch_service.h |
diff --git a/components/offline_pages/core/prefetch/prefetch_service.h b/components/offline_pages/core/prefetch/prefetch_service.h |
index 9e5ec6cbf624796bcf6e14499e9a367ded03c657..5731dd2593cae5c3e48c8c78983b93438a8b6c73 100644 |
--- a/components/offline_pages/core/prefetch/prefetch_service.h |
+++ b/components/offline_pages/core/prefetch/prefetch_service.h |
@@ -7,9 +7,14 @@ |
#include "components/keyed_service/core/keyed_service.h" |
+namespace ntp_snippets { |
+class ContentSuggestionsService; |
+} |
+ |
namespace offline_pages { |
class PrefetchDispatcher; |
+class PrefetchGCMHandler; |
// Main class and entry point for the Offline Pages Prefetching feature, that |
// controls the lifetime of all major subcomponents of the prefetching system. |
@@ -18,6 +23,12 @@ class PrefetchService : public KeyedService { |
~PrefetchService() override = default; |
virtual PrefetchDispatcher* GetDispatcher() = 0; |
+ virtual PrefetchGCMHandler* GetPrefetchGCMHandler() = 0; |
+ |
+ // Called at construction of the ContentSuggestionsService to begin observing |
+ // events related to incoming articles. |
+ virtual void ObserveContentSuggestionsService( |
+ ntp_snippets::ContentSuggestionsService* service) = 0; |
}; |
} // namespace offline_pages |