Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: google_apis/gcm/engine/registration_info.h

Issue 207443002: [GCM] Move registration info persistence from extension state store to GCM store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/engine/registration_info.h
diff --git a/google_apis/gcm/engine/registration_info.h b/google_apis/gcm/engine/registration_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..e2e1b74a786cf0d88c5554e68b0932ecef5e4ee0
--- /dev/null
+++ b/google_apis/gcm/engine/registration_info.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
+#define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
+
+#include <map>
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "google_apis/gcm/base/gcm_export.h"
+
+namespace gcm {
+
+struct GCM_EXPORT RegistrationInfo {
+ RegistrationInfo();
+ ~RegistrationInfo();
+
+ std::string SerializeAsString() const;
+ bool ParseFromString(const std::string& value);
+
+ std::vector<std::string> sender_ids;
+ std::string registration_id;
+};
+
+// Map of app id to registration info.
+typedef std::map<std::string, RegistrationInfo> RegistrationInfoMap;
Nicolas Zea 2014/03/21 19:52:40 Not a huge deal, but this is going to be fairly in
+
+} // namespace gcm
+
+#endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698