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

Unified 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: Disable TDLS tests on non-chromeos 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 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
index d80f0bd602516c24cf02875459a1c4af5877caab..5ef6d7bde67d87f8fcc161e50def9c90b3ae77ae 100644
--- a/chrome/common/extensions/api/networking_private.json
+++ b/chrome/common/extensions/api/networking_private.json
@@ -353,6 +353,55 @@
"description": "A callback function that receives base64-encoded encrypted data to send to a trusted device."
}
]
+ },
+ {
+ "name": "setWifiTDLSEnabledState",
+ "description": "Enables TDLS for wifi traffic with a specified peer if available.",
+ "parameters": [
+ {
+ "name": "ip_or_mac_address",
+ "type": "string",
+ "description": "The IP or MAC address of the peer with which to enable a TDLS connection."
+ },
+ {
+ "name": "enabled",
+ "type": "boolean",
+ "description": "If true, enable TDLS, otherwise disable TDLS."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "status",
+ "type": "string"
+ }
+ ],
+ "description": "A callback function that receives a string with an error or the current TDLS status. 'Failed' indicates that the request failed (e.g. MAC address lookup failed). 'Timeout' indicates that the lookup timed out. Otherwise a valid status is returned (see getWifiTDLSStatus)."
+ }
+ ]
+ },
+ {
+ "name": "getWifiTDLSStatus",
+ "description": "Returns the current TDLS status for the specified peer.",
+ "parameters": [
+ {
+ "name": "ip_or_mac_address",
+ "type": "string",
+ "description": "The IP or MAC address of the peer."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "status",
+ "type": "string"
+ }
+ ],
+ "description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'"
+ }
+ ]
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698