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

Unified Diff: third_party/closure_compiler/externs/networking_private.js

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/networking_private.js
diff --git a/third_party/closure_compiler/externs/networking_private.js b/third_party/closure_compiler/externs/networking_private.js
index 5c7c329a3078d0805f12101b761d50a793d6d40f..a1ec4ea6407a712a1a6eb084088a74fd7ccf0191 100644
--- a/third_party/closure_compiler/externs/networking_private.js
+++ b/third_party/closure_compiler/externs/networking_private.js
@@ -1012,6 +1012,15 @@ chrome.networkingPrivate.VerificationProperties;
chrome.networkingPrivate.NetworkFilter;
/**
+ * @typedef {{
+ * AllowOnlyPolicyNetworksToAutoconnect: (boolean|undefined),
+ * AllowOnlyPolicyNetworksToConnect: (boolean|undefined)
+ * }}
+ * @see https://developer.chrome.com/extensions/networkingPrivate#type-GlobalPolicy
+ */
+chrome.networkingPrivate.GlobalPolicy;
+
+/**
* Gets all the properties of the network with id networkGuid. Includes all
* properties of the network (read-only and read/write values).
* @param {string} networkGuid The GUID of the network to get properties for.
@@ -1290,6 +1299,14 @@ chrome.networkingPrivate.unlockCellularSim = function(networkGuid, pin, puk, cal
chrome.networkingPrivate.setCellularSimState = function(networkGuid, simState, callback) {};
/**
+ * Gets the global policy properties. These properties are not expected to
+ * change during a session.
+ * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback
+ * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGlobalPolicy
+ */
+chrome.networkingPrivate.getGlobalPolicy = function(callback) {};
+
+/**
* Fired when the properties change on any of the networks. Sends a list of
* GUIDs for networks whose properties have changed.
* @type {!ChromeEvent}

Powered by Google App Engine
This is Rietveld 408576698