| 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_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include <google/protobuf/message_lite.h> |
| 13 |
| 12 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 13 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 14 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 18 #include "google_apis/gcm/base/gcm_export.h" | 20 #include "google_apis/gcm/base/gcm_export.h" |
| 19 #include "google_apis/gcm/engine/registration_info.h" | 21 #include "google_apis/gcm/engine/registration_info.h" |
| 20 #include "google_apis/gcm/protocol/mcs.pb.h" | |
| 21 | |
| 22 namespace google { | |
| 23 namespace protobuf { | |
| 24 class MessageLite; | |
| 25 } // namespace protobuf | |
| 26 } // namespace google | |
| 27 | 22 |
| 28 namespace gcm { | 23 namespace gcm { |
| 29 | 24 |
| 30 class MCSMessage; | 25 class MCSMessage; |
| 31 | 26 |
| 32 // A GCM data store interface. GCM Store will handle persistence portion of RMQ, | 27 // A GCM data store interface. GCM Store will handle persistence portion of RMQ, |
| 33 // as well as store device and user checkin information. | 28 // as well as store device and user checkin information. |
| 34 class GCM_EXPORT GCMStore { | 29 class GCM_EXPORT GCMStore { |
| 35 public: | 30 public: |
| 36 // Map of message id to message data for outgoing messages. | 31 // Map of message id to message data for outgoing messages. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const std::string& settings_digest, | 112 const std::string& settings_digest, |
| 118 const UpdateCallback& callback) = 0; | 113 const UpdateCallback& callback) = 0; |
| 119 | 114 |
| 120 private: | 115 private: |
| 121 DISALLOW_COPY_AND_ASSIGN(GCMStore); | 116 DISALLOW_COPY_AND_ASSIGN(GCMStore); |
| 122 }; | 117 }; |
| 123 | 118 |
| 124 } // namespace gcm | 119 } // namespace gcm |
| 125 | 120 |
| 126 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ | 121 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ |
| OLD | NEW |