| 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 }, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 "deviceSerial": { | 38 "deviceSerial": { |
| 39 "type": "string", | 39 "type": "string", |
| 40 "description": "A string containing the serial number of the device.
" | 40 "description": "A string containing the serial number of the device.
" |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 ], | 44 ], |
| 45 "functions": [ | 45 "functions": [ |
| 46 { | 46 { |
| 47 "name": "getProperties", | 47 "name": "getProperties", |
| 48 "description": "Gets the properties of the network with id networkGuid."
, | 48 "description": "Gets all the properties of the network with id networkGu
id. Includes all properties of the network (read-only and read/write values).", |
| 49 "parameters": [ | 49 "parameters": [ |
| 50 { | 50 { |
| 51 "name": "networkGuid", | 51 "name": "networkGuid", |
| 52 "type": "string", | 52 "type": "string", |
| 53 "description": "The unique identifier of the network to get properti
es from." | 53 "description": "The unique identifier of the network to get properti
es from." |
| 54 }, | 54 }, |
| 55 { | 55 { |
| 56 "name": "callback", | 56 "name": "callback", |
| 57 "type": "function", | 57 "type": "function", |
| 58 "parameters": [ | 58 "parameters": [ |
| 59 { | 59 { |
| 60 "name": "properties", | 60 "name": "properties", |
| 61 "$ref": "NetworkProperties", | 61 "$ref": "NetworkProperties", |
| 62 "description": "Results of the query for network properties." | 62 "description": "Results of the query for network properties." |
| 63 } | 63 } |
| 64 ] | 64 ] |
| 65 } | 65 } |
| 66 ] | 66 ] |
| 67 }, | 67 }, |
| 68 { | 68 { |
| 69 "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.", |
| 71 "parameters": [ |
| 72 { |
| 73 "name": "networkGuid", |
| 74 "type": "string", |
| 75 "description": "The unique identifier of the network to set properti
es on." |
| 76 }, |
| 77 { |
| 78 "name": "callback", |
| 79 "type": "function", |
| 80 "parameters": [ |
| 81 { |
| 82 "name": "properties", |
| 83 "$ref": "NetworkProperties", |
| 84 "description": "Results of the query for network properties." |
| 85 } |
| 86 ] |
| 87 } |
| 88 ] |
| 89 }, |
| 90 { |
| 91 "name": "setProperties", |
| 92 "description": "Sets the properties of the network with id networkGuid."
, |
| 93 "parameters": [ |
| 94 { |
| 95 "name": "networkGuid", |
| 96 "type": "string", |
| 97 "description": "The unique identifier of the network to set properti
es on." |
| 98 }, |
| 99 { |
| 100 "name": "properties", |
| 101 "$ref": "NetworkProperties", |
| 102 "description": "The properties to set on the network." |
| 103 }, |
| 104 { |
| 105 "name": "callback", |
| 106 "type": "function", |
| 107 "parameters": [] |
| 108 } |
| 109 ] |
| 110 }, |
| 111 { |
| 69 "name": "getVisibleNetworks", | 112 "name": "getVisibleNetworks", |
| 70 "description": "Gets the list of visible networks.", | 113 "description": "Gets the list of visible networks, and returns a list of
cached, read-only network properties for each.", |
| 71 "parameters": [ | 114 "parameters": [ |
| 72 { | 115 { |
| 73 "name": "type", | 116 "name": "type", |
| 74 "type": "string", | 117 "type": "string", |
| 75 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], | 118 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], |
| 76 "description": "The type of networks to return." | 119 "description": "The type of networks to return." |
| 77 }, | 120 }, |
| 78 { | 121 { |
| 79 "name": "callback", | 122 "name": "callback", |
| 80 "type": "function", | 123 "type": "function", |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 { | 266 { |
| 224 "name": "changes", | 267 "name": "changes", |
| 225 "type": "array", | 268 "type": "array", |
| 226 "items": { "type": "string" } | 269 "items": { "type": "string" } |
| 227 } | 270 } |
| 228 ] | 271 ] |
| 229 } | 272 } |
| 230 ] | 273 ] |
| 231 } | 274 } |
| 232 ] | 275 ] |
| OLD | NEW |