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

Unified Diff: components/gcm_driver/gcm_client.h

Issue 2473813002: Notify GCMAppHandlers when the store is reset, so they clear cached IDs (Closed)
Patch Set: Created 4 years, 1 month 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/gcm_driver/gcm_client.h
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
index 3e399c561f8610b7f63375983040c5d4e790d87a..6a7910ea528786a3d88fb6dfcb03096bc7232ec6 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -212,6 +212,10 @@ class GCMClient {
// Called when the connection is interrupted.
virtual void OnDisconnected() = 0;
+
+ // Called when the GCM store is reset (e.g. due to corruption), which
+ // changes the device ID, invalidating all prior registrations.
+ virtual void OnStoreReset() = 0;
};
GCMClient();

Powered by Google App Engine
This is Rietveld 408576698