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

Side by Side Diff: chrome/browser/gcm/gcm_product_util.h

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « chrome/browser/gcm/fake_gcm_profile_service.cc ('k') | chrome/browser/gcm/gcm_product_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GCM_PRODUCT_UTIL_H_ 5 #ifndef CHROME_BROWSER_GCM_GCM_PRODUCT_UTIL_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_ 6 #define CHROME_BROWSER_GCM_GCM_PRODUCT_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class PrefRegistrySimple; 10 class PrefRegistrySimple;
11 class PrefService; 11 class PrefService;
12 12
13 namespace user_prefs { 13 namespace user_prefs {
14 class PrefRegistrySyncable; 14 class PrefRegistrySyncable;
15 } 15 }
16 16
17 namespace gcm { 17 namespace gcm {
18 18
19 // Returns a string like "com.chrome.macosx" that should be used as the GCM 19 // Returns a string like "com.chrome.macosx" that should be used as the GCM
20 // category when an app_id is sent as a subtype instead of as a category. This 20 // category when an app_id is sent as a subtype instead of as a category. This
21 // is generated once, then remains fixed forever (even if the product name 21 // is generated once, then remains fixed forever (even if the product name
22 // changes), since it must match existing Instance ID tokens. 22 // changes), since it must match existing Instance ID tokens.
23 std::string GetProductCategoryForSubtypes(PrefService* prefs); 23 std::string GetProductCategoryForSubtypes(PrefService* prefs);
24 24
25 void RegisterPrefs(PrefRegistrySimple* registry); 25 void RegisterPrefs(PrefRegistrySimple* registry);
26 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 26 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
27 27
28 } // namespace gcm 28 } // namespace gcm
29 29
30 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_ 30 #endif // CHROME_BROWSER_GCM_GCM_PRODUCT_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/gcm/fake_gcm_profile_service.cc ('k') | chrome/browser/gcm/gcm_product_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698