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

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

Issue 11975015: This adds a private extension API to use for simple networking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload after merge Created 7 years, 11 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
new file mode 100644
index 0000000000000000000000000000000000000000..d44d0088722fc607f5e8c1592de5a335183f62ed
--- /dev/null
+++ b/chrome/common/extensions/api/networking_private.json
@@ -0,0 +1,96 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace":"networkingPrivate",
+ "nodoc": "true",
+ "functions": [
+ {
+ "name": "getProperties",
+ "description": "Gets the properties of the network with id networkGuid.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to get properties from."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "properties",
+ "type": "object",
+ "additionalProperties": { "type": "any" },
not at google - send to devlin 2013/01/23 22:37:52 Why isn't it possible to enumerate the properties?
Greg Spencer (Chromium) 2013/01/31 16:40:36 It is possible, but will have to be kept in sync w
not at google - send to devlin 2013/02/01 19:09:42 Yeah, I have a strong preference to making this an
Greg Spencer (Chromium) 2013/02/01 23:35:55 No, it's not really practical because we already h
not at google - send to devlin 2013/02/02 00:11:32 Ah, I didn't realise these were rich structures, I
+ "description": "Results of the query for network properties."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "getVisibleNetworks",
+ "description": "Gets the list of visible networks.",
+ "parameters": [
+ {
+ "name": "type",
+ "type": "string",
+ "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"],
+ "description": "The type of networks to return."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "networkList",
+ "type": "array",
+ "items": { "type": "object",
+ "additionalProperties": { "type": "any"} }
not at google - send to devlin 2013/01/23 22:37:52 Ditto. In fact will this be the same data as retur
Greg Spencer (Chromium) 2013/01/31 16:40:36 Good point. I defined it as a type.
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "requestConnect",
not at google - send to devlin 2013/01/23 22:37:52 "request" seems tautological, since an API call is
Greg Spencer (Chromium) 2013/01/31 16:40:36 Well, but the reason it's a "request" is because w
not at google - send to devlin 2013/02/01 19:09:42 Ok - so to make sure I understand - there are two
Greg Spencer (Chromium) 2013/02/01 23:35:55 There is an event coming in a later CL that will p
+ "description": "Connects to the network with networkGuid.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to connect to."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": [],
+ "description": "A callback function that indicates that a connection has been initiated."
+ }
+ ]
+ },
+ {
+ "name": "requestDisconnect",
not at google - send to devlin 2013/01/23 22:37:52 ditto
+ "description": "Requests a disconnect from the network with networkGuid.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to disconnect from."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": [],
+ "description": "A callback function that indicates that a disconnect has been initiated."
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698