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
3 // found in the LICENSE file.
7 "namespace":"networkingPrivate",
10 "implemented_in": "chrome/browser/extensions/api/networking_private/networking_private_api.h"
12 "platforms": ["chromeos", "win"],
15 "id": "NetworkProperties",
17 "additionalProperties": { "type": "any" }
20 "id": "ManagedNetworkProperties",
22 "additionalProperties": { "type": "any" }
25 "id": "VerificationProperties",
30 "description": "A string containing a PEM-encoded X.509 certificate for use in verifying the signed data."
34 "description": "A string containing a PEM-encoded RSA public key to be used to compare with the one in signedData"
38 "description": "A string containing a base64-encoded random binary data for use in verifying the signed data."
42 "description": "A string containing the identifying data string signed by the device."
46 "description": "A string containing the serial number of the device."
50 "description": "A string containing the SSID of the device. Only set if the device has already been setup once."
54 "description": "A string containing the BSSID of the device. Only set if the device has already been setup."
61 "enum": ["Ethernet", "WiFi", "Cellular"]
66 "name": "getProperties",
67 "description": "Gets all the properties of the network with id networkGuid. Includes all properties of the network (read-only and read/write values).",
70 "name": "networkGuid",
72 "description": "The unique identifier of the network to get properties from."
80 "$ref": "NetworkProperties",
81 "description": "Results of the query for network properties."
88 "name": "getManagedProperties",
89 "description": "Gets the merged properties of the network with id networkGuid from the sources: User settings, shared settings, user policy, device policy and the currently active settings.",
92 "name": "networkGuid",
94 "description": "The unique identifier of the network to get properties from."
101 "name": "properties",
102 "$ref": "ManagedNetworkProperties",
103 "description": "Results of the query for managed network properties."
111 "description": "Gets the cached read-only properties of the network with id networkGuid. This is meant to be a higher performance function than getProperties, which requires a round trip to query the networking subsystem. It only returns a subset of the properties returned by getProperties.",
114 "name": "networkGuid",
116 "description": "The unique identifier of the network to set properties on."
123 "name": "properties",
124 "$ref": "NetworkProperties",
125 "description": "Results of the query for network properties."
132 "name": "setProperties",
133 "description": "Sets the properties of the network with id networkGuid.",
136 "name": "networkGuid",
138 "description": "The unique identifier of the network to set properties on."
141 "name": "properties",
142 "$ref": "NetworkProperties",
143 "description": "The properties to set on the network."
153 "name": "createNetwork",
154 "description": "Creates a new network configuration from propeties. If a matching configured network already exists, this will fail. Otherwise returns the guid of the new network.",
159 "description": "If true, share this network configuration with other users."
162 "name": "properties",
163 "$ref": "NetworkProperties",
164 "description": "The properties to configure the new network with."
179 "name": "getVisibleNetworks",
180 "description": "Gets the list of visible networks, and returns a list of cached, read-only network properties for each.",
185 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"],
186 "description": "The type of networks to return."
194 "name": "networkList",
196 "items": { "$ref": "NetworkProperties" }
203 "name": "getEnabledNetworkTypes",
204 "description": "Returns a list of the enabled network type.",
212 "name": "networkList",
214 "items": { "$ref": "NetworkType" }
221 "name": "enableNetworkType",
222 "description": "Enable the specified network type.",
225 "name": "networkType",
226 "$ref": "NetworkType"
231 "name": "disableNetworkType",
232 "description": "Disable the specified network type.",
235 "name": "networkType",
236 "$ref": "NetworkType"
241 "name": "requestNetworkScan",
242 "description": "Requests that the networking subsystem scan for new networks and update the list returned by getVisibleNetworks. This is only a request: the network subsystem can choose to ignore it. If the list is updated, then the onNetworkListChanged event will be fired.",
246 "name": "startConnect",
247 "description": "Starts a connection to the network with networkGuid.",
250 "name": "networkGuid",
252 "description": "The unique identifier of the network to connect to."
259 "description": "A callback function that indicates that a connection has been initiated."
264 "name": "startDisconnect",
265 "description": "Starts a disconnect from the network with networkGuid.",
268 "name": "networkGuid",
270 "description": "The unique identifier of the network to disconnect from."
277 "description": "A callback function that indicates that a disconnect has been initiated."
282 "name": "verifyDestination",
283 "description": "Verifies that the device is a trusted device.",
286 "name": "properties",
287 "$ref": "VerificationProperties",
288 "description": "Properties of the destination to use in verifying that it is a trusted device."
299 "description": "A callback function that indicates whether or not the device is a trusted device."
304 "name": "verifyAndEncryptCredentials",
305 "description": "Verifies that the device is a trusted device and retrieves encrypted network credentials.",
308 "name": "properties",
309 "$ref": "VerificationProperties",
310 "description": "Properties of the destination to use in verifying that it is a trusted device."
315 "description": "A string containing the unique identifier of the network to get credentials for."
322 "name": "credentials",
326 "description": "A callback function that receives base64-encoded encrypted credential data to send to a trusted device."
331 "name": "verifyAndEncryptData",
332 "description": "Verifies that the device is a trusted device and encrypts supplied data with device public key.",
335 "name": "properties",
336 "$ref": "VerificationProperties",
337 "description": "Properties of the destination to use in verifying that it is a trusted device."
342 "description": "A string containing the base64-encoded data to encrypt."
349 "name": "encryptedData",
353 "description": "A callback function that receives base64-encoded encrypted data to send to a trusted device."
360 "name": "onNetworksChanged",
362 "description": "Fired when the properties change on any of the networks. Sends a list of identifiers for networks whose properties have changed.",
367 "items": { "type": "string" }
372 "name": "onNetworkListChanged",
374 "description": "Fired when the list of networks has changed. Sends a complete list of identifiers for all the current networks.",
379 "items": { "type": "string" }