OLD | NEW |
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_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/services/gcm/gcm_app_handler.h" | 14 #include "chrome/browser/services/gcm/gcm_app_handler.h" |
11 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
13 #include "extensions/browser/browser_context_keyed_api_factory.h" | 17 #include "extensions/browser/browser_context_keyed_api_factory.h" |
14 #include "google_apis/gcm/gcm_client.h" | 18 #include "google_apis/gcm/gcm_client.h" |
15 | 19 |
16 class Profile; | 20 class Profile; |
| 21 |
17 namespace content { | 22 namespace content { |
18 class BrowserContext; | 23 class BrowserContext; |
19 } | 24 } |
| 25 |
20 namespace gcm { | 26 namespace gcm { |
21 class GCMProfileService; | 27 class GCMProfileService; |
22 } | 28 } |
23 | 29 |
24 namespace extensions { | 30 namespace extensions { |
25 | 31 |
26 class GcmJsEventRouter; | 32 class GcmJsEventRouter; |
27 | 33 |
28 // Defines the interface to provide handling logic for a given app. | 34 // Defines the interface to provide handling logic for a given app. |
29 class ExtensionGCMAppHandler : public gcm::GCMAppHandler, | 35 class ExtensionGCMAppHandler : public gcm::GCMAppHandler, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #endif | 79 #endif |
74 | 80 |
75 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; | 81 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; |
76 | 82 |
77 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); | 83 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); |
78 }; | 84 }; |
79 | 85 |
80 } // namespace extensions | 86 } // namespace extensions |
81 | 87 |
82 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ | 88 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ |
OLD | NEW |