Index: components/gcm_driver/gcm_client.h |
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h |
index 95a56d9d0e0f667fc24228fcfaaf535447794f88..921c414cd95a66f47310fb6d628b2831010bba63 100644 |
--- a/components/gcm_driver/gcm_client.h |
+++ b/components/gcm_driver/gcm_client.h |
@@ -261,6 +261,13 @@ class GCMClient { |
virtual void Register( |
const linked_ptr<RegistrationInfo>& registration_info) = 0; |
+ // Checks that the provided |registration_id| (aka token for Instance ID |
+ // registrations) matches the stored registration info. Also checks sender IDs |
+ // match for GCM registrations. |
+ virtual bool ValidateRegistration( |
+ const linked_ptr<RegistrationInfo>& registration_info, |
+ const std::string& registration_id) = 0; |
+ |
// Unregisters from the server to stop accessing the provided service. |
// Delegate::OnUnregisterFinished will be called asynchronously upon |
// completion. |