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

Side by Side Diff: chrome/common/extensions/api/networking_private.json

Issue 260083007: Replace chrome://network implementation with networkConfig API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace":"networkingPrivate", 7 "namespace":"networkingPrivate",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ king_private_api.h" 10 "implemented_in": "chrome/browser/extensions/api/networking_private/networ king_private_api.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "name": "properties", 106 "name": "properties",
107 "$ref": "ManagedNetworkProperties", 107 "$ref": "ManagedNetworkProperties",
108 "description": "Results of the query for managed network propert ies." 108 "description": "Results of the query for managed network propert ies."
109 } 109 }
110 ] 110 ]
111 } 111 }
112 ] 112 ]
113 }, 113 },
114 { 114 {
115 "name": "getState", 115 "name": "getState",
116 "description": "Gets the cached read-only properties of the network with id networkGuid. This is meant to be a higher performance function than getProp erties, which requires a round trip to query the networking subsystem. It only returns a subset of the properties returned by getProperties.", 116 "description": "Gets the cached read-only properties of the network with id networkGuid. This is meant to be a higher performance function than getProp erties, which requires a round trip to query the networking subsystem. It retur ns a subset of the properties returned by getProperties (see 'proerties')",
pneubeck (no reviews) 2014/05/08 09:21:43 nit: proerties -> properties
117 "parameters": [ 117 "parameters": [
118 { 118 {
119 "name": "networkGuid", 119 "name": "networkGuid",
120 "type": "string", 120 "type": "string",
121 "description": "The unique identifier of the network to set properti es on." 121 "description": "The unique identifier of the network to set properti es on."
122 }, 122 },
123 { 123 {
124 "name": "callback", 124 "name": "callback",
125 "type": "function", 125 "type": "function",
126 "parameters": [ 126 "parameters": [
127 { 127 {
128 "name": "properties", 128 "name": "properties",
129 "$ref": "NetworkProperties", 129 "$ref": "NetworkProperties",
130 "description": "Results of the query for network properties." 130 "description": "Result of the query for network properties. Incl udes the following values: GUID, Type, Name, ConnectionState, ErrorState, WiFi.S ecurity, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationSta te, Cellular.RoamingState. Cellular.OutOfCredits"
pneubeck (no reviews) 2014/05/08 09:21:43 nit: RoamingState. -> RoamingState, ( . vs. ,
131 } 131 }
132 ] 132 ]
133 } 133 }
134 ] 134 ]
135 }, 135 },
136 { 136 {
137 "name": "setProperties", 137 "name": "setProperties",
138 "description": "Sets the properties of the network with id networkGuid." , 138 "description": "Sets the properties of the network with id networkGuid." ,
139 "parameters": [ 139 "parameters": [
140 { 140 {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "name": "networkList", 199 "name": "networkList",
200 "type": "array", 200 "type": "array",
201 "items": { "$ref": "NetworkProperties" } 201 "items": { "$ref": "NetworkProperties" }
202 } 202 }
203 ] 203 ]
204 } 204 }
205 ] 205 ]
206 }, 206 },
207 { 207 {
208 "name": "getEnabledNetworkTypes", 208 "name": "getEnabledNetworkTypes",
209 "description": "Returns a list of the enabled network type.", 209 "description": "Returns a list of the enabled network types.",
210 "parameters": [ 210 "parameters": [
211 { 211 {
212 "name": "callback", 212 "name": "callback",
213 "type": "function", 213 "type": "function",
214 "optional": true, 214 "optional": true,
215 "parameters": [ 215 "parameters": [
216 { 216 {
217 "name": "networkList", 217 "name": "enabledTypes",
218 "type": "array", 218 "type": "array",
219 "items": { "$ref": "NetworkType" } 219 "items": { "$ref": "NetworkType" }
220 } 220 }
221 ] 221 ]
222 } 222 }
223 ] 223 ]
224 }, 224 },
225 { 225 {
226 "name": "enableNetworkType", 226 "name": "enableNetworkType",
227 "description": "Enable the specified network type.", 227 "description": "Enable the specified network type.",
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 "name": "status", 403 "name": "status",
404 "type": "string" 404 "type": "string"
405 } 405 }
406 ], 406 ],
407 "description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonex istent', or 'Unknown'" 407 "description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonex istent', or 'Unknown'"
408 } 408 }
409 ] 409 ]
410 }, 410 },
411 { 411 {
412 "name": "getCaptivePortalStatus", 412 "name": "getCaptivePortalStatus",
413 "description": "Returns captive portal status for the network with netwo rkGuid.", 413 "description": "Returns captive portal status for the network with netwo rkPath.",
pneubeck (no reviews) 2014/05/08 09:21:43 hm. shouldn't this and the first parameter be 'net
414 "parameters": [ 414 "parameters": [
415 { 415 {
416 "name": "networkPath", 416 "name": "networkPath",
417 "type": "string", 417 "type": "string",
418 "description": "The path of the network to get captive portal status ." 418 "description": "The path of the network to get captive portal status ."
419 }, 419 },
420 { 420 {
421 "name": "callback", 421 "name": "callback",
422 "type": "function", 422 "type": "function",
423 "parameters": [ 423 "parameters": [
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 }, 467 },
468 { 468 {
469 "name": "status", 469 "name": "status",
470 "$ref": "CaptivePortalStatus" 470 "$ref": "CaptivePortalStatus"
471 } 471 }
472 ] 472 ]
473 } 473 }
474 ] 474 ]
475 } 475 }
476 ] 476 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698