Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

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

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Touch ups. 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 057d9f03a9cb764d8a215a249df8d76af9d06949..f71ae79d798828a1a97f57c5331e7d0dc6557157 100644
--- a/components/offline_pages/core/prefetch/prefetch_service.h
+++ b/components/offline_pages/core/prefetch/prefetch_service.h
@@ -10,6 +10,10 @@
class GURL;
+namespace gcm {
+class GCMDriver;
+}
+
namespace offline_pages {
// Main class for the Offline Pages Prefetching feature, which will ask a server
@@ -67,6 +71,10 @@ class PrefetchService : public KeyedService {
// this call completes, the system will reschedule the task based on whether
// SetNeedsReschedule has been called.
virtual void StopBackgroundTask(ScopedBackgroundTask* task) = 0;
+
+ // When GCMDriver starts up, this method is called so that we can listen for
+ // messages corresponding to our app ID.
+ virtual void RegisterWithGCMDriver(gcm::GCMDriver* driver) = 0;
};
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698