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

Side by Side Diff: chrome/common/extensions/api/enterprise_platform_keys.json

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to WebCrypto like API. Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [{
not at google - send to devlin 2014/05/02 18:31:56 why is this JSON while the other is IDL?
pneubeck (no reviews) 2014/05/05 20:09:35 I preferred IDL over JSON. However, I feared that
6 "namespace" : "enterprise.platformKeys",
7 "description" : "none",
8 "platforms" : ["chromeos"],
9 "types" :[
10 {
11 "id" : "Token",
12 "type" : "object",
13 "properties" : {
14 "id" : {"type" : "string"},
15 "subtleCrypto" : {
16 "$ref" : "SubtleCrypto",
17 "description" : "SubtleCrypto backed by platform's TPM",
18 "nocompile" : true
19 }
20 }
21 },
22 {
23 "id" : "SubtleCrypto",
not at google - send to devlin 2014/05/02 18:31:56 SubtleCrypto is something that's supposed to be de
pneubeck (no reviews) 2014/05/05 20:09:35 Is there a canonical way to declare this as a refe
not at google - send to devlin 2014/05/05 21:09:24 isInstanceOf should do it, which in IDL is instanc
24 "type" : "object",
25 "properties" : {
26 "generateKey" : {
27 "type" : "function",
28 "parameters" : [{
29 "name" : "algorithm",
30 "type" : "object",
31 "properties" : {}
32 }]
33 }
34 }
35 }
36 ],
37 "properties" : {},
38 "functions" :[
39 {
40 "name" : "getTokens",
41 "type" : "function",
42 "description" : "Gets all available Tokens.",
43 "nocompile" : true,
44 "parameters" : [{
45 "name" : "callback",
46 "type" : "function",
47 "description" : "Callback to which the available Tokens are passed.",
48 "parameters" : [{
49 "name" : "tokens",
50 "type" : "array",
51 "items" : {"$ref" : "Token"}
52 }]
53 }]
54 },
55 {
56 "name" : "getCertificates",
57 "type" : "function",
58 "description" : "Gets all certificates of the provided token.",
59 "parameters" :[
60 {"name" : "tokenId", "type" : "string"},
61 {
62 "name" : "callback",
63 "type" : "function",
64 "description" : "Callback to which the certificates are passed.",
65 "parameters" : [{
66 "name" : "certificates",
67 "type" : "array",
68 "items" :
69 {"type" : "binary", "isInstanceOf" : "ArrayBuffer"}
70 }]
71 }
72 ]
73 },
74 {
75 "name" : "importCertificate",
76 "type" : "function",
77 "description" : "Import a certificate",
78 "parameters" :[
79 {"name" : "tokenId", "type" : "string"},
80 {
81 "name" : "certificate",
82 "type" : "binary",
83 "isInstanceOf" : "ArrayBuffer"
84 },
85 {
86 "name" : "callback",
87 "type" : "function",
88 "description" : "Called when the import is done.",
89 "optional" : true,
90 "parameters" : []
91 }
92 ]
93 },
94 {
95 "name" : "removeCertificate",
96 "type" : "function",
97 "description" : "Remove a certificate",
98 "parameters" :[
99 {"name" : "tokenId", "type" : "string"},
100 {
101 "name" : "certificate",
102 "type" : "binary",
103 "isInstanceOf" : "ArrayBuffer"
104 },
105 {
106 "name" : "callback",
107 "type" : "function",
108 "description" : "Called when the removal is done.",
109 "optional" : true,
110 "parameters" : []
111 }
112 ]
113 }
114 ]
115 }]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698