OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ | |
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace gcm { | |
14 | |
15 // Acts as a bridge between GCM API and GCMClient layer. It is profile based. | |
16 class GCMProfileService : public BrowserContextKeyedService { | |
17 public: | |
18 explicit GCMProfileService(Profile* profile); | |
19 virtual ~GCMProfileService(); | |
20 | |
21 // Returns true if the GCM support is enabled. | |
22 static bool IsGCMEnabled(); | |
fgorski
2013/11/05 19:40:18
What are the advantages/disadvantages of having th
| |
23 | |
24 private: | |
25 // The profile which owns this object. | |
26 Profile* profile_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); | |
29 }; | |
30 | |
31 } // namespace gcm | |
32 | |
33 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ | |
OLD | NEW |