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

Side by Side Diff: chrome/browser/services/gcm/push_messaging_service_impl.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: Created 5 years, 10 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_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/content_settings/core/browser/content_settings_observer.h" 10 #include "components/content_settings/core/browser/content_settings_observer.h"
11 #include "components/gcm_driver/gcm_app_handler.h" 11 #include "components/gcm_driver/gcm_app_handler.h"
12 #include "components/gcm_driver/gcm_client.h" 12 #include "components/gcm_driver/gcm_client.h"
13 #include "content/public/browser/push_messaging_service.h" 13 #include "content/public/browser/push_messaging_service.h"
14 #include "content/public/common/push_messaging_status.h" 14 #include "content/public/common/push_messaging_status.h"
15 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h" 15 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h"
16 16
17 class Profile; 17 class Profile;
18 class PushMessagingApplicationId;
18 19
19 namespace user_prefs { 20 namespace user_prefs {
20 class PrefRegistrySyncable; 21 class PrefRegistrySyncable;
21 } 22 }
22 23
23 namespace gcm { 24 namespace gcm {
24 25
25 class GCMProfileService; 26 class GCMProfileService;
26 class PushMessagingApplicationId;
27 27
28 class PushMessagingServiceImpl : public content::PushMessagingService, 28 class PushMessagingServiceImpl : public content::PushMessagingService,
29 public GCMAppHandler, 29 public GCMAppHandler,
30 public content_settings::Observer { 30 public content_settings::Observer {
31 public: 31 public:
32 // Register profile-specific prefs for GCM. 32 // Register profile-specific prefs for GCM.
33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
34 34
35 // If any Service Workers are using push, starts GCM and adds an app handler. 35 // If any Service Workers are using push, starts GCM and adds an app handler.
36 static void InitializeForProfile(Profile* profile); 36 static void InitializeForProfile(Profile* profile);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 int pending_push_registration_count_; 162 int pending_push_registration_count_;
163 163
164 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 164 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 166 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
167 }; 167 };
168 168
169 } // namespace gcm 169 } // namespace gcm
170 170
171 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ 171 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698