| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const UpdateCallback& callback) OVERRIDE; | 48 const UpdateCallback& callback) OVERRIDE; |
| 49 virtual void RemoveIncomingMessage(const std::string& persistent_id, | 49 virtual void RemoveIncomingMessage(const std::string& persistent_id, |
| 50 const UpdateCallback& callback) OVERRIDE; | 50 const UpdateCallback& callback) OVERRIDE; |
| 51 virtual void RemoveIncomingMessages(const PersistentIdList& persistent_ids, | 51 virtual void RemoveIncomingMessages(const PersistentIdList& persistent_ids, |
| 52 const UpdateCallback& callback) OVERRIDE; | 52 const UpdateCallback& callback) OVERRIDE; |
| 53 | 53 |
| 54 // Unacknowledged outgoing messages handling. | 54 // Unacknowledged outgoing messages handling. |
| 55 virtual bool AddOutgoingMessage(const std::string& persistent_id, | 55 virtual bool AddOutgoingMessage(const std::string& persistent_id, |
| 56 const MCSMessage& message, | 56 const MCSMessage& message, |
| 57 const UpdateCallback& callback) OVERRIDE; | 57 const UpdateCallback& callback) OVERRIDE; |
| 58 virtual void OverwriteOutgoingMessage( |
| 59 const std::string& persistent_id, |
| 60 const MCSMessage& message, |
| 61 const UpdateCallback& callback) OVERRIDE; |
| 58 virtual void RemoveOutgoingMessage(const std::string& persistent_id, | 62 virtual void RemoveOutgoingMessage(const std::string& persistent_id, |
| 59 const UpdateCallback& callback) OVERRIDE; | 63 const UpdateCallback& callback) OVERRIDE; |
| 60 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, | 64 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, |
| 61 const UpdateCallback& callback) OVERRIDE; | 65 const UpdateCallback& callback) OVERRIDE; |
| 62 | 66 |
| 63 // User serial number handling. | 67 // User serial number handling. |
| 64 virtual void SetNextSerialNumber(int64 next_serial_number, | 68 virtual void SetNextSerialNumber(int64 next_serial_number, |
| 65 const UpdateCallback& callback) OVERRIDE; | 69 const UpdateCallback& callback) OVERRIDE; |
| 66 virtual void AddUserSerialNumber(const std::string& username, | 70 virtual void AddUserSerialNumber(const std::string& username, |
| 67 int64 serial_number, | 71 int64 serial_number, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 104 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 101 | 105 |
| 102 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; | 106 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; |
| 103 | 107 |
| 104 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); | 108 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); |
| 105 }; | 109 }; |
| 106 | 110 |
| 107 } // namespace gcm | 111 } // namespace gcm |
| 108 | 112 |
| 109 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ | 113 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ |
| OLD | NEW |