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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_application_id.h

Issue 955673004: Move gcm-independent parts of push messaging out of gcm namespace and directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove redundant cast Created 5 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
OLDNEW
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 CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_APPLICATION_ID_H_ 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_APPLICATION_ID_H_
6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_APPLICATION_ID_H_ 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_APPLICATION_ID_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace user_prefs { 16 namespace user_prefs {
17 class PrefRegistrySyncable; 17 class PrefRegistrySyncable;
18 } 18 }
19 19
20 namespace gcm {
21
22 // The prefix used for all push messaging application ids. 20 // The prefix used for all push messaging application ids.
23 extern const char kPushMessagingApplicationIdPrefix[]; 21 extern const char kPushMessagingApplicationIdPrefix[];
24 22
25 // Type used to identify a web app from a Push API perspective. 23 // Type used to identify a web app from a Push API perspective.
26 // These can be persisted to disk, in a 1:1 mapping between app_id_guid and 24 // These can be persisted to disk, in a 1:1 mapping between app_id_guid and
27 // pair<origin, service_worker_registration_id>. 25 // pair<origin, service_worker_registration_id>.
28 class PushMessagingApplicationId { 26 class PushMessagingApplicationId {
29 public: 27 public:
30 // Register profile-specific prefs. 28 // Register profile-specific prefs.
31 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 29 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Constructs a valid app id. 71 // Constructs a valid app id.
74 PushMessagingApplicationId(const std::string& app_id_guid, 72 PushMessagingApplicationId(const std::string& app_id_guid,
75 const GURL& origin, 73 const GURL& origin,
76 int64 service_worker_registration_id); 74 int64 service_worker_registration_id);
77 75
78 std::string app_id_guid_; 76 std::string app_id_guid_;
79 GURL origin_; 77 GURL origin_;
80 int64 service_worker_registration_id_; 78 int64 service_worker_registration_id_;
81 }; 79 };
82 80
83 } // namespace gcm 81 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_APPLICATION_ID_H_
84
85 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_APPLICATION_ID_H_
OLDNEW
« no previous file with comments | « chrome/browser/push_messaging/OWNERS ('k') | chrome/browser/push_messaging/push_messaging_application_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698