Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/extensions/api/instance_id/instance_id_api.h

Issue 1088593004: Add the IDL for chrome.instanceID API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync again Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 UIThreadExtensionFunction {
15 public:
16 DECLARE_EXTENSION_FUNCTION("instanceID.getID", INSTANCEID_GETID);
17
18 InstanceIDGetIDFunction();
19
20 protected:
21 ~InstanceIDGetIDFunction() override;
22
23 // ExtensionFunction:
24 ResponseAction Run() override;
25 };
26
27 class InstanceIDGetCreationTimeFunction : public UIThreadExtensionFunction {
28 public:
29 DECLARE_EXTENSION_FUNCTION("instanceID.getCreationTime",
30 INSTANCEID_GETCREATIONTIME);
31
32 InstanceIDGetCreationTimeFunction();
33
34 protected:
35 ~InstanceIDGetCreationTimeFunction() override;
36
37 // ExtensionFunction:
38 ResponseAction Run() override;
39 };
40
41 class InstanceIDGetTokenFunction : public UIThreadExtensionFunction {
42 public:
43 DECLARE_EXTENSION_FUNCTION("instanceID.getToken", INSTANCEID_GETTOKEN);
44
45 InstanceIDGetTokenFunction();
46
47 protected:
48 ~InstanceIDGetTokenFunction() override;
49
50 // ExtensionFunction:
51 ResponseAction Run() override;
52 };
53
54 class InstanceIDDeleteTokenFunction : public UIThreadExtensionFunction {
55 public:
56 DECLARE_EXTENSION_FUNCTION("instanceID.DeleteToken", INSTANCEID_DELETETOKEN);
57
58 InstanceIDDeleteTokenFunction();
59
60 protected:
61 ~InstanceIDDeleteTokenFunction() override;
62
63 // ExtensionFunction:
64 ResponseAction Run() override;
65 };
66
67 class InstanceIDDeleteIDFunction : public UIThreadExtensionFunction {
68 public:
69 DECLARE_EXTENSION_FUNCTION("instanceID.deleteID",
70 INSTANCEID_DELETEID);
71
72 InstanceIDDeleteIDFunction();
73
74 protected:
75 ~InstanceIDDeleteIDFunction() override;
76
77 // ExtensionFunction:
78 ResponseAction Run() override;
79 };
80
81 } // namespace extensions
82
83 #endif // CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/instance_id/OWNERS ('k') | chrome/browser/extensions/api/instance_id/instance_id_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698