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 "base/scoped_observer.h" | 14 #include "base/scoped_observer.h" |
11 #include "chrome/browser/services/gcm/gcm_app_handler.h" | 15 #include "chrome/browser/services/gcm/gcm_app_handler.h" |
12 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
14 #include "extensions/browser/browser_context_keyed_api_factory.h" | 18 #include "extensions/browser/browser_context_keyed_api_factory.h" |
15 #include "extensions/browser/extension_registry_observer.h" | 19 #include "extensions/browser/extension_registry_observer.h" |
16 #include "google_apis/gcm/gcm_client.h" | 20 #include "google_apis/gcm/gcm_client.h" |
17 | 21 |
18 class Profile; | 22 class Profile; |
| 23 |
19 namespace content { | 24 namespace content { |
20 class BrowserContext; | 25 class BrowserContext; |
21 } | 26 } |
| 27 |
22 namespace gcm { | 28 namespace gcm { |
23 class GCMProfileService; | 29 class GCMProfileService; |
24 } | 30 } |
25 | 31 |
26 namespace extensions { | 32 namespace extensions { |
27 | 33 |
28 class ExtensionRegistry; | 34 class ExtensionRegistry; |
29 class GcmJsEventRouter; | 35 class GcmJsEventRouter; |
30 | 36 |
31 // Defines the interface to provide handling logic for a given app. | 37 // Defines the interface to provide handling logic for a given app. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #endif | 95 #endif |
90 | 96 |
91 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; | 97 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; |
92 | 98 |
93 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); | 99 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); |
94 }; | 100 }; |
95 | 101 |
96 } // namespace extensions | 102 } // namespace extensions |
97 | 103 |
98 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ | 104 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ |
OLD | NEW |