Index: components/gcm_driver/gcm_driver.h |
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h |
index 1b79e2fd51f2f3439e465f3cb5528ef9a6765007..bdd32ebe2dc04bde70ed55af5c6221261aec03fb 100644 |
--- a/components/gcm_driver/gcm_driver.h |
+++ b/components/gcm_driver/gcm_driver.h |
@@ -109,14 +109,15 @@ class GCMDriver { |
const std::vector<std::string>& sender_ids, |
const RegisterCallback& callback); |
- // Unregisters all sender_ids for an app. Only works on non-Android. |
+ // Unregisters all sender_ids for an app. Only works on non-Android. Will also |
+ // remove any encryption keys associated with the |app_id|. |
// |app_id|: application ID. |
// |callback|: to be called once the asynchronous operation is done. |
void Unregister(const std::string& app_id, |
const UnregisterCallback& callback); |
// Unregisters an (app_id, sender_id) pair from using GCM. Only works on |
- // Android. |
+ // Android. Will also remove any encryption keys associated with the |app_id|. |
// TODO(jianli): Switch to using GCM's unsubscribe API. |
// |app_id|: application ID. |
// |sender_id|: the sender ID that was passed when registering. |
@@ -266,9 +267,14 @@ class GCMDriver { |
const std::string& registration_id, |
GCMClient::Result result); |
+ // To be called when a registration for |app_id| has been unregistered, having |
+ // |result| as the result of the unregistration. Will remove any encryption |
+ // information associated with the |app_id|. |
johnme
2016/02/16 18:36:13
It's not clear from this description/method name t
Peter Beverloo
2016/02/16 21:50:50
Done.
|
+ void UnregisterRemoveEncryptionInfo(const std::string& app_id, |
+ GCMClient::Result result); |
+ |
// Runs the Unregister callback. |
- void UnregisterFinished(const std::string& app_id, |
- GCMClient::Result result); |
+ void UnregisterFinished(const std::string& app_id, GCMClient::Result result); |
// Runs the Send callback. |
void SendFinished(const std::string& app_id, |