OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ | |
7 | |
8 #include "extensions/browser/extension_function.h" | |
9 | |
10 class Profile; | |
11 | |
12 namespace extensions { | |
13 | |
14 class InstanceIDGetIDFunction : public AsyncExtensionFunction { | |
not at google - send to devlin
2015/04/22 17:21:42
Extend UIThreadExtensionFunction, not AsyncExtensi
jianli
2015/04/22 20:18:20
Done.
| |
15 public: | |
16 DECLARE_EXTENSION_FUNCTION("InstanceID.getId", INSTANCEID_GETID); | |
fgorski
2015/04/22 17:34:59
getID
jianli
2015/04/22 20:18:20
Done.
| |
17 | |
18 InstanceIDGetIDFunction(); | |
19 | |
20 protected: | |
21 ~InstanceIDGetIDFunction() override; | |
22 | |
23 // ExtensionFunction: | |
24 bool RunAsync() final; | |
25 }; | |
26 | |
27 class InstanceIDGetCreationTimeFunction : public AsyncExtensionFunction { | |
28 public: | |
29 DECLARE_EXTENSION_FUNCTION("InstanceID.getCreationTime", | |
30 INSTANCEID_GETCREATIONTIME); | |
31 | |
32 InstanceIDGetCreationTimeFunction(); | |
33 | |
34 protected: | |
35 ~InstanceIDGetCreationTimeFunction() override; | |
36 | |
37 // ExtensionFunction: | |
38 bool RunAsync() final; | |
39 }; | |
40 | |
41 class InstanceIDGetTokenFunction : public AsyncExtensionFunction { | |
42 public: | |
43 DECLARE_EXTENSION_FUNCTION("InstanceID.getToken", INSTANCEID_GETTOKEN); | |
44 | |
45 InstanceIDGetTokenFunction(); | |
46 | |
47 protected: | |
48 ~InstanceIDGetTokenFunction() override; | |
49 | |
50 // ExtensionFunction: | |
51 bool RunAsync() final; | |
52 }; | |
53 | |
54 class InstanceIDDeleteTokenFunction : public AsyncExtensionFunction { | |
55 public: | |
56 DECLARE_EXTENSION_FUNCTION("InstanceID.DeleteToken", INSTANCEID_DELETETOKEN); | |
57 | |
58 InstanceIDDeleteTokenFunction(); | |
59 | |
60 protected: | |
61 ~InstanceIDDeleteTokenFunction() override; | |
62 | |
63 // ExtensionFunction: | |
64 bool RunAsync() final; | |
65 }; | |
66 | |
67 class InstanceIDDeleteIDFunction : public AsyncExtensionFunction { | |
68 public: | |
69 DECLARE_EXTENSION_FUNCTION("InstanceID.deleteInstanceID", | |
fgorski
2015/04/22 17:34:59
deleteID
jianli
2015/04/22 20:18:20
Done.
| |
70 INSTANCEID_DELETEINSTANCEID); | |
71 | |
72 InstanceIDDeleteIDFunction(); | |
73 | |
74 protected: | |
75 ~InstanceIDDeleteIDFunction() override; | |
76 | |
77 // ExtensionFunction: | |
78 bool RunAsync() final; | |
79 }; | |
80 | |
81 } // namespace extensions | |
82 | |
83 #endif // CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ | |
OLD | NEW |