OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_API_GCM_GCM_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GCM_GCM_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_GCM_GCM_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_GCM_GCM_API_H_ |
7 | 7 |
8 #include "chrome/common/extensions/api/gcm.h" | 8 #include "chrome/common/extensions/api/gcm.h" |
9 #include "components/gcm_driver/gcm_client.h" | 9 #include "components/gcm_driver/gcm_client.h" |
10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
11 | 11 |
12 namespace gcm { | 12 namespace gcm { |
13 class GCMDriver; | 13 class GCMDriver; |
14 class GCMProfileService; | |
15 } // namespace gcm | 14 } // namespace gcm |
16 | 15 |
17 class Profile; | 16 class Profile; |
18 | 17 |
19 namespace extensions { | 18 namespace extensions { |
20 | 19 |
21 class GcmApiFunction : public AsyncExtensionFunction { | 20 class GcmApiFunction : public AsyncExtensionFunction { |
22 public: | 21 public: |
23 GcmApiFunction() {} | 22 GcmApiFunction() {} |
24 | 23 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 104 |
106 private: | 105 private: |
107 // The application we route the event to is running in context of the | 106 // The application we route the event to is running in context of the |
108 // |profile_| and the latter outlives the event router. | 107 // |profile_| and the latter outlives the event router. |
109 Profile* profile_; | 108 Profile* profile_; |
110 }; | 109 }; |
111 | 110 |
112 } // namespace extensions | 111 } // namespace extensions |
113 | 112 |
114 #endif // CHROME_BROWSER_EXTENSIONS_API_GCM_GCM_API_H_ | 113 #endif // CHROME_BROWSER_EXTENSIONS_API_GCM_GCM_API_H_ |
OLD | NEW |