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

Side by Side Diff: chrome/browser/services/gcm/gcm_profile_service.h

Issue 60673002: Create services/gcm directory and add some initial files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 1 month 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 (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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698