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

Side by Side Diff: third_party/closure_compiler/interfaces/networking_private_interface.js

Issue 2891453002: Introduce networkingPrivate.getCertificateLists (Closed)
Patch Set: Clang format Created 3 years, 6 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 2017 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.');
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 * carrier if possible. 163 * carrier if possible.
164 * @param {string} networkGuid The GUID of the Cellular network to activate. 164 * @param {string} networkGuid The GUID of the Cellular network to activate.
165 * @param {string=} carrier Optional name of carrier to activate. 165 * @param {string=} carrier Optional name of carrier to activate.
166 * @param {function():void=} callback Called when the activation request has 166 * @param {function():void=} callback Called when the activation request has
167 * been sent. See note for $(ref:startConnect). 167 * been sent. See note for $(ref:startConnect).
168 * @see https://developer.chrome.com/extensions/networkingPrivate#method-start Activate 168 * @see https://developer.chrome.com/extensions/networkingPrivate#method-start Activate
169 */ 169 */
170 startActivate: assertNotReached, 170 startActivate: assertNotReached,
171 171
172 /** 172 /**
173 * Verifies that the device is a trusted device.
174 * @param {!chrome.networkingPrivate.VerificationProperties} properties
175 * Properties of the destination to use in verifying that it is a
176 * trusted device.
177 * @param {function(boolean):void} callback A callback function that indicates
178 * whether or not the device is a trusted device.
179 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verif yDestination
180 */
181 verifyDestination: assertNotReached,
182
183 /**
184 * Verifies that the device is a trusted device and retrieves encrypted
185 * network credentials.
186 * @param {!chrome.networkingPrivate.VerificationProperties} properties
187 * Properties of the destination to use in verifying that it is a
188 * trusted device.
189 * @param {string} networkGuid The GUID of the Cellular network to activate.
190 * @param {function(string):void} callback A callback function that receives
191 * base64-encoded encrypted credential data to send to a trusted
192 * device.
193 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verif yAndEncryptCredentials
194 */
195 verifyAndEncryptCredentials: assertNotReached,
196
197 /**
198 * Verifies that the device is a trusted device and encrypts supplied data
199 * with device public key.
200 * @param {!chrome.networkingPrivate.VerificationProperties} properties
201 * Properties of the destination to use in verifying that it is a
202 * trusted device.
203 * @param {string} data A string containing the base64-encoded data to
204 * encrypt.
205 * @param {function(string):void} callback A callback function that receives
206 * base64-encoded encrypted data to send to a trusted device.
207 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verif yAndEncryptData
208 */
209 verifyAndEncryptData: assertNotReached,
210
211 /**
212 * Enables TDLS for WiFi traffic with a specified peer if available.
213 * @param {string} ip_or_mac_address The IP or MAC address of the peer with
214 * which to enable a TDLS connection. |enabled| If true, enable TDLS,
215 * otherwise disable TDLS.
216 * @param {boolean} enabled
217 * @param {function(string):void=} callback A callback function that receives
218 * a string with an error or the current TDLS status. 'Failed'
219 * indicates that the request failed (e.g. MAC address lookup failed).
220 * 'Timeout' indicates that the lookup timed out. Otherwise a valid
221 * status is returned (see $(ref:getWifiTDLSStatus)).
222 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setWi fiTDLSEnabledState
223 */
224 setWifiTDLSEnabledState: assertNotReached,
225
226 /**
227 * Returns the current TDLS status for the specified peer.
228 * @param {string} ip_or_mac_address The IP or MAC address of the peer.
229 * @param {function(string):void} callback A callback function that receives a
230 * string with the current TDLS status which can be 'Connected',
231 * 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'.
232 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getWi fiTDLSStatus
233 */
234 getWifiTDLSStatus: assertNotReached,
235
236 /**
237 * Returns captive portal status for the network matching 'networkGuid'. 173 * Returns captive portal status for the network matching 'networkGuid'.
238 * @param {string} networkGuid The GUID of the network to get captive portal 174 * @param {string} networkGuid The GUID of the network to get captive portal
239 * status for. 175 * status for.
240 * @param {function(!chrome.networkingPrivate.CaptivePortalStatus):void} 176 * @param {function(!chrome.networkingPrivate.CaptivePortalStatus):void}
241 * callback A callback function that returns the results of the query for 177 * callback A callback function that returns the results of the query for
242 * network captive portal status. 178 * network captive portal status.
243 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getCa ptivePortalStatus 179 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getCa ptivePortalStatus
244 */ 180 */
245 getCaptivePortalStatus: assertNotReached, 181 getCaptivePortalStatus: assertNotReached,
246 182
(...skipping 30 matching lines...) Expand all
277 */ 213 */
278 setCellularSimState: assertNotReached, 214 setCellularSimState: assertNotReached,
279 215
280 /** 216 /**
281 * Gets the global policy properties. These properties are not expected to 217 * Gets the global policy properties. These properties are not expected to
282 * change during a session. 218 * change during a session.
283 * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback 219 * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback
284 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGl obalPolicy 220 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGl obalPolicy
285 */ 221 */
286 getGlobalPolicy: assertNotReached, 222 getGlobalPolicy: assertNotReached,
223
224 /**
225 * Gets the lists of certificates available for network configuration.
226 * @param {function(!chrome.networkingPrivate.CertificateLists):void} callback
227 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getCe rtificateLists
228 */
229 getCertificateLists: assertNotReached,
287 }; 230 };
288 231
289 /** 232 /**
290 * Fired when the properties change on any of the networks. Sends a list of 233 * Fired when the properties change on any of the networks. Sends a list of
291 * GUIDs for networks whose properties have changed. 234 * GUIDs for networks whose properties have changed.
292 * @type {!ChromeEvent} 235 * @type {!ChromeEvent}
293 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged 236 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onNetwor ksChanged
294 */ 237 */
295 NetworkingPrivate.prototype.onNetworksChanged; 238 NetworkingPrivate.prototype.onNetworksChanged;
296 239
(...skipping 13 matching lines...) Expand all
310 */ 253 */
311 NetworkingPrivate.prototype.onDeviceStateListChanged; 254 NetworkingPrivate.prototype.onDeviceStateListChanged;
312 255
313 /** 256 /**
314 * Fired when a portal detection for a network completes. Sends the guid of the 257 * Fired when a portal detection for a network completes. Sends the guid of the
315 * network and the corresponding captive portal status. 258 * network and the corresponding captive portal status.
316 * @type {!ChromeEvent} 259 * @type {!ChromeEvent}
317 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted 260 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted
318 */ 261 */
319 NetworkingPrivate.prototype.onPortalDetectionCompleted; 262 NetworkingPrivate.prototype.onPortalDetectionCompleted;
263
264 /**
265 * Fired when any certificate list has changed..
266 * @type {!ChromeEvent}
267 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onCertif icateListsChanged
268 */
269 NetworkingPrivate.prototype.onCertificateListsChanged;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/externs/networking_private.js ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698