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

Side by Side 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: Patch to land 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
6 #define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "base/basictypes.h"
13 #include "base/memory/linked_ptr.h"
14 #include "google_apis/gcm/base/gcm_export.h"
15
16 namespace gcm {
17
18 struct GCM_EXPORT RegistrationInfo {
19 RegistrationInfo();
20 ~RegistrationInfo();
21
22 std::string SerializeAsString() const;
23 bool ParseFromString(const std::string& value);
24
25 std::vector<std::string> sender_ids;
26 std::string registration_id;
27 };
28
29 // Map of app id to registration info.
30 typedef std::map<std::string, linked_ptr<RegistrationInfo> >
31 RegistrationInfoMap;
32
33 } // namespace gcm
34
35 #endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/gcm_store_impl_unittest.cc ('k') | google_apis/gcm/engine/registration_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698