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": [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.", |
| 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"], |
| 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'." |
| 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" |
| 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).", |
| 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", |
(...skipping 266 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 |