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

Unified Diff: chrome/common/extensions/api/networking_private.json

Issue 219333002: Added method getCaptivePortalStatus to networkingPrivate extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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 5ef6d7bde67d87f8fcc161e50def9c90b3ae77ae..dee2866bb3fe6fe4972835cfbe71f0e0703d6734 100644
--- a/chrome/common/extensions/api/networking_private.json
+++ b/chrome/common/extensions/api/networking_private.json
@@ -59,6 +59,11 @@
"id": "NetworkType",
"type": "string",
"enum": ["Ethernet", "WiFi", "Cellular"]
+ },
+ {
+ "id": "CaptivePortalStatus",
+ "type": "string",
+ "enum": ["Unknown", "Offline", "Online", "Portal", "ProxyAuthRequired"]
}
],
"functions": [
@@ -402,6 +407,28 @@
"description": "A callback function that receives a string with the current TDLS status which can be 'Connected', 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'"
}
]
+ },
+ {
+ "name": "getCaptivePortalStatus",
+ "description": "Returns captive portal status for the network with networkGuid.",
+ "parameters": [
+ {
+ "name": "networkGuid",
+ "type": "string",
+ "description": "The unique identifier of the network to get captive portal status."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "status",
+ "$ref": "CaptivePortalStatus",
+ "description": "Results of the query for network captive portal status."
+ }
+ ]
+ }
+ ]
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698