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

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: Fixed self review nits 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 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 "nodoc": "true",
9 "functions": [
10 {
11 "name": "getProperties",
12 "description": "Gets the properties of the network with id networkId.",
13 "parameters": [
14 {
15 "name": "networkId",
16 "type": "string",
17 "description": "The unique identifier of the network to get properti es from."
18 },
19 {
20 "name": "callback",
21 "type": "function",
22 "parameters": [
23 {
24 "name": "properties",
25 "type": "object",
26 "additionalProperties": { "type": "any" },
27 "description": "Results of the query for network properties."
28 }
29 ]
30 }
31 ]
32 },
33 {
34 "name": "getVisibleNetworks",
35 "description": "Gets the list of visible networks.",
36 "parameters": [
37 {
38 "name": "type",
39 "type": "string",
40 "enum": ["ethernet", "wifi", "wimax", "bluetooth", "cellular", "vpn" , "all"],
41 "description": "The type of networks to return."
42 },
43 {
44 "name": "callback",
45 "type": "function",
46 "optional": true,
47 "parameters": [
48 {
49 "name": "networkList",
50 "type": "array",
51 "items": { "type": "object",
52 "additionalProperties": { "type": "any"} }
53 }
54 ]
55 }
56 ]
57 },
58 {
59 "name": "requestConnect",
60 "description": "Connects to the network with networkId.",
61 "parameters": [
62 {
63 "name": "networkId",
64 "type": "string",
65 "description": "The unique identifier of the network to connect to."
66 },
67 {
68 "name": "callback",
69 "type": "function",
70 "optional": true,
71 "parameters": [],
72 "description": "A callback function that indicates that a connection has been initiated."
73 }
74 ]
75 },
76 {
77 "name": "requestDisconnect",
78 "description": "Requests a disconnect from the network with networkId.",
79 "parameters": [
80 {
81 "name": "networkId",
82 "type": "string",
83 "description": "The unique identifier of the network to disconnect f rom."
84 },
85 {
86 "name": "callback",
87 "type": "function",
88 "optional": true,
89 "parameters": [],
90 "description": "A callback function that indicates that a disconnect has been initiated."
91 }
92 ]
93 }
94 ]
95 }
96 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698