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

Side by Side 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 another merge Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace":"networkingPrivate",
8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/networking_private_a pi.h"
10 },
11 "platforms": ["chromeos"],
12 "types" : [
13 {
14 "id": "NetworkProperties",
15 "type": "object",
16 "additionalProperties": { "type": "any" }
17 }
18 ],
19 "functions": [
20 {
21 "name": "getProperties",
22 "description": "Gets the properties of the network with id networkGuid." ,
23 "parameters": [
24 {
25 "name": "networkGuid",
26 "type": "string",
27 "description": "The unique identifier of the network to get properti es from."
28 },
29 {
30 "name": "callback",
31 "type": "function",
32 "parameters": [
33 {
34 "name": "properties",
35 "$ref": "NetworkProperties",
36 "description": "Results of the query for network properties."
37 }
38 ]
39 }
40 ]
41 },
42 {
43 "name": "getVisibleNetworks",
44 "description": "Gets the list of visible networks.",
45 "parameters": [
46 {
47 "name": "type",
48 "type": "string",
49 "enum": ["Ethernet", "WiFi", "Bluetooth", "Cellular", "VPN", "All"],
50 "description": "The type of networks to return."
51 },
52 {
53 "name": "callback",
54 "type": "function",
55 "optional": true,
56 "parameters": [
57 {
58 "name": "networkList",
59 "type": "array",
60 "items": { "$ref": "NetworkProperties" }
61 }
62 ]
63 }
64 ]
65 },
66 {
67 "name": "startConnect",
68 "description": "Starts a connection to the network with networkGuid.",
69 "parameters": [
70 {
71 "name": "networkGuid",
72 "type": "string",
73 "description": "The unique identifier of the network to connect to."
74 },
75 {
76 "name": "callback",
77 "type": "function",
78 "optional": true,
79 "parameters": [],
80 "description": "A callback function that indicates that a connection has been initiated."
81 }
82 ]
83 },
84 {
85 "name": "startDisconnect",
86 "description": "Starts a disconnect from the network with networkGuid.",
87 "parameters": [
88 {
89 "name": "networkGuid",
90 "type": "string",
91 "description": "The unique identifier of the network to disconnect f rom."
92 },
93 {
94 "name": "callback",
95 "type": "function",
96 "optional": true,
97 "parameters": [],
98 "description": "A callback function that indicates that a disconnect has been initiated."
99 }
100 ]
101 }
102 ]
103 }
104 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698