Chromium Code Reviews| Index: google_apis/gcm/engine/gcm_store.h |
| diff --git a/google_apis/gcm/engine/gcm_store.h b/google_apis/gcm/engine/gcm_store.h |
| index cfefe914b45ddc4b86d1fac8a65b39a5dd8dc075..26af17a82e51b81f6f1be3149272bae35ce4cb63 100644 |
| --- a/google_apis/gcm/engine/gcm_store.h |
| +++ b/google_apis/gcm/engine/gcm_store.h |
| @@ -20,7 +20,6 @@ |
| #include "base/time/time.h" |
| #include "google_apis/gcm/base/gcm_export.h" |
| #include "google_apis/gcm/engine/account_mapping.h" |
| -#include "google_apis/gcm/engine/registration_info.h" |
| namespace gcm { |
| @@ -47,7 +46,7 @@ class GCM_EXPORT GCMStore { |
| bool success; |
| uint64 device_android_id; |
| uint64 device_security_token; |
| - RegistrationInfoMap registrations; |
| + std::map<std::string, std::string> registrations; |
| std::vector<std::string> incoming_messages; |
| OutgoingMessageMap outgoing_messages; |
| std::map<std::string, std::string> gservices_settings; |
| @@ -83,10 +82,10 @@ class GCM_EXPORT GCMStore { |
| const UpdateCallback& callback) = 0; |
| // Registration info. |
| - virtual void AddRegistration(const std::string& app_id, |
| - const linked_ptr<RegistrationInfo>& registration, |
| + virtual void AddRegistration(const std::string& serialized_key, |
|
Nicolas Zea
2015/05/15 20:37:01
Does it make sense to just pass in something equiv
jianli
2015/05/21 00:41:15
We've already passed a serialized string from stor
Nicolas Zea
2015/05/21 21:07:51
Fair enough. Could we give these more precise name
jianli
2015/05/21 23:11:24
I can't just make app_id key for registrations sin
|
| + const std::string& serialized_value, |
| const UpdateCallback& callback) = 0; |
| - virtual void RemoveRegistration(const std::string& app_id, |
| + virtual void RemoveRegistration(const std::string& serialized_key, |
| const UpdateCallback& callback) = 0; |
| // Unacknowledged incoming message handling. |