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

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

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 "type": "function", 346 "type": "function",
347 "parameters": [ 347 "parameters": [
348 { 348 {
349 "name": "encryptedData", 349 "name": "encryptedData",
350 "type": "string" 350 "type": "string"
351 } 351 }
352 ], 352 ],
353 "description": "A callback function that receives base64-encoded enc rypted data to send to a trusted device." 353 "description": "A callback function that receives base64-encoded enc rypted data to send to a trusted device."
354 } 354 }
355 ] 355 ]
356 },
357 {
358 "name": "setWifiTDLSEnabledState",
359 "description": "Enables TDLS for wifi traffic with a specified peer if a vailable.",
360 "parameters": [
361 {
362 "name": "ip_or_mac_address",
363 "type": "string",
364 "description": "The IP or MAC address of the peer with which to enab le a TDLS connection."
365 },
366 {
367 "name": "enabled",
368 "type": "boolean",
369 "description": "If true, enable TDLS, otherwise disable TDLS."
370 },
371 {
372 "name": "callback",
373 "type": "function",
374 "parameters": [
375 {
376 "name": "status",
377 "type": "string"
378 }
379 ],
380 "description": "A callback function that receives a string with an e rror or the current TDLS status. 'Failed' indicates that the request failed (e.g . MAC address lookup failed). 'Timeout' indicates that the lookup timed out. Oth erwise a valid status is returned (see getWifiTDLSStatus)."
381 }
382 ]
383 },
384 {
385 "name": "getWifiTDLSStatus",
386 "description": "Returns the current TDLS status for the specified peer." ,
387 "parameters": [
388 {
389 "name": "ip_or_mac_address",
390 "type": "string",
391 "description": "The IP or MAC address of the peer."
392 },
393 {
394 "name": "callback",
395 "type": "function",
396 "parameters": [
397 {
398 "name": "status",
399 "type": "string"
400 }
401 ],
402 "description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonex istent', or 'Unknown'"
asargent_no_longer_on_chrome 2014/02/14 20:35:08 I just remembered that you can formally declare th
stevenjb 2014/02/14 20:46:59 Is that: "type": "enum": ["Connected", "Disabled",
403 }
404 ]
356 } 405 }
357 ], 406 ],
358 "events": [ 407 "events": [
359 { 408 {
360 "name": "onNetworksChanged", 409 "name": "onNetworksChanged",
361 "type": "function", 410 "type": "function",
362 "description": "Fired when the properties change on any of the networks. Sends a list of identifiers for networks whose properties have changed.", 411 "description": "Fired when the properties change on any of the networks. Sends a list of identifiers for networks whose properties have changed.",
363 "parameters": [ 412 "parameters": [
364 { 413 {
365 "name": "changes", 414 "name": "changes",
(...skipping 10 matching lines...) Expand all
376 { 425 {
377 "name": "changes", 426 "name": "changes",
378 "type": "array", 427 "type": "array",
379 "items": { "type": "string" } 428 "items": { "type": "string" }
380 } 429 }
381 ] 430 ]
382 } 431 }
383 ] 432 ]
384 } 433 }
385 ] 434 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698