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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 30 matching lines...) Expand all
41 class ScopedKeepAlive; 41 class ScopedKeepAlive;
42 struct PushSubscriptionOptions; 42 struct PushSubscriptionOptions;
43 43
44 namespace gcm { 44 namespace gcm {
45 class GCMDriver; 45 class GCMDriver;
46 } 46 }
47 namespace instance_id { 47 namespace instance_id {
48 class InstanceIDDriver; 48 class InstanceIDDriver;
49 } 49 }
50 50
51 namespace user_prefs {
52 class PrefRegistrySyncable;
53 }
54
55 class PushMessagingServiceImpl : public content::PushMessagingService, 51 class PushMessagingServiceImpl : public content::PushMessagingService,
56 public gcm::GCMAppHandler, 52 public gcm::GCMAppHandler,
57 public content_settings::Observer, 53 public content_settings::Observer,
58 public KeyedService, 54 public KeyedService,
59 public BackgroundTrigger { 55 public BackgroundTrigger {
60 public: 56 public:
61 // If any Service Workers are using push, starts GCM and adds an app handler. 57 // If any Service Workers are using push, starts GCM and adds an app handler.
62 static void InitializeForProfile(Profile* profile); 58 static void InitializeForProfile(Profile* profile);
63 59
64 explicit PushMessagingServiceImpl(Profile* profile); 60 explicit PushMessagingServiceImpl(Profile* profile);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // we can finish processing them without being interrupted. 270 // we can finish processing them without being interrupted.
275 std::unique_ptr<ScopedKeepAlive> in_flight_keep_alive_; 271 std::unique_ptr<ScopedKeepAlive> in_flight_keep_alive_;
276 #endif 272 #endif
277 273
278 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 274 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
279 275
280 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 276 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
281 }; 277 };
282 278
283 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 279 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698