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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 }, | 51 }, |
| 52 "deviceBssid": { | 52 "deviceBssid": { |
| 53 "type": "string", | 53 "type": "string", |
| 54 "description": "A string containing the BSSID of the device. Only s et if the device has already been setup." | 54 "description": "A string containing the BSSID of the device. Only s et if the device has already been setup." |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 }, | 57 }, |
| 58 { | 58 { |
| 59 "id": "NetworkType", | 59 "id": "NetworkType", |
| 60 "type": "string", | 60 "type": "string", |
| 61 "enum": ["Ethernet", "WiFi", "Cellular"] | 61 "enum": ["All", "Bluetooth", "Cellular", "Ethernet", "VPN", "Wireless", "WiFi", "Wimax"] |
| 62 }, | 62 }, |
| 63 { | 63 { |
| 64 "id": "CaptivePortalStatus", | 64 "id": "CaptivePortalStatus", |
| 65 "type": "string", | 65 "type": "string", |
| 66 "enum": ["Unknown", "Offline", "Online", "Portal", "ProxyAuthRequired"] | 66 "enum": ["Unknown", "Offline", "Online", "Portal", "ProxyAuthRequired"] |
| 67 } | 67 } |
| 68 ], | 68 ], |
| 69 "functions": [ | 69 "functions": [ |
| 70 { | 70 { |
| 71 "name": "getProperties", | 71 "name": "getProperties", |
| (...skipping 34 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. The follo wing properties are returned for all networks: GUID, Type, Name, WiFi.Security. Additional properties are provided for visible networks: ConnectionState, ErrorS tate, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, 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. A filter is provided to specify the type of networks re turned and to limit the number of networks. Networks are ordered by the system b ased on their priority, with connected or connecting networks listed first.", | |
| 186 "parameters": [ | |
| 187 { | |
| 188 "name": "filter", | |
| 189 "type": "object", | |
| 190 "properties": { | |
| 191 "networkType": { | |
| 192 "$ref": "NetworkType", | |
|
pneubeck (no reviews)
2014/05/16 13:18:55
replace tabs (\t) by spaces (everywhere in this fi
stevenjb
2014/05/16 17:35:23
Done.
| |
| 193 "description": "The type of networks to return." | |
| 194 }, | |
| 195 "visible": { | |
| 196 "type": "boolean", | |
| 197 "optional": true, | |
| 198 "description": "If true, only include visible (physically connec ted or in-range) networks. Defaults to 'false'." | |
| 199 }, | |
| 200 "configured": { | |
| 201 "type": "boolean", | |
| 202 "optional": true, | |
| 203 "description": "If true, only include configured (saved) network s. Defaults to 'false'." | |
| 204 }, | |
| 205 "limit": { | |
| 206 "type": "integer", | |
| 207 "optional": true, | |
| 208 "description": "Maximum number of networks to return. Defaults t o 1000. Use 0 for no limit." | |
| 209 } | |
| 210 } | |
| 211 }, | |
| 212 { | |
| 213 "name": "callback", | |
| 214 "type": "function", | |
| 215 "optional": true, | |
| 216 "parameters": [ | |
| 217 { | |
| 218 "name": "networkList", | |
| 219 "type": "array", | |
| 220 "items": { "$ref": "NetworkProperties" } | |
| 221 } | |
| 222 ] | |
| 223 } | |
| 224 ] | |
| 225 }, | |
| 226 { | |
| 184 "name": "getVisibleNetworks", | 227 "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", | 228 » "deprecated": "Please use $(ref:networkingPrivate.getNetworks) with filt er.visble = true", |
|
pneubeck (no reviews)
2014/05/16 13:18:55
nit: '.' at the end.
stevenjb
2014/05/16 17:35:23
Done.
| |
| 229 "description": "Returns a list of visible network objects with the same properties provided by getState.", | |
| 186 "parameters": [ | 230 "parameters": [ |
| 187 { | 231 { |
| 188 "name": "type", | 232 "name": "networkType", |
| 189 "type": "string", | 233 "$ref": "NetworkType", |
| 190 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"], | |
| 191 "description": "The type of networks to return." | 234 "description": "The type of networks to return." |
| 192 }, | 235 }, |
| 193 { | 236 { |
| 194 "name": "callback", | 237 "name": "callback", |
| 195 "type": "function", | 238 "type": "function", |
| 196 "optional": true, | 239 "optional": true, |
| 197 "parameters": [ | 240 "parameters": [ |
| 198 { | 241 { |
| 199 "name": "networkList", | 242 "name": "networkList", |
| 200 "type": "array", | 243 "type": "array", |
| 201 "items": { "$ref": "NetworkProperties" } | 244 "items": { "$ref": "NetworkProperties" } |
| 202 } | 245 } |
| 203 ] | 246 ] |
| 204 } | 247 } |
| 205 ] | 248 ] |
| 206 }, | 249 }, |
| 207 { | 250 { |
| 208 "name": "getEnabledNetworkTypes", | 251 "name": "getEnabledNetworkTypes", |
| 209 "description": "Returns a list of the enabled network type.", | 252 "description": "Returns a list of the enabled network types. Note: this only returns discrete types that can be enabled or disabled: Cellular, Ethernet, WiFi, Wimax.", |
| 210 "parameters": [ | 253 "parameters": [ |
| 211 { | 254 { |
| 212 "name": "callback", | 255 "name": "callback", |
| 213 "type": "function", | 256 "type": "function", |
| 214 "optional": true, | 257 "optional": true, |
| 215 "parameters": [ | 258 "parameters": [ |
| 216 { | 259 { |
| 217 "name": "networkList", | 260 "name": "enabledTypes", |
| 218 "type": "array", | 261 "type": "array", |
| 219 "items": { "$ref": "NetworkType" } | 262 "items": { "$ref": "NetworkType" } |
| 220 } | 263 } |
| 221 ] | 264 ] |
| 222 } | 265 } |
| 223 ] | 266 ] |
| 224 }, | 267 }, |
| 225 { | 268 { |
| 226 "name": "enableNetworkType", | 269 "name": "enableNetworkType", |
| 227 "description": "Enable the specified network type.", | 270 "description": "Enable the specified network type. Note, the type might represent multiple", |
|
pneubeck (no reviews)
2014/05/16 13:18:55
nit: '.' at the end.
stevenjb
2014/05/16 17:35:23
Done.
| |
| 228 "parameters": [ | 271 "parameters": [ |
| 229 { | 272 { |
| 230 "name": "networkType", | 273 "name": "networkType", |
| 231 "$ref": "NetworkType" | 274 "$ref": "NetworkType" |
| 232 } | 275 } |
| 233 ] | 276 ] |
| 234 }, | 277 }, |
| 235 { | 278 { |
| 236 "name": "disableNetworkType", | 279 "name": "disableNetworkType", |
| 237 "description": "Disable the specified network type.", | 280 "description": "Disable the specified network type.", |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 }, | 510 }, |
| 468 { | 511 { |
| 469 "name": "status", | 512 "name": "status", |
| 470 "$ref": "CaptivePortalStatus" | 513 "$ref": "CaptivePortalStatus" |
| 471 } | 514 } |
| 472 ] | 515 ] |
| 473 } | 516 } |
| 474 ] | 517 ] |
| 475 } | 518 } |
| 476 ] | 519 ] |
| OLD | NEW |