Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9247)

Unified Diff: chrome/common/extensions/api/networking_private.json

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/networking_private.json
diff --git a/chrome/common/extensions/api/networking_private.json b/chrome/common/extensions/api/networking_private.json
index db603ccf76241100603be8fa2a5cd8c4010b39b6..dd3b9ac1644121231bf64f7dbaec35d488b28ed5 100644
--- a/chrome/common/extensions/api/networking_private.json
+++ b/chrome/common/extensions/api/networking_private.json
@@ -113,7 +113,7 @@
},
{
"name": "getState",
- "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.",
+ "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 the following properties: GUID, Type, Name, ConnectionState, ErrorState, WiFi.Security, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, Cellular.RoamingState. Cellular.OutOfCredits",
"parameters": [
{
"name": "networkGuid",
@@ -181,13 +181,58 @@
]
},
{
+ "name": "getNetworks",
+ "description": "Returns a list of network objects with the same properties provided by getState.",
+ "parameters": [
+ {
+ "name": "filter",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["All", "Bluetooth", "Cellular", "Ethernet", "VPN", "Wireless", "WiFi", "WiMax"],
+ "description": "The type of networks to return."
+ },
+ "visible": {
+ "type": "boolean",
+ "optional": true,
+ "description": "If true, only include visible (physically connected or in-range) networks. Defaults to 'false'."
tbarzic 2014/05/13 19:02:58 I'd lose '' around false
+ },
+ "configured": {
+ "type": "boolean",
+ "optional": true,
+ "description": "If true, only include configured (saved) networks. Defaults to 'false'."
+ },
+ "limit": {
+ "type": "integer",
+ "optional": true,
+ "description": "Maximum number of networks to return. Default: 1000"
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "networkList",
+ "type": "array",
+ "items": { "$ref": "NetworkProperties" }
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "getVisibleNetworks",
- "description": "Returns a list of visible network objects with the following ONC properties: GUID, Type, Name, ConnectionState, ErrorState, WiFi.Security, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, Cellular.RoamingState. Cellular.OutOfCredits",
+ "deprecated": "Please Use $(ref:networkingPrivate.getNetworks).",
tbarzic 2014/05/13 19:02:58 replace leading /t with ws
+ "description": "Returns a list of visible network objects with the same properties provided by getState.",
"parameters": [
{
"name": "type",
"type": "string",
- "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"],
+ "enum": ["All", "Bluetooth", "Cellular", "Ethernet", "VPN", "Wireless", "WiFi", "WiMax"],
"description": "The type of networks to return."
},
{

Powered by Google App Engine
This is Rietveld 408576698