OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 [ | 5 [ |
6 { | 6 { |
7 "namespace":"networkingPrivate", | 7 "namespace":"networkingPrivate", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "implemented_in": "chrome/browser/chromeos/extensions/networking_private_a
pi.h" | 9 "implemented_in": "chrome/browser/chromeos/extensions/networking_private_a
pi.h" |
10 }, | 10 }, |
11 "platforms": ["chromeos"], | 11 "platforms": ["chromeos"], |
12 "types" : [ | 12 "types" : [ |
13 { | 13 { |
14 "id": "NetworkProperties", | 14 "id": "NetworkProperties", |
15 "type": "object", | 15 "type": "object", |
16 "additionalProperties": { "type": "any" } | 16 "additionalProperties": { "type": "any" } |
17 }, | 17 }, |
18 { | 18 { |
| 19 "id": "ManagedNetworkProperties", |
| 20 "type": "object", |
| 21 "additionalProperties": { "type": "any" } |
| 22 }, |
| 23 { |
19 "id": "VerificationProperties", | 24 "id": "VerificationProperties", |
20 "type": "object", | 25 "type": "object", |
21 "properties": { | 26 "properties": { |
22 "certificate": { | 27 "certificate": { |
23 "type": "string", | 28 "type": "string", |
24 "description": "A string containing a PEM-encoded X.509 certificate
for use in verifying the signed data." | 29 "description": "A string containing a PEM-encoded X.509 certificate
for use in verifying the signed data." |
25 }, | 30 }, |
26 "publicKey": { | 31 "publicKey": { |
27 "type": "string", | 32 "type": "string", |
28 "description": "A string containing a PEM-encoded RSA public key to
be used to compare with the one in signedData" | 33 "description": "A string containing a PEM-encoded RSA public key to
be used to compare with the one in signedData" |
(...skipping 30 matching lines...) Expand all Loading... |
59 { | 64 { |
60 "name": "properties", | 65 "name": "properties", |
61 "$ref": "NetworkProperties", | 66 "$ref": "NetworkProperties", |
62 "description": "Results of the query for network properties." | 67 "description": "Results of the query for network properties." |
63 } | 68 } |
64 ] | 69 ] |
65 } | 70 } |
66 ] | 71 ] |
67 }, | 72 }, |
68 { | 73 { |
| 74 "name": "getManagedProperties", |
| 75 "description": "Gets the merged properties of the network with id networ
kGuid from the sources: User settings, shared settings, user policy and device p
olicy.", |
| 76 "parameters": [ |
| 77 { |
| 78 "name": "networkGuid", |
| 79 "type": "string", |
| 80 "description": "The unique identifier of the network to get properti
es from." |
| 81 }, |
| 82 { |
| 83 "name": "callback", |
| 84 "type": "function", |
| 85 "parameters": [ |
| 86 { |
| 87 "name": "properties", |
| 88 "$ref": "ManagedNetworkProperties", |
| 89 "description": "Results of the query for managed network propert
ies." |
| 90 } |
| 91 ] |
| 92 } |
| 93 ] |
| 94 }, |
| 95 { |
69 "name": "getState", | 96 "name": "getState", |
70 "description": "Gets the cached read-only properties of the network with
id networkGuid. This is meant to be a higher performance function than getProp
erties, which requires a round trip to query the networking subsystem. It only
returns a subset of the properties returned by getProperties.", | 97 "description": "Gets the cached read-only properties of the network with
id networkGuid. This is meant to be a higher performance function than getProp
erties, which requires a round trip to query the networking subsystem. It only
returns a subset of the properties returned by getProperties.", |
71 "parameters": [ | 98 "parameters": [ |
72 { | 99 { |
73 "name": "networkGuid", | 100 "name": "networkGuid", |
74 "type": "string", | 101 "type": "string", |
75 "description": "The unique identifier of the network to set properti
es on." | 102 "description": "The unique identifier of the network to set properti
es on." |
76 }, | 103 }, |
77 { | 104 { |
78 "name": "callback", | 105 "name": "callback", |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 { | 293 { |
267 "name": "changes", | 294 "name": "changes", |
268 "type": "array", | 295 "type": "array", |
269 "items": { "type": "string" } | 296 "items": { "type": "string" } |
270 } | 297 } |
271 ] | 298 ] |
272 } | 299 } |
273 ] | 300 ] |
274 } | 301 } |
275 ] | 302 ] |
OLD | NEW |