| 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 659fc7f9d1eaa2950a4732f9c5da87ac9b4b95af..9651e3fc38ae2c78a47a43d010bec8c9f45e57af 100644
|
| --- a/google_apis/gcm/engine/gcm_store.h
|
| +++ b/google_apis/gcm/engine/gcm_store.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/linked_ptr.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/time/time.h"
|
| #include "google_apis/gcm/base/gcm_export.h"
|
| #include "google_apis/gcm/engine/registration_info.h"
|
| #include "google_apis/gcm/protocol/mcs.pb.h"
|
| @@ -47,6 +48,9 @@ class GCM_EXPORT GCMStore {
|
| RegistrationInfoMap registrations;
|
| std::vector<std::string> incoming_messages;
|
| OutgoingMessageMap outgoing_messages;
|
| + std::map<std::string, std::string> gservices_settings;
|
| + std::string gservices_digest;
|
| + base::Time last_checkin_time;
|
| };
|
|
|
| typedef std::vector<std::string> PersistentIdList;
|
| @@ -101,6 +105,15 @@ class GCM_EXPORT GCMStore {
|
| virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids,
|
| const UpdateCallback& callback) = 0;
|
|
|
| + // G-service settings handling.
|
| + // Persists |settings|, |settings_digest| and |last_checkin_time|. It
|
| + // completely replaces the existing data.
|
| + virtual void SetGServicesSettings(
|
| + const std::map<std::string, std::string>& settings,
|
| + const std::string& settings_digest,
|
| + const base::Time& last_checkin_time,
|
| + const UpdateCallback& callback) = 0;
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(GCMStore);
|
| };
|
|
|