Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: components/offline_pages/core/prefetch/prefetch_service.h

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Fix windows Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698