OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INSTANCE_ID_INSTANCE_ID_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/gcm_driver/instance_id/instance_id.h" | 9 #include "components/gcm_driver/instance_id/instance_id.h" |
10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
11 | 11 |
12 class Profile; | |
13 | |
14 namespace extensions { | 12 namespace extensions { |
15 | 13 |
16 class InstanceIDApiFunction : public UIThreadExtensionFunction { | 14 class InstanceIDApiFunction : public UIThreadExtensionFunction { |
17 public: | 15 public: |
18 InstanceIDApiFunction(); | 16 InstanceIDApiFunction(); |
19 | 17 |
20 protected: | 18 protected: |
21 ~InstanceIDApiFunction() override; | 19 ~InstanceIDApiFunction() override; |
22 | 20 |
23 // ExtensionFunction: | 21 // ExtensionFunction: |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 121 |
124 private: | 122 private: |
125 void DeleteIDCompleted(instance_id::InstanceID::Result result); | 123 void DeleteIDCompleted(instance_id::InstanceID::Result result); |
126 | 124 |
127 DISALLOW_COPY_AND_ASSIGN(InstanceIDDeleteIDFunction); | 125 DISALLOW_COPY_AND_ASSIGN(InstanceIDDeleteIDFunction); |
128 }; | 126 }; |
129 | 127 |
130 } // namespace extensions | 128 } // namespace extensions |
131 | 129 |
132 #endif // CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ |
OLD | NEW |