| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void OverwriteOutgoingMessage(const std::string& persistent_id, | 70 virtual void OverwriteOutgoingMessage(const std::string& persistent_id, |
| 71 const MCSMessage& message, | 71 const MCSMessage& message, |
| 72 const UpdateCallback& callback) | 72 const UpdateCallback& callback) |
| 73 OVERRIDE; | 73 OVERRIDE; |
| 74 virtual void RemoveOutgoingMessage(const std::string& persistent_id, | 74 virtual void RemoveOutgoingMessage(const std::string& persistent_id, |
| 75 const UpdateCallback& callback) OVERRIDE; | 75 const UpdateCallback& callback) OVERRIDE; |
| 76 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, | 76 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, |
| 77 const UpdateCallback& callback) OVERRIDE; | 77 const UpdateCallback& callback) OVERRIDE; |
| 78 | 78 |
| 79 // Sets last device's checkin time. | 79 // Sets last device's checkin time. |
| 80 virtual void SetLastCheckinTime(const base::Time& last_checkin_time, | 80 virtual void SetLastCheckinInfo(const base::Time& time, |
| 81 const std::set<std::string>& accounts, |
| 81 const UpdateCallback& callback) OVERRIDE; | 82 const UpdateCallback& callback) OVERRIDE; |
| 82 | 83 |
| 83 // G-service settings handling. | 84 // G-service settings handling. |
| 84 virtual void SetGServicesSettings( | 85 virtual void SetGServicesSettings( |
| 85 const std::map<std::string, std::string>& settings, | 86 const std::map<std::string, std::string>& settings, |
| 86 const std::string& settings_digest, | 87 const std::string& settings_digest, |
| 87 const UpdateCallback& callback) OVERRIDE; | 88 const UpdateCallback& callback) OVERRIDE; |
| 88 | 89 |
| 89 private: | 90 private: |
| 90 typedef std::map<std::string, int> AppIdToMessageCountMap; | 91 typedef std::map<std::string, int> AppIdToMessageCountMap; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 117 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 118 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 118 | 119 |
| 119 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; | 120 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); | 122 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace gcm | 125 } // namespace gcm |
| 125 | 126 |
| 126 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ | 127 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ |
| OLD | NEW |