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

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

Issue 12541007: This adds the setProperties and getState functions to the networking API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload after merge Created 7 years, 9 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 53ecbc9cf65cb0ae4400346bf7e7dc327caa56c5..b6970e714517fe1c68d115fc26be13e1aee91e5a 100644
--- a/chrome/common/extensions/api/networking_private.json
+++ b/chrome/common/extensions/api/networking_private.json
@@ -45,7 +45,7 @@
"functions": [
{
"name": "getProperties",
- "description": "Gets the properties of the network with id networkGuid.",
+ "description": "Gets all the properties of the network with id networkGuid. Includes all properties of the network (read-only and read/write values).",
"parameters": [
{
"name": "networkGuid",
@@ -66,8 +66,51 @@
]
},
{
+ "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.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to set properties on."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "properties",
+ "$ref": "NetworkProperties",
+ "description": "Results of the query for network properties."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "setProperties",
+ "description": "Sets the properties of the network with id networkGuid.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to set properties on."
+ },
+ {
+ "name": "properties",
+ "$ref": "NetworkProperties",
+ "description": "The properties to set on the network."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "getVisibleNetworks",
- "description": "Gets the list of visible networks.",
+ "description": "Gets the list of visible networks, and returns a list of cached, read-only network properties for each.",
"parameters": [
{
"name": "type",

Powered by Google App Engine
This is Rietveld 408576698