Chromium Code Reviews| 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 "description": "none", | 8 "description": "none", |
| 9 "compiler_options": { | 9 "compiler_options": { |
| 10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ king_private_api.h" | 10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ king_private_api.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 "name": "properties", | 106 "name": "properties", |
| 107 "$ref": "ManagedNetworkProperties", | 107 "$ref": "ManagedNetworkProperties", |
| 108 "description": "Results of the query for managed network propert ies." | 108 "description": "Results of the query for managed network propert ies." |
| 109 } | 109 } |
| 110 ] | 110 ] |
| 111 } | 111 } |
| 112 ] | 112 ] |
| 113 }, | 113 }, |
| 114 { | 114 { |
| 115 "name": "getState", | 115 "name": "getState", |
| 116 "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.", | 116 "description": "Gets the cached read-only properties of the network with id networkGuid. This is meant to be a higher performance function than getPrope rties, which requires a round trip to query the networking subsystem. It only r eturns the following properties: GUID, Type, Name, ConnectionState, ErrorState, WiFi.Security, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.Activat ionState, Cellular.RoamingState, Cellular.OutOfCredits", |
| 117 "parameters": [ | 117 "parameters": [ |
| 118 { | 118 { |
| 119 "name": "networkGuid", | 119 "name": "networkGuid", |
| 120 "type": "string", | 120 "type": "string", |
| 121 "description": "The unique identifier of the network to set properti es on." | 121 "description": "The unique identifier of the network to set properti es on." |
| 122 }, | 122 }, |
| 123 { | 123 { |
| 124 "name": "callback", | 124 "name": "callback", |
| 125 "type": "function", | 125 "type": "function", |
| 126 "parameters": [ | 126 "parameters": [ |
| 127 { | 127 { |
| 128 "name": "properties", | 128 "name": "properties", |
| 129 "$ref": "NetworkProperties", | 129 "$ref": "NetworkProperties", |
| 130 "description": "Results of the query for network properties." | 130 "description": "Results of the query for network state propertie s." |
| 131 } | 131 } |
| 132 ] | 132 ] |
| 133 } | 133 } |
| 134 ] | 134 ] |
| 135 }, | 135 }, |
| 136 { | 136 { |
| 137 "name": "setProperties", | 137 "name": "setProperties", |
| 138 "description": "Sets the properties of the network with id networkGuid." , | 138 "description": "Sets the properties of the network with id networkGuid." , |
| 139 "parameters": [ | 139 "parameters": [ |
| 140 { | 140 { |
| 141 "name": "networkGuid", | 141 "name": "networkGuid", |
| 142 "type": "string", | 142 "type": "string", |
| 143 "description": "The unique identifier of the network to set properti es on." | 143 "description": "The unique identifier of the network to set properti es on." |
| 144 }, | 144 }, |
| 145 { | 145 { |
| 146 "name": "properties", | 146 "name": "properties", |
| 147 "$ref": "NetworkProperties", | 147 "$ref": "NetworkProperties", |
| 148 "description": "The properties to set on the network." | 148 "description": "The properties to set on the network." |
| 149 }, | 149 }, |
| 150 { | 150 { |
| 151 "name": "callback", | 151 "name": "callback", |
| 152 "type": "function", | 152 "type": "function", |
| 153 "parameters": [] | 153 "parameters": [] |
| 154 } | 154 } |
| 155 ] | 155 ] |
| 156 }, | 156 }, |
| 157 { | 157 { |
| 158 "name": "createNetwork", | 158 "name": "createNetwork", |
| 159 "description": "Creates a new network configuration from propeties. If a matching configured network already exists, this will fail. Otherwise returns t he guid of the new network.", | 159 "description": "Creates a new network configuration from properties. If a matching configured network already exists, this will fail. Otherwise returns the guid of the new network.", |
| 160 "parameters": [ | 160 "parameters": [ |
| 161 { | 161 { |
| 162 "name": "shared", | 162 "name": "shared", |
| 163 "type": "boolean", | 163 "type": "boolean", |
| 164 "description": "If true, share this network configuration with other users." | 164 "description": "If true, share this network configuration with other users." |
| 165 }, | 165 }, |
| 166 { | 166 { |
| 167 "name": "properties", | 167 "name": "properties", |
| 168 "$ref": "NetworkProperties", | 168 "$ref": "NetworkProperties", |
| 169 "description": "The properties to configure the new network with." | 169 "description": "The properties to configure the new network with." |
| 170 }, | 170 }, |
| 171 { | 171 { |
| 172 "name": "callback", | 172 "name": "callback", |
| 173 "type": "function", | 173 "type": "function", |
| 174 "parameters": [ | 174 "parameters": [ |
| 175 { | 175 { |
| 176 "name": "networkGuid", | 176 "name": "networkGuid", |
| 177 "type": "string" | 177 "type": "string" |
| 178 } | 178 } |
| 179 ] | 179 ] |
| 180 } | 180 } |
| 181 ] | 181 ] |
| 182 }, | 182 }, |
| 183 { | 183 { |
| 184 "name": "getNetworks", | |
| 185 "description": "Returns a list of network objects with the same properti es provided by getState.", | |
|
pneubeck (no reviews)
2014/05/15 18:28:37
could mention the filter argument
since you allow
stevenjb
2014/05/15 20:12:41
Ah, sure, I'll mention the filter at the top level
| |
| 186 "parameters": [ | |
| 187 { | |
| 188 "name": "filter", | |
| 189 "type": "object", | |
| 190 "properties": { | |
| 191 "type": { | |
| 192 "type": "string", | |
| 193 "enum": ["All", "Bluetooth", "Cellular", "Ethernet", "VPN", "Wir eless", "WiFi", "Wimax"], | |
|
pneubeck (no reviews)
2014/05/15 18:28:37
could you move this to the toplevel , and maybe me
stevenjb
2014/05/15 20:12:41
Ah, so there is, even better. I will unify these,
| |
| 194 "description": "The type of networks to return." | |
| 195 }, | |
| 196 "visible": { | |
| 197 "type": "boolean", | |
| 198 "optional": true, | |
| 199 "description": "If true, only include visible (physically connec ted or in-range) networks. Defaults to 'false'." | |
|
pneubeck (no reviews)
2014/05/15 18:28:37
physically connected or in-range
this doesn't exp
stevenjb
2014/05/15 20:12:41
I'm not entirely certain what the VPN behavior is.
| |
| 200 }, | |
| 201 "configured": { | |
| 202 "type": "boolean", | |
| 203 "optional": true, | |
| 204 "description": "If true, only include configured (saved) network s. Defaults to 'false'." | |
| 205 }, | |
| 206 "limit": { | |
| 207 "type": "integer", | |
| 208 "optional": true, | |
| 209 "description": "Maximum number of networks to return. Default: 1 000" | |
|
pneubeck (no reviews)
2014/05/15 18:28:37
s/Default: /Defaults to /
stevenjb
2014/05/15 20:12:41
Done.
| |
| 210 } | |
| 211 } | |
| 212 }, | |
| 213 { | |
| 214 "name": "callback", | |
| 215 "type": "function", | |
| 216 "optional": true, | |
| 217 "parameters": [ | |
| 218 { | |
| 219 "name": "networkList", | |
| 220 "type": "array", | |
| 221 "items": { "$ref": "NetworkProperties" } | |
| 222 } | |
| 223 ] | |
| 224 } | |
| 225 ] | |
| 226 }, | |
| 227 { | |
| 184 "name": "getVisibleNetworks", | 228 "name": "getVisibleNetworks", |
| 185 "description": "Returns a list of visible network objects with the follo wing ONC properties: GUID, Type, Name, ConnectionState, ErrorState, WiFi.Securit y, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, Ce llular.RoamingState. Cellular.OutOfCredits", | 229 » "deprecated": "Please Use $(ref:networkingPrivate.getNetworks).", |
|
pneubeck (no reviews)
2014/05/15 18:28:37
Use -> use
or remove 'Please'
could mention what
stevenjb
2014/05/15 20:12:41
Done.
| |
| 230 "description": "Returns a list of visible network objects with the same properties provided by getState.", | |
| 186 "parameters": [ | 231 "parameters": [ |
| 187 { | 232 { |
| 188 "name": "type", | 233 "name": "type", |
| 189 "type": "string", | 234 "type": "string", |
| 190 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], | 235 "enum": ["All", "Bluetooth", "Cellular", "Ethernet", "VPN", "Wireles s", "WiFi", "WiMax"], |
| 191 "description": "The type of networks to return." | 236 "description": "The type of networks to return." |
| 192 }, | 237 }, |
| 193 { | 238 { |
| 194 "name": "callback", | 239 "name": "callback", |
| 195 "type": "function", | 240 "type": "function", |
| 196 "optional": true, | 241 "optional": true, |
| 197 "parameters": [ | 242 "parameters": [ |
| 198 { | 243 { |
| 199 "name": "networkList", | 244 "name": "networkList", |
| 200 "type": "array", | 245 "type": "array", |
| 201 "items": { "$ref": "NetworkProperties" } | 246 "items": { "$ref": "NetworkProperties" } |
| 202 } | 247 } |
| 203 ] | 248 ] |
| 204 } | 249 } |
| 205 ] | 250 ] |
| 206 }, | 251 }, |
| 207 { | 252 { |
| 208 "name": "getEnabledNetworkTypes", | 253 "name": "getEnabledNetworkTypes", |
| 209 "description": "Returns a list of the enabled network type.", | 254 "description": "Returns a list of the enabled network types.", |
| 210 "parameters": [ | 255 "parameters": [ |
| 211 { | 256 { |
| 212 "name": "callback", | 257 "name": "callback", |
| 213 "type": "function", | 258 "type": "function", |
| 214 "optional": true, | 259 "optional": true, |
| 215 "parameters": [ | 260 "parameters": [ |
| 216 { | 261 { |
| 217 "name": "networkList", | 262 "name": "enabledTypes", |
| 218 "type": "array", | 263 "type": "array", |
| 219 "items": { "$ref": "NetworkType" } | 264 "items": { "$ref": "NetworkType" } |
| 220 } | 265 } |
| 221 ] | 266 ] |
| 222 } | 267 } |
| 223 ] | 268 ] |
| 224 }, | 269 }, |
| 225 { | 270 { |
| 226 "name": "enableNetworkType", | 271 "name": "enableNetworkType", |
| 227 "description": "Enable the specified network type.", | 272 "description": "Enable the specified network type.", |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 }, | 512 }, |
| 468 { | 513 { |
| 469 "name": "status", | 514 "name": "status", |
| 470 "$ref": "CaptivePortalStatus" | 515 "$ref": "CaptivePortalStatus" |
| 471 } | 516 } |
| 472 ] | 517 ] |
| 473 } | 518 } |
| 474 ] | 519 ] |
| 475 } | 520 } |
| 476 ] | 521 ] |
| OLD | NEW |