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"
14 "id": "NetworkProperties",
16 "additionalProperties": { "type": "any" }
19 "id": "ManagedNetworkProperties",
21 "additionalProperties": { "type": "any" }
24 "id": "VerificationProperties",
29 "description": "A string containing a PEM-encoded X.509 certificate for use in verifying the signed data."
33 "description": "A string containing a PEM-encoded RSA public key to be used to compare with the one in signedData"
37 "description": "A string containing a base64-encoded random binary data for use in verifying the signed data."
41 "description": "A string containing the identifying data string signed by the device."
45 "description": "A string containing the serial number of the device."
49 "description": "A string containing the SSID of the device. Only set if the device has already been setup once."
53 "description": "A string containing the BSSID of the device. Only set if the device has already been setup."
60 "enum": ["Ethernet", "WiFi", "Cellular"]
65 "name": "getProperties",
66 "description": "Gets all the properties of the network with id networkGuid. Includes all properties of the network (read-only and read/write values).",
69 "name": "networkGuid",
71 "description": "The unique identifier of the network to get properties from."
79 "$ref": "NetworkProperties",
80 "description": "Results of the query for network properties."
87 "name": "getManagedProperties",
88 "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.",
91 "name": "networkGuid",
93 "description": "The unique identifier of the network to get properties from."
100 "name": "properties",
101 "$ref": "ManagedNetworkProperties",
102 "description": "Results of the query for managed network properties."
110 "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.",
113 "name": "networkGuid",
115 "description": "The unique identifier of the network to set properties on."
122 "name": "properties",
123 "$ref": "NetworkProperties",
124 "description": "Results of the query for network properties."
131 "name": "setProperties",
132 "description": "Sets the properties of the network with id networkGuid.",
135 "name": "networkGuid",
137 "description": "The unique identifier of the network to set properties on."
140 "name": "properties",
141 "$ref": "NetworkProperties",
142 "description": "The properties to set on the network."
152 "name": "createNetwork",
153 "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.",
158 "description": "If true, share this network configuration with other users."
161 "name": "properties",
162 "$ref": "NetworkProperties",
163 "description": "The properties to configure the new network with."
178 "name": "getVisibleNetworks",
179 "description": "Gets the list of visible networks, and returns a list of cached, read-only network properties for each.",
184 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"],
185 "description": "The type of networks to return."
193 "name": "networkList",
195 "items": { "$ref": "NetworkProperties" }
202 "name": "getEnabledNetworkTypes",
203 "description": "Returns a list of the enabled network type.",
211 "name": "networkList",
213 "items": { "$ref": "NetworkType" }
220 "name": "enableNetworkType",
221 "description": "Enable the specified network type.",
224 "name": "networkType",
225 "$ref": "NetworkType"
230 "name": "disableNetworkType",
231 "description": "Disable the specified network type.",
234 "name": "networkType",
235 "$ref": "NetworkType"
240 "name": "requestNetworkScan",
241 "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.",
245 "name": "startConnect",
246 "description": "Starts a connection to the network with networkGuid.",
249 "name": "networkGuid",
251 "description": "The unique identifier of the network to connect to."
258 "description": "A callback function that indicates that a connection has been initiated."
263 "name": "startDisconnect",
264 "description": "Starts a disconnect from the network with networkGuid.",
267 "name": "networkGuid",
269 "description": "The unique identifier of the network to disconnect from."
276 "description": "A callback function that indicates that a disconnect has been initiated."
281 "name": "verifyDestination",
282 "description": "Verifies that the device is a trusted device.",
285 "name": "properties",
286 "$ref": "VerificationProperties",
287 "description": "Properties of the destination to use in verifying that it is a trusted device."
298 "description": "A callback function that indicates whether or not the device is a trusted device."
303 "name": "verifyAndEncryptCredentials",
304 "description": "Verifies that the device is a trusted device and retrieves encrypted network credentials.",
307 "name": "properties",
308 "$ref": "VerificationProperties",
309 "description": "Properties of the destination to use in verifying that it is a trusted device."
314 "description": "A string containing the unique identifier of the network to get credentials for."
321 "name": "credentials",
325 "description": "A callback function that receives base64-encoded encrypted credential data to send to a trusted device."
330 "name": "verifyAndEncryptData",
331 "description": "Verifies that the device is a trusted device and encrypts supplied data with device public key.",
334 "name": "properties",
335 "$ref": "VerificationProperties",
336 "description": "Properties of the destination to use in verifying that it is a trusted device."
341 "description": "A string containing the base64-encoded data to encrypt."
348 "name": "encryptedData",
352 "description": "A callback function that receives base64-encoded encrypted data to send to a trusted device."
359 "name": "onNetworksChanged",
361 "description": "Fired when the properties change on any of the networks. Sends a list of identifiers for networks whose properties have changed.",
366 "items": { "type": "string" }
371 "name": "onNetworkListChanged",
373 "description": "Fired when the list of networks has changed. Sends a complete list of identifiers for all the current networks.",
378 "items": { "type": "string" }