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

Side by Side Diff: third_party/closure_compiler/interfaces/networking_private_interface.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 // This file was generated by: 5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py. 6 // ./tools/json_schema_compiler/compiler.py.
7 7
8 /** @fileoverview Interface for networkingPrivate that can be overriden. */ 8 /** @fileoverview Interface for networkingPrivate that can be overriden. */
9 9
10 assertNotReached('Interface file for Closure Compiler should not be executed.'); 10 assertNotReached('Interface file for Closure Compiler should not be executed.');
11 11
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 */ 244 */
245 getCaptivePortalStatus: assertNotReached, 245 getCaptivePortalStatus: assertNotReached,
246 246
247 /** 247 /**
248 * Unlocks a Cellular SIM card. * If the SIM is PIN locked, |pin| will be used 248 * Unlocks a Cellular SIM card. * If the SIM is PIN locked, |pin| will be used
249 * to unlock the SIM and the |puk| argument will be ignored if provided. * 249 * to unlock the SIM and the |puk| argument will be ignored if provided. *
250 * If the SIM is PUK locked, |puk| and |pin| must be provided. If the 250 * If the SIM is PUK locked, |puk| and |pin| must be provided. If the
251 * operation succeeds (|puk| is valid), the PIN will be set to |pin|. (If 251 * operation succeeds (|puk| is valid), the PIN will be set to |pin|. (If
252 * |pin| is empty or invalid the operation will fail). 252 * |pin| is empty or invalid the operation will fail).
253 * @param {string} networkGuid The GUID of the cellular network to unlock. 253 * @param {string} networkGuid The GUID of the cellular network to unlock.
254 * If empty, the default cellular device will be used.
254 * @param {string} pin The current SIM PIN, or the new PIN if PUK is provided. 255 * @param {string} pin The current SIM PIN, or the new PIN if PUK is provided.
255 * @param {string=} puk The operator provided PUK for unblocking a blocked 256 * @param {string=} puk The operator provided PUK for unblocking a blocked
256 * SIM. 257 * SIM.
257 * @param {function():void=} callback Called when the operation has completed. 258 * @param {function():void=} callback Called when the operation has completed.
258 * @see https://developer.chrome.com/extensions/networkingPrivate#method-unloc kCellularSim 259 * @see https://developer.chrome.com/extensions/networkingPrivate#method-unloc kCellularSim
259 */ 260 */
260 unlockCellularSim: assertNotReached, 261 unlockCellularSim: assertNotReached,
261 262
262 /** 263 /**
263 * Sets whether or not SIM locking is enabled (i.e a PIN will be required when 264 * Sets whether or not SIM locking is enabled (i.e a PIN will be required when
264 * the device is powered) and changes the PIN if a new PIN is specified. If 265 * the device is powered) and changes the PIN if a new PIN is specified. If
265 * the new PIN is provided but not valid (e.g. too short) the operation will 266 * the new PIN is provided but not valid (e.g. too short) the operation will
266 * fail. This will not lock the SIM; that is handled automatically by the 267 * fail. This will not lock the SIM; that is handled automatically by the
267 * device. NOTE: If the SIM is locked, it must first be unlocked with 268 * device. NOTE: If the SIM is locked, it must first be unlocked with
268 * unlockCellularSim() before this can be called (otherwise it will fail and 269 * unlockCellularSim() before this can be called (otherwise it will fail and
269 * chrome.runtime.lastError will be set to Error.SimLocked). 270 * chrome.runtime.lastError will be set to Error.SimLocked).
270 * @param {string} networkGuid The GUID of the cellular network to set the SIM 271 * @param {string} networkGuid The GUID of the cellular network to set the SIM
271 * state of. 272 * state of. If empty, the default cellular device will be used.
272 * @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state 273 * @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state
273 * to set. 274 * to set.
274 * @param {function():void=} callback Called when the operation has completed. 275 * @param {function():void=} callback Called when the operation has completed.
275 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setCe llularSimState 276 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setCe llularSimState
276 */ 277 */
277 setCellularSimState: assertNotReached, 278 setCellularSimState: assertNotReached,
279
280 /**
281 * Gets the global policy properties. These properties are not expected to
282 * change during a session.
283 * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback
284 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGl obalPolicy
285 */
286 getGlobalPolicy: assertNotReached,
278 }; 287 };
279 288
280 /** 289 /**
281 * Fired when the properties change on any of the networks. Sends a list of 290 * Fired when the properties change on any of the networks. Sends a list of
282 * GUIDs for networks whose properties have changed. 291 * GUIDs for networks whose properties have changed.
283 * @type {!ChromeEvent} 292 * @type {!ChromeEvent}
284 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged 293 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged
285 */ 294 */
286 NetworkingPrivate.prototype.onNetworksChanged; 295 NetworkingPrivate.prototype.onNetworksChanged;
287 296
(...skipping 13 matching lines...) Expand all
301 */ 310 */
302 NetworkingPrivate.prototype.onDeviceStateListChanged; 311 NetworkingPrivate.prototype.onDeviceStateListChanged;
303 312
304 /** 313 /**
305 * Fired when a portal detection for a network completes. Sends the guid of the 314 * Fired when a portal detection for a network completes. Sends the guid of the
306 * network and the corresponding captive portal status. 315 * network and the corresponding captive portal status.
307 * @type {!ChromeEvent} 316 * @type {!ChromeEvent}
308 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted 317 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted
309 */ 318 */
310 NetworkingPrivate.prototype.onPortalDetectionCompleted; 319 NetworkingPrivate.prototype.onPortalDetectionCompleted;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698