networking_private.js 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file was generated by:
  5. // tools/json_schema_compiler/compiler.py.
  6. // NOTE: The format of types has changed. 'FooType' is now
  7. // 'chrome.networkingPrivate.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See https://chromium.googlesource.com/chromium/src/+/main/docs/closure_compilation.md
  10. /** @fileoverview Externs generated from namespace: networkingPrivate */
  11. /** @const */
  12. chrome.networkingPrivate = {};
  13. /**
  14. * @enum {string}
  15. */
  16. chrome.networkingPrivate.ActivationStateType = {
  17. ACTIVATED: 'Activated',
  18. ACTIVATING: 'Activating',
  19. NOT_ACTIVATED: 'NotActivated',
  20. PARTIALLY_ACTIVATED: 'PartiallyActivated',
  21. };
  22. /**
  23. * @enum {string}
  24. */
  25. chrome.networkingPrivate.CaptivePortalStatus = {
  26. UNKNOWN: 'Unknown',
  27. OFFLINE: 'Offline',
  28. ONLINE: 'Online',
  29. PORTAL: 'Portal',
  30. PROXY_AUTH_REQUIRED: 'ProxyAuthRequired',
  31. };
  32. /**
  33. * @enum {string}
  34. */
  35. chrome.networkingPrivate.ConnectionStateType = {
  36. CONNECTED: 'Connected',
  37. CONNECTING: 'Connecting',
  38. NOT_CONNECTED: 'NotConnected',
  39. };
  40. /**
  41. * @enum {string}
  42. */
  43. chrome.networkingPrivate.DeviceStateType = {
  44. UNINITIALIZED: 'Uninitialized',
  45. DISABLED: 'Disabled',
  46. ENABLING: 'Enabling',
  47. ENABLED: 'Enabled',
  48. PROHIBITED: 'Prohibited',
  49. };
  50. /**
  51. * @enum {string}
  52. */
  53. chrome.networkingPrivate.IPConfigType = {
  54. DHCP: 'DHCP',
  55. STATIC: 'Static',
  56. };
  57. /**
  58. * @enum {string}
  59. */
  60. chrome.networkingPrivate.NetworkType = {
  61. ALL: 'All',
  62. CELLULAR: 'Cellular',
  63. ETHERNET: 'Ethernet',
  64. TETHER: 'Tether',
  65. VPN: 'VPN',
  66. WIRELESS: 'Wireless',
  67. WI_FI: 'WiFi',
  68. };
  69. /**
  70. * @enum {string}
  71. */
  72. chrome.networkingPrivate.ProxySettingsType = {
  73. DIRECT: 'Direct',
  74. MANUAL: 'Manual',
  75. PAC: 'PAC',
  76. WPAD: 'WPAD',
  77. };
  78. /**
  79. * @typedef {{
  80. * Active: (boolean|undefined),
  81. * Effective: (string|undefined),
  82. * UserPolicy: (boolean|undefined),
  83. * DevicePolicy: (boolean|undefined),
  84. * UserSetting: (boolean|undefined),
  85. * SharedSetting: (boolean|undefined),
  86. * UserEditable: (boolean|undefined),
  87. * DeviceEditable: (boolean|undefined)
  88. * }}
  89. */
  90. chrome.networkingPrivate.ManagedBoolean;
  91. /**
  92. * @typedef {{
  93. * Active: (number|undefined),
  94. * Effective: (string|undefined),
  95. * UserPolicy: (number|undefined),
  96. * DevicePolicy: (number|undefined),
  97. * UserSetting: (number|undefined),
  98. * SharedSetting: (number|undefined),
  99. * UserEditable: (boolean|undefined),
  100. * DeviceEditable: (boolean|undefined)
  101. * }}
  102. */
  103. chrome.networkingPrivate.ManagedLong;
  104. /**
  105. * @typedef {{
  106. * Active: (string|undefined),
  107. * Effective: (string|undefined),
  108. * UserPolicy: (string|undefined),
  109. * DevicePolicy: (string|undefined),
  110. * UserSetting: (string|undefined),
  111. * SharedSetting: (string|undefined),
  112. * UserEditable: (boolean|undefined),
  113. * DeviceEditable: (boolean|undefined)
  114. * }}
  115. */
  116. chrome.networkingPrivate.ManagedDOMString;
  117. /**
  118. * @typedef {{
  119. * Active: (!Array<string>|undefined),
  120. * Effective: (string|undefined),
  121. * UserPolicy: (!Array<string>|undefined),
  122. * DevicePolicy: (!Array<string>|undefined),
  123. * UserSetting: (!Array<string>|undefined),
  124. * SharedSetting: (!Array<string>|undefined),
  125. * UserEditable: (boolean|undefined),
  126. * DeviceEditable: (boolean|undefined)
  127. * }}
  128. */
  129. chrome.networkingPrivate.ManagedDOMStringList;
  130. /**
  131. * @typedef {{
  132. * Active: (!chrome.networkingPrivate.IPConfigType|undefined),
  133. * Effective: (string|undefined),
  134. * UserPolicy: (!chrome.networkingPrivate.IPConfigType|undefined),
  135. * DevicePolicy: (!chrome.networkingPrivate.IPConfigType|undefined),
  136. * UserSetting: (!chrome.networkingPrivate.IPConfigType|undefined),
  137. * SharedSetting: (!chrome.networkingPrivate.IPConfigType|undefined),
  138. * UserEditable: (boolean|undefined),
  139. * DeviceEditable: (boolean|undefined)
  140. * }}
  141. */
  142. chrome.networkingPrivate.ManagedIPConfigType;
  143. /**
  144. * @typedef {{
  145. * Active: (!chrome.networkingPrivate.ProxySettingsType|undefined),
  146. * Effective: (string|undefined),
  147. * UserPolicy: (!chrome.networkingPrivate.ProxySettingsType|undefined),
  148. * DevicePolicy: (!chrome.networkingPrivate.ProxySettingsType|undefined),
  149. * UserSetting: (!chrome.networkingPrivate.ProxySettingsType|undefined),
  150. * SharedSetting: (!chrome.networkingPrivate.ProxySettingsType|undefined),
  151. * UserEditable: (boolean|undefined),
  152. * DeviceEditable: (boolean|undefined)
  153. * }}
  154. */
  155. chrome.networkingPrivate.ManagedProxySettingsType;
  156. /**
  157. * @typedef {{
  158. * AccessPointName: string,
  159. * Authentication: (string|undefined),
  160. * Language: (string|undefined),
  161. * LocalizedName: (string|undefined),
  162. * Name: (string|undefined),
  163. * Password: (string|undefined),
  164. * Username: (string|undefined)
  165. * }}
  166. */
  167. chrome.networkingPrivate.APNProperties;
  168. /**
  169. * @typedef {{
  170. * AccessPointName: !chrome.networkingPrivate.ManagedDOMString,
  171. * Authentication: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  172. * Language: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  173. * LocalizedName: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  174. * Name: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  175. * Password: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  176. * Username: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  177. * }}
  178. */
  179. chrome.networkingPrivate.ManagedAPNProperties;
  180. /**
  181. * @typedef {{
  182. * Active: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  183. * Effective: (string|undefined),
  184. * UserPolicy: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  185. * DevicePolicy: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  186. * UserSetting: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  187. * SharedSetting: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  188. * UserEditable: (boolean|undefined),
  189. * DeviceEditable: (boolean|undefined)
  190. * }}
  191. */
  192. chrome.networkingPrivate.ManagedAPNList;
  193. /**
  194. * @typedef {{
  195. * Name: string,
  196. * Code: string,
  197. * Country: (string|undefined)
  198. * }}
  199. */
  200. chrome.networkingPrivate.CellularProviderProperties;
  201. /**
  202. * @typedef {{
  203. * requirePin: boolean,
  204. * currentPin: string,
  205. * newPin: (string|undefined)
  206. * }}
  207. */
  208. chrome.networkingPrivate.CellularSimState;
  209. /**
  210. * @typedef {{
  211. * CommonName: (string|undefined),
  212. * Locality: (string|undefined),
  213. * Organization: (string|undefined),
  214. * OrganizationalUnit: (string|undefined)
  215. * }}
  216. */
  217. chrome.networkingPrivate.IssuerSubjectPattern;
  218. /**
  219. * @typedef {{
  220. * CommonName: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  221. * Locality: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  222. * Organization: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  223. * OrganizationalUnit: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  224. * }}
  225. */
  226. chrome.networkingPrivate.ManagedIssuerSubjectPattern;
  227. /**
  228. * @typedef {{
  229. * EnrollmentURI: (!Array<string>|undefined),
  230. * Issuer: (!chrome.networkingPrivate.IssuerSubjectPattern|undefined),
  231. * IssuerCAPEMs: (!Array<string>|undefined),
  232. * IssuerCARef: (!Array<string>|undefined),
  233. * Subject: (!chrome.networkingPrivate.IssuerSubjectPattern|undefined)
  234. * }}
  235. */
  236. chrome.networkingPrivate.CertificatePattern;
  237. /**
  238. * @typedef {{
  239. * EnrollmentURI: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  240. * Issuer: (!chrome.networkingPrivate.ManagedIssuerSubjectPattern|undefined),
  241. * IssuerCARef: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  242. * Subject: (!chrome.networkingPrivate.ManagedIssuerSubjectPattern|undefined)
  243. * }}
  244. */
  245. chrome.networkingPrivate.ManagedCertificatePattern;
  246. /**
  247. * @typedef {{
  248. * AnonymousIdentity: (string|undefined),
  249. * ClientCertPattern: (!chrome.networkingPrivate.CertificatePattern|undefined),
  250. * ClientCertPKCS11Id: (string|undefined),
  251. * ClientCertProvisioningProfileId: (string|undefined),
  252. * ClientCertRef: (string|undefined),
  253. * ClientCertType: (string|undefined),
  254. * Identity: (string|undefined),
  255. * Inner: (string|undefined),
  256. * Outer: (string|undefined),
  257. * Password: (string|undefined),
  258. * SaveCredentials: (boolean|undefined),
  259. * ServerCAPEMs: (!Array<string>|undefined),
  260. * ServerCARefs: (!Array<string>|undefined),
  261. * SubjectMatch: (string|undefined),
  262. * TLSVersionMax: (string|undefined),
  263. * UseProactiveKeyCaching: (boolean|undefined),
  264. * UseSystemCAs: (boolean|undefined)
  265. * }}
  266. */
  267. chrome.networkingPrivate.EAPProperties;
  268. /**
  269. * @typedef {{
  270. * AnonymousIdentity: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  271. * ClientCertPattern: (!chrome.networkingPrivate.ManagedCertificatePattern|undefined),
  272. * ClientCertPKCS11Id: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  273. * ClientCertProvisioningProfileId: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  274. * ClientCertRef: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  275. * ClientCertType: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  276. * Identity: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  277. * Inner: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  278. * Outer: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  279. * Password: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  280. * SaveCredentials: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  281. * ServerCAPEMs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  282. * ServerCARefs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  283. * SubjectMatch: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  284. * TLSVersionMax: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  285. * UseProactiveKeyCaching: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  286. * UseSystemCAs: (!chrome.networkingPrivate.ManagedBoolean|undefined)
  287. * }}
  288. */
  289. chrome.networkingPrivate.ManagedEAPProperties;
  290. /**
  291. * @typedef {{
  292. * Status: string,
  293. * NetworkId: string,
  294. * Technology: string,
  295. * ShortName: (string|undefined),
  296. * LongName: (string|undefined)
  297. * }}
  298. */
  299. chrome.networkingPrivate.FoundNetworkProperties;
  300. /**
  301. * @typedef {{
  302. * Gateway: (string|undefined),
  303. * IPAddress: (string|undefined),
  304. * ExcludedRoutes: (!Array<string>|undefined),
  305. * IncludedRoutes: (!Array<string>|undefined),
  306. * NameServers: (!Array<string>|undefined),
  307. * SearchDomains: (!Array<string>|undefined),
  308. * RoutingPrefix: (number|undefined),
  309. * Type: (string|undefined),
  310. * WebProxyAutoDiscoveryUrl: (string|undefined)
  311. * }}
  312. */
  313. chrome.networkingPrivate.IPConfigProperties;
  314. /**
  315. * @typedef {{
  316. * Gateway: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  317. * IPAddress: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  318. * NameServers: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  319. * RoutingPrefix: (!chrome.networkingPrivate.ManagedLong|undefined),
  320. * Type: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  321. * WebProxyAutoDiscoveryUrl: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  322. * }}
  323. */
  324. chrome.networkingPrivate.ManagedIPConfigProperties;
  325. /**
  326. * @typedef {{
  327. * Password: (string|undefined),
  328. * SaveCredentials: (boolean|undefined),
  329. * Username: (string|undefined)
  330. * }}
  331. */
  332. chrome.networkingPrivate.XAUTHProperties;
  333. /**
  334. * @typedef {{
  335. * Password: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  336. * SaveCredentials: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  337. * Username: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  338. * }}
  339. */
  340. chrome.networkingPrivate.ManagedXAUTHProperties;
  341. /**
  342. * @typedef {{
  343. * AuthenticationType: string,
  344. * ClientCertPattern: (!chrome.networkingPrivate.CertificatePattern|undefined),
  345. * ClientCertPKCS11Id: (string|undefined),
  346. * ClientCertProvisioningProfileId: (string|undefined),
  347. * ClientCertRef: (string|undefined),
  348. * ClientCertType: (string|undefined),
  349. * EAP: (!chrome.networkingPrivate.EAPProperties|undefined),
  350. * Group: (string|undefined),
  351. * IKEVersion: (number|undefined),
  352. * PSK: (string|undefined),
  353. * SaveCredentials: (boolean|undefined),
  354. * ServerCAPEMs: (!Array<string>|undefined),
  355. * ServerCARefs: (!Array<string>|undefined),
  356. * XAUTH: (!chrome.networkingPrivate.XAUTHProperties|undefined)
  357. * }}
  358. */
  359. chrome.networkingPrivate.IPSecProperties;
  360. /**
  361. * @typedef {{
  362. * AuthenticationType: !chrome.networkingPrivate.ManagedDOMString,
  363. * ClientCertPattern: (!chrome.networkingPrivate.ManagedCertificatePattern|undefined),
  364. * ClientCertPKCS11Id: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  365. * ClientCertProvisioningProfileId: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  366. * ClientCertRef: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  367. * ClientCertType: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  368. * EAP: (!chrome.networkingPrivate.ManagedEAPProperties|undefined),
  369. * Group: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  370. * IKEVersion: (!chrome.networkingPrivate.ManagedLong|undefined),
  371. * PSK: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  372. * SaveCredentials: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  373. * ServerCAPEMs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  374. * ServerCARefs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  375. * XAUTH: (!chrome.networkingPrivate.ManagedXAUTHProperties|undefined)
  376. * }}
  377. */
  378. chrome.networkingPrivate.ManagedIPSecProperties;
  379. /**
  380. * @typedef {{
  381. * LcpEchoDisabled: (boolean|undefined),
  382. * Password: (string|undefined),
  383. * SaveCredentials: (boolean|undefined),
  384. * Username: (string|undefined)
  385. * }}
  386. */
  387. chrome.networkingPrivate.L2TPProperties;
  388. /**
  389. * @typedef {{
  390. * LcpEchoDisabled: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  391. * Password: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  392. * SaveCredentials: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  393. * Username: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  394. * }}
  395. */
  396. chrome.networkingPrivate.ManagedL2TPProperties;
  397. /**
  398. * @typedef {{
  399. * Method: string,
  400. * PostData: (string|undefined),
  401. * Url: (string|undefined)
  402. * }}
  403. */
  404. chrome.networkingPrivate.PaymentPortal;
  405. /**
  406. * @typedef {{
  407. * Host: string,
  408. * Port: number
  409. * }}
  410. */
  411. chrome.networkingPrivate.ProxyLocation;
  412. /**
  413. * @typedef {{
  414. * Host: !chrome.networkingPrivate.ManagedDOMString,
  415. * Port: !chrome.networkingPrivate.ManagedLong
  416. * }}
  417. */
  418. chrome.networkingPrivate.ManagedProxyLocation;
  419. /**
  420. * @typedef {{
  421. * HTTPProxy: (!chrome.networkingPrivate.ProxyLocation|undefined),
  422. * SecureHTTPProxy: (!chrome.networkingPrivate.ProxyLocation|undefined),
  423. * FTPProxy: (!chrome.networkingPrivate.ProxyLocation|undefined),
  424. * SOCKS: (!chrome.networkingPrivate.ProxyLocation|undefined)
  425. * }}
  426. */
  427. chrome.networkingPrivate.ManualProxySettings;
  428. /**
  429. * @typedef {{
  430. * HTTPProxy: (!chrome.networkingPrivate.ManagedProxyLocation|undefined),
  431. * SecureHTTPProxy: (!chrome.networkingPrivate.ManagedProxyLocation|undefined),
  432. * FTPProxy: (!chrome.networkingPrivate.ManagedProxyLocation|undefined),
  433. * SOCKS: (!chrome.networkingPrivate.ManagedProxyLocation|undefined)
  434. * }}
  435. */
  436. chrome.networkingPrivate.ManagedManualProxySettings;
  437. /**
  438. * @typedef {{
  439. * Type: !chrome.networkingPrivate.ProxySettingsType,
  440. * Manual: (!chrome.networkingPrivate.ManualProxySettings|undefined),
  441. * ExcludeDomains: (!Array<string>|undefined),
  442. * PAC: (string|undefined)
  443. * }}
  444. */
  445. chrome.networkingPrivate.ProxySettings;
  446. /**
  447. * @typedef {{
  448. * Type: !chrome.networkingPrivate.ManagedProxySettingsType,
  449. * Manual: (!chrome.networkingPrivate.ManagedManualProxySettings|undefined),
  450. * ExcludeDomains: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  451. * PAC: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  452. * }}
  453. */
  454. chrome.networkingPrivate.ManagedProxySettings;
  455. /**
  456. * @typedef {{
  457. * Name: (string|undefined),
  458. * Type: (string|undefined)
  459. * }}
  460. */
  461. chrome.networkingPrivate.VerifyX509;
  462. /**
  463. * @typedef {{
  464. * Name: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  465. * Type: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  466. * }}
  467. */
  468. chrome.networkingPrivate.ManagedVerifyX509;
  469. /**
  470. * @typedef {{
  471. * Auth: (string|undefined),
  472. * AuthRetry: (string|undefined),
  473. * AuthNoCache: (boolean|undefined),
  474. * Cipher: (string|undefined),
  475. * ClientCertPKCS11Id: (string|undefined),
  476. * ClientCertPattern: (!chrome.networkingPrivate.CertificatePattern|undefined),
  477. * ClientCertProvisioningProfileId: (string|undefined),
  478. * ClientCertRef: (string|undefined),
  479. * ClientCertType: (string|undefined),
  480. * CompLZO: (string|undefined),
  481. * CompNoAdapt: (boolean|undefined),
  482. * ExtraHosts: (!Array<string>|undefined),
  483. * IgnoreDefaultRoute: (boolean|undefined),
  484. * KeyDirection: (string|undefined),
  485. * NsCertType: (string|undefined),
  486. * OTP: (string|undefined),
  487. * Password: (string|undefined),
  488. * Port: (number|undefined),
  489. * Proto: (string|undefined),
  490. * PushPeerInfo: (boolean|undefined),
  491. * RemoteCertEKU: (string|undefined),
  492. * RemoteCertKU: (!Array<string>|undefined),
  493. * RemoteCertTLS: (string|undefined),
  494. * RenegSec: (number|undefined),
  495. * SaveCredentials: (boolean|undefined),
  496. * ServerCAPEMs: (!Array<string>|undefined),
  497. * ServerCARefs: (!Array<string>|undefined),
  498. * ServerCertRef: (string|undefined),
  499. * ServerPollTimeout: (number|undefined),
  500. * Shaper: (number|undefined),
  501. * StaticChallenge: (string|undefined),
  502. * TLSAuthContents: (string|undefined),
  503. * TLSRemote: (string|undefined),
  504. * TLSVersionMin: (string|undefined),
  505. * UserAuthenticationType: (string|undefined),
  506. * Username: (string|undefined),
  507. * Verb: (string|undefined),
  508. * VerifyHash: (string|undefined),
  509. * VerifyX509: (!chrome.networkingPrivate.VerifyX509|undefined)
  510. * }}
  511. */
  512. chrome.networkingPrivate.OpenVPNProperties;
  513. /**
  514. * @typedef {{
  515. * Auth: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  516. * AuthRetry: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  517. * AuthNoCache: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  518. * Cipher: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  519. * ClientCertPKCS11Id: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  520. * ClientCertPattern: (!chrome.networkingPrivate.ManagedCertificatePattern|undefined),
  521. * ClientCertProvisioningProfileId: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  522. * ClientCertRef: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  523. * ClientCertType: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  524. * CompLZO: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  525. * CompNoAdapt: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  526. * ExtraHosts: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  527. * IgnoreDefaultRoute: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  528. * KeyDirection: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  529. * NsCertType: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  530. * OTP: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  531. * Password: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  532. * Port: (!chrome.networkingPrivate.ManagedLong|undefined),
  533. * Proto: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  534. * PushPeerInfo: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  535. * RemoteCertEKU: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  536. * RemoteCertKU: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  537. * RemoteCertTLS: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  538. * RenegSec: (!chrome.networkingPrivate.ManagedLong|undefined),
  539. * SaveCredentials: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  540. * ServerCAPEMs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  541. * ServerCARefs: (!chrome.networkingPrivate.ManagedDOMStringList|undefined),
  542. * ServerCertRef: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  543. * ServerPollTimeout: (!chrome.networkingPrivate.ManagedLong|undefined),
  544. * Shaper: (!chrome.networkingPrivate.ManagedLong|undefined),
  545. * StaticChallenge: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  546. * TLSAuthContents: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  547. * TLSRemote: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  548. * TLSVersionMin: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  549. * UserAuthenticationType: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  550. * Username: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  551. * Verb: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  552. * VerifyHash: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  553. * VerifyX509: (!chrome.networkingPrivate.ManagedVerifyX509|undefined)
  554. * }}
  555. */
  556. chrome.networkingPrivate.ManagedOpenVPNProperties;
  557. /**
  558. * @typedef {{
  559. * LockType: string,
  560. * LockEnabled: boolean,
  561. * RetriesLeft: (number|undefined)
  562. * }}
  563. */
  564. chrome.networkingPrivate.SIMLockStatus;
  565. /**
  566. * @typedef {{
  567. * ExtensionID: string,
  568. * ProviderName: (string|undefined)
  569. * }}
  570. */
  571. chrome.networkingPrivate.ThirdPartyVPNProperties;
  572. /**
  573. * @typedef {{
  574. * ExtensionID: !chrome.networkingPrivate.ManagedDOMString,
  575. * ProviderName: (string|undefined)
  576. * }}
  577. */
  578. chrome.networkingPrivate.ManagedThirdPartyVPNProperties;
  579. /**
  580. * @typedef {{
  581. * AutoConnect: (boolean|undefined),
  582. * APN: (!chrome.networkingPrivate.APNProperties|undefined),
  583. * APNList: (!Array<!chrome.networkingPrivate.APNProperties>|undefined),
  584. * ActivationType: (string|undefined),
  585. * ActivationState: (!chrome.networkingPrivate.ActivationStateType|undefined),
  586. * AllowRoaming: (boolean|undefined),
  587. * ESN: (string|undefined),
  588. * Family: (string|undefined),
  589. * FirmwareRevision: (string|undefined),
  590. * FoundNetworks: (!Array<!chrome.networkingPrivate.FoundNetworkProperties>|undefined),
  591. * HardwareRevision: (string|undefined),
  592. * HomeProvider: (!chrome.networkingPrivate.CellularProviderProperties|undefined),
  593. * ICCID: (string|undefined),
  594. * IMEI: (string|undefined),
  595. * LastGoodAPN: (!chrome.networkingPrivate.APNProperties|undefined),
  596. * Manufacturer: (string|undefined),
  597. * MDN: (string|undefined),
  598. * MEID: (string|undefined),
  599. * MIN: (string|undefined),
  600. * ModelID: (string|undefined),
  601. * NetworkTechnology: (string|undefined),
  602. * PaymentPortal: (!chrome.networkingPrivate.PaymentPortal|undefined),
  603. * RoamingState: (string|undefined),
  604. * Scanning: (boolean|undefined),
  605. * ServingOperator: (!chrome.networkingPrivate.CellularProviderProperties|undefined),
  606. * SIMLockStatus: (!chrome.networkingPrivate.SIMLockStatus|undefined),
  607. * SIMPresent: (boolean|undefined),
  608. * SignalStrength: (number|undefined),
  609. * SupportNetworkScan: (boolean|undefined)
  610. * }}
  611. */
  612. chrome.networkingPrivate.CellularProperties;
  613. /**
  614. * @typedef {{
  615. * AutoConnect: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  616. * APN: (!chrome.networkingPrivate.ManagedAPNProperties|undefined),
  617. * APNList: (!chrome.networkingPrivate.ManagedAPNList|undefined),
  618. * ActivationType: (string|undefined),
  619. * ActivationState: (!chrome.networkingPrivate.ActivationStateType|undefined),
  620. * AllowRoaming: (boolean|undefined),
  621. * ESN: (string|undefined),
  622. * Family: (string|undefined),
  623. * FirmwareRevision: (string|undefined),
  624. * FoundNetworks: (!Array<!chrome.networkingPrivate.FoundNetworkProperties>|undefined),
  625. * HardwareRevision: (string|undefined),
  626. * HomeProvider: (!chrome.networkingPrivate.CellularProviderProperties|undefined),
  627. * ICCID: (string|undefined),
  628. * IMEI: (string|undefined),
  629. * LastGoodAPN: (!chrome.networkingPrivate.APNProperties|undefined),
  630. * Manufacturer: (string|undefined),
  631. * MDN: (string|undefined),
  632. * MEID: (string|undefined),
  633. * MIN: (string|undefined),
  634. * ModelID: (string|undefined),
  635. * NetworkTechnology: (string|undefined),
  636. * PaymentPortal: (!chrome.networkingPrivate.PaymentPortal|undefined),
  637. * RoamingState: (string|undefined),
  638. * Scanning: (boolean|undefined),
  639. * ServingOperator: (!chrome.networkingPrivate.CellularProviderProperties|undefined),
  640. * SIMLockStatus: (!chrome.networkingPrivate.SIMLockStatus|undefined),
  641. * SIMPresent: (boolean|undefined),
  642. * SignalStrength: (number|undefined),
  643. * SupportNetworkScan: (boolean|undefined)
  644. * }}
  645. */
  646. chrome.networkingPrivate.ManagedCellularProperties;
  647. /**
  648. * @typedef {{
  649. * ActivationState: (!chrome.networkingPrivate.ActivationStateType|undefined),
  650. * EID: (string|undefined),
  651. * ICCID: (string|undefined),
  652. * NetworkTechnology: (string|undefined),
  653. * RoamingState: (string|undefined),
  654. * Scanning: (boolean|undefined),
  655. * SIMPresent: (boolean|undefined),
  656. * SignalStrength: (number|undefined)
  657. * }}
  658. */
  659. chrome.networkingPrivate.CellularStateProperties;
  660. /**
  661. * @typedef {{
  662. * Outer: (string|undefined)
  663. * }}
  664. */
  665. chrome.networkingPrivate.EAPStateProperties;
  666. /**
  667. * @typedef {{
  668. * AutoConnect: (boolean|undefined),
  669. * Authentication: (string|undefined),
  670. * EAP: (!chrome.networkingPrivate.EAPProperties|undefined)
  671. * }}
  672. */
  673. chrome.networkingPrivate.EthernetProperties;
  674. /**
  675. * @typedef {{
  676. * AutoConnect: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  677. * Authentication: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  678. * EAP: (!chrome.networkingPrivate.ManagedEAPProperties|undefined)
  679. * }}
  680. */
  681. chrome.networkingPrivate.ManagedEthernetProperties;
  682. /**
  683. * @typedef {{
  684. * Authentication: string
  685. * }}
  686. */
  687. chrome.networkingPrivate.EthernetStateProperties;
  688. /**
  689. * @typedef {{
  690. * BatteryPercentage: (number|undefined),
  691. * Carrier: (string|undefined),
  692. * HasConnectedToHost: boolean,
  693. * SignalStrength: (number|undefined)
  694. * }}
  695. */
  696. chrome.networkingPrivate.TetherProperties;
  697. /**
  698. * @typedef {{
  699. * AutoConnect: (boolean|undefined),
  700. * Host: (string|undefined),
  701. * IPsec: (!chrome.networkingPrivate.IPSecProperties|undefined),
  702. * L2TP: (!chrome.networkingPrivate.L2TPProperties|undefined),
  703. * OpenVPN: (!chrome.networkingPrivate.OpenVPNProperties|undefined),
  704. * ThirdPartyVPN: (!chrome.networkingPrivate.ThirdPartyVPNProperties|undefined),
  705. * Type: (string|undefined)
  706. * }}
  707. */
  708. chrome.networkingPrivate.VPNProperties;
  709. /**
  710. * @typedef {{
  711. * AutoConnect: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  712. * Host: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  713. * IPsec: (!chrome.networkingPrivate.ManagedIPSecProperties|undefined),
  714. * L2TP: (!chrome.networkingPrivate.ManagedL2TPProperties|undefined),
  715. * OpenVPN: (!chrome.networkingPrivate.ManagedOpenVPNProperties|undefined),
  716. * ThirdPartyVPN: (!chrome.networkingPrivate.ManagedThirdPartyVPNProperties|undefined),
  717. * Type: (!chrome.networkingPrivate.ManagedDOMString|undefined)
  718. * }}
  719. */
  720. chrome.networkingPrivate.ManagedVPNProperties;
  721. /**
  722. * @typedef {{
  723. * Type: string,
  724. * IPsec: (!chrome.networkingPrivate.IPSecProperties|undefined),
  725. * ThirdPartyVPN: (!chrome.networkingPrivate.ThirdPartyVPNProperties|undefined)
  726. * }}
  727. */
  728. chrome.networkingPrivate.VPNStateProperties;
  729. /**
  730. * @typedef {{
  731. * AllowGatewayARPPolling: (boolean|undefined),
  732. * AutoConnect: (boolean|undefined),
  733. * BSSID: (string|undefined),
  734. * EAP: (!chrome.networkingPrivate.EAPProperties|undefined),
  735. * Frequency: (number|undefined),
  736. * FrequencyList: (!Array<number>|undefined),
  737. * HexSSID: (string|undefined),
  738. * HiddenSSID: (boolean|undefined),
  739. * Passphrase: (string|undefined),
  740. * SSID: (string|undefined),
  741. * Security: (string|undefined),
  742. * SignalStrength: (number|undefined)
  743. * }}
  744. */
  745. chrome.networkingPrivate.WiFiProperties;
  746. /**
  747. * @typedef {{
  748. * AllowGatewayARPPolling: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  749. * AutoConnect: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  750. * BSSID: (string|undefined),
  751. * EAP: (!chrome.networkingPrivate.ManagedEAPProperties|undefined),
  752. * Frequency: (number|undefined),
  753. * FrequencyList: (!Array<number>|undefined),
  754. * HexSSID: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  755. * HiddenSSID: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  756. * Passphrase: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  757. * SSID: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  758. * Security: !chrome.networkingPrivate.ManagedDOMString,
  759. * SignalStrength: (number|undefined)
  760. * }}
  761. */
  762. chrome.networkingPrivate.ManagedWiFiProperties;
  763. /**
  764. * @typedef {{
  765. * BSSID: (string|undefined),
  766. * EAP: (!chrome.networkingPrivate.EAPStateProperties|undefined),
  767. * Frequency: (number|undefined),
  768. * HexSSID: (string|undefined),
  769. * Security: string,
  770. * SignalStrength: (number|undefined),
  771. * SSID: (string|undefined)
  772. * }}
  773. */
  774. chrome.networkingPrivate.WiFiStateProperties;
  775. /**
  776. * @typedef {{
  777. * Cellular: (!chrome.networkingPrivate.CellularProperties|undefined),
  778. * Ethernet: (!chrome.networkingPrivate.EthernetProperties|undefined),
  779. * GUID: (string|undefined),
  780. * IPAddressConfigType: (!chrome.networkingPrivate.IPConfigType|undefined),
  781. * Name: (string|undefined),
  782. * NameServersConfigType: (!chrome.networkingPrivate.IPConfigType|undefined),
  783. * Priority: (number|undefined),
  784. * ProxySettings: (!chrome.networkingPrivate.ProxySettings|undefined),
  785. * StaticIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
  786. * Type: (!chrome.networkingPrivate.NetworkType|undefined),
  787. * VPN: (!chrome.networkingPrivate.VPNProperties|undefined),
  788. * WiFi: (!chrome.networkingPrivate.WiFiProperties|undefined)
  789. * }}
  790. */
  791. chrome.networkingPrivate.NetworkConfigProperties;
  792. /**
  793. * @typedef {{
  794. * Cellular: (!chrome.networkingPrivate.CellularProperties|undefined),
  795. * Connectable: (boolean|undefined),
  796. * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined),
  797. * ErrorState: (string|undefined),
  798. * Ethernet: (!chrome.networkingPrivate.EthernetProperties|undefined),
  799. * GUID: string,
  800. * IPAddressConfigType: (!chrome.networkingPrivate.IPConfigType|undefined),
  801. * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined),
  802. * MacAddress: (string|undefined),
  803. * Metered: (boolean|undefined),
  804. * Name: (string|undefined),
  805. * NameServersConfigType: (!chrome.networkingPrivate.IPConfigType|undefined),
  806. * Priority: (number|undefined),
  807. * ProxySettings: (!chrome.networkingPrivate.ProxySettings|undefined),
  808. * RestrictedConnectivity: (boolean|undefined),
  809. * StaticIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
  810. * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
  811. * Source: (string|undefined),
  812. * Tether: (!chrome.networkingPrivate.TetherProperties|undefined),
  813. * Type: !chrome.networkingPrivate.NetworkType,
  814. * VPN: (!chrome.networkingPrivate.VPNProperties|undefined),
  815. * WiFi: (!chrome.networkingPrivate.WiFiProperties|undefined)
  816. * }}
  817. */
  818. chrome.networkingPrivate.NetworkProperties;
  819. /**
  820. * @typedef {{
  821. * Cellular: (!chrome.networkingPrivate.ManagedCellularProperties|undefined),
  822. * Connectable: (boolean|undefined),
  823. * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined),
  824. * ErrorState: (string|undefined),
  825. * Ethernet: (!chrome.networkingPrivate.ManagedEthernetProperties|undefined),
  826. * GUID: string,
  827. * IPAddressConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undefined),
  828. * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined),
  829. * MacAddress: (string|undefined),
  830. * Metered: (!chrome.networkingPrivate.ManagedBoolean|undefined),
  831. * Name: (!chrome.networkingPrivate.ManagedDOMString|undefined),
  832. * NameServersConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undefined),
  833. * Priority: (!chrome.networkingPrivate.ManagedLong|undefined),
  834. * ProxySettings: (!chrome.networkingPrivate.ManagedProxySettings|undefined),
  835. * RestrictedConnectivity: (boolean|undefined),
  836. * StaticIPConfig: (!chrome.networkingPrivate.ManagedIPConfigProperties|undefined),
  837. * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
  838. * Source: (string|undefined),
  839. * Tether: (!chrome.networkingPrivate.TetherProperties|undefined),
  840. * Type: !chrome.networkingPrivate.NetworkType,
  841. * VPN: (!chrome.networkingPrivate.ManagedVPNProperties|undefined),
  842. * WiFi: (!chrome.networkingPrivate.ManagedWiFiProperties|undefined)
  843. * }}
  844. */
  845. chrome.networkingPrivate.ManagedProperties;
  846. /**
  847. * @typedef {{
  848. * Cellular: (!chrome.networkingPrivate.CellularStateProperties|undefined),
  849. * Connectable: (boolean|undefined),
  850. * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined),
  851. * Ethernet: (!chrome.networkingPrivate.EthernetStateProperties|undefined),
  852. * ErrorState: (string|undefined),
  853. * GUID: string,
  854. * Name: (string|undefined),
  855. * Priority: (number|undefined),
  856. * Source: (string|undefined),
  857. * Tether: (!chrome.networkingPrivate.TetherProperties|undefined),
  858. * Type: !chrome.networkingPrivate.NetworkType,
  859. * VPN: (!chrome.networkingPrivate.VPNStateProperties|undefined),
  860. * WiFi: (!chrome.networkingPrivate.WiFiStateProperties|undefined)
  861. * }}
  862. */
  863. chrome.networkingPrivate.NetworkStateProperties;
  864. /**
  865. * @typedef {{
  866. * Scanning: (boolean|undefined),
  867. * SIMLockStatus: (!chrome.networkingPrivate.SIMLockStatus|undefined),
  868. * SIMPresent: (boolean|undefined),
  869. * State: !chrome.networkingPrivate.DeviceStateType,
  870. * Type: !chrome.networkingPrivate.NetworkType,
  871. * ManagedNetworkAvailable: (boolean|undefined)
  872. * }}
  873. */
  874. chrome.networkingPrivate.DeviceStateProperties;
  875. /**
  876. * @typedef {{
  877. * networkType: !chrome.networkingPrivate.NetworkType,
  878. * visible: (boolean|undefined),
  879. * configured: (boolean|undefined),
  880. * limit: (number|undefined)
  881. * }}
  882. */
  883. chrome.networkingPrivate.NetworkFilter;
  884. /**
  885. * @typedef {{
  886. * AllowOnlyPolicyNetworksToAutoconnect: (boolean|undefined),
  887. * AllowOnlyPolicyNetworksToConnect: (boolean|undefined),
  888. * AllowOnlyPolicyNetworksToConnectIfAvailable: (boolean|undefined),
  889. * BlockedHexSSIDs: (!Array<string>|undefined)
  890. * }}
  891. */
  892. chrome.networkingPrivate.GlobalPolicy;
  893. /**
  894. * @typedef {{
  895. * hash: string,
  896. * issuedBy: string,
  897. * issuedTo: string,
  898. * pem: (string|undefined),
  899. * PKCS11Id: (string|undefined),
  900. * hardwareBacked: boolean,
  901. * deviceWide: boolean
  902. * }}
  903. */
  904. chrome.networkingPrivate.Certificate;
  905. /**
  906. * @typedef {{
  907. * serverCaCertificates: !Array<!chrome.networkingPrivate.Certificate>,
  908. * userCertificates: !Array<!chrome.networkingPrivate.Certificate>
  909. * }}
  910. */
  911. chrome.networkingPrivate.CertificateLists;
  912. /**
  913. * Gets all the properties of the network with id networkGuid. Includes all
  914. * properties of the network (read-only and read/write values).
  915. * @param {string} networkGuid The GUID of the network to get properties for.
  916. * @param {function(!chrome.networkingPrivate.NetworkProperties): void} callback
  917. * Called with the network properties when received.
  918. */
  919. chrome.networkingPrivate.getProperties = function(networkGuid, callback) {};
  920. /**
  921. * Gets the merged properties of the network with id networkGuid from the
  922. * sources: User settings, shared settings, user policy, device policy and the
  923. * currently active settings.
  924. * @param {string} networkGuid The GUID of the network to get properties for.
  925. * @param {function(!chrome.networkingPrivate.ManagedProperties): void} callback
  926. * Called with the managed network properties when received.
  927. */
  928. chrome.networkingPrivate.getManagedProperties = function(networkGuid, callback) {};
  929. /**
  930. * Gets the cached read-only properties of the network with id networkGuid. This
  931. * is meant to be a higher performance function than $(ref:getProperties), which
  932. * requires a round trip to query the networking subsystem. The following
  933. * properties are returned for all networks: GUID, Type, Name, WiFi.Security.
  934. * Additional properties are provided for visible networks: ConnectionState,
  935. * ErrorState, WiFi.SignalStrength, Cellular.NetworkTechnology,
  936. * Cellular.ActivationState, Cellular.RoamingState.
  937. * @param {string} networkGuid The GUID of the network to get properties for.
  938. * @param {function(!chrome.networkingPrivate.NetworkStateProperties): void}
  939. * callback Called immediately with the network state properties.
  940. */
  941. chrome.networkingPrivate.getState = function(networkGuid, callback) {};
  942. /**
  943. * Sets the properties of the network with id |networkGuid|. This is only valid
  944. * for configured networks (Source != None). Unconfigured visible networks
  945. * should use createNetwork instead.
  946. * @param {string} networkGuid The GUID of the network to set properties for.
  947. * @param {!chrome.networkingPrivate.NetworkConfigProperties} properties The
  948. * properties to set.
  949. * @param {function(): void=} callback Called when the operation has completed.
  950. */
  951. chrome.networkingPrivate.setProperties = function(networkGuid, properties, callback) {};
  952. /**
  953. * Creates a new network configuration from properties. If a matching configured
  954. * network already exists, this will fail. Otherwise returns the guid of the new
  955. * network.
  956. * @param {boolean} shared If true, share this network configuration with other
  957. * users.
  958. * @param {!chrome.networkingPrivate.NetworkConfigProperties} properties The
  959. * properties to configure the new network with.
  960. * @param {function(string): void=} callback Called with the GUID for the new
  961. * network configuration once the network has been created.
  962. */
  963. chrome.networkingPrivate.createNetwork = function(shared, properties, callback) {};
  964. /**
  965. * Forgets a network configuration by clearing any configured properties for the
  966. * network with GUID 'networkGuid'. This may also include any other networks
  967. * with matching identifiers (e.g. WiFi SSID and Security). If no such
  968. * configuration exists, an error will be set and the operation will fail.
  969. * @param {string} networkGuid The GUID of the network to forget.
  970. * @param {function(): void=} callback Called when the operation has completed.
  971. */
  972. chrome.networkingPrivate.forgetNetwork = function(networkGuid, callback) {};
  973. /**
  974. * Returns a list of network objects with the same properties provided by
  975. * $(ref:networkingPrivate.getState). A filter is provided to specify the type
  976. * of networks returned and to limit the number of networks. Networks are
  977. * ordered by the system based on their priority, with connected or connecting
  978. * networks listed first.
  979. * @param {!chrome.networkingPrivate.NetworkFilter} filter Describes which
  980. * networks to return.
  981. * @param {function(!Array<!chrome.networkingPrivate.NetworkStateProperties>): void}
  982. * callback Called with a dictionary of networks and their state
  983. * properties when received.
  984. */
  985. chrome.networkingPrivate.getNetworks = function(filter, callback) {};
  986. /**
  987. * Deprecated. Please use $(ref:networkingPrivate.getNetworks) with
  988. * filter.visible = true instead.
  989. * @param {!chrome.networkingPrivate.NetworkType} networkType
  990. * @param {function(!Array<!chrome.networkingPrivate.NetworkStateProperties>): void}
  991. * callback
  992. * @deprecated Use getNetworks.
  993. */
  994. chrome.networkingPrivate.getVisibleNetworks = function(networkType, callback) {};
  995. /**
  996. * Deprecated. Please use $(ref:networkingPrivate.getDeviceStates) instead.
  997. * @param {function(!Array<!chrome.networkingPrivate.NetworkType>): void}
  998. * callback
  999. * @deprecated Use getDeviceStates.
  1000. */
  1001. chrome.networkingPrivate.getEnabledNetworkTypes = function(callback) {};
  1002. /**
  1003. * Returns a list of $(ref:networkingPrivate.DeviceStateProperties) objects.
  1004. * @param {function(!Array<!chrome.networkingPrivate.DeviceStateProperties>): void}
  1005. * callback Called with a list of devices and their state.
  1006. */
  1007. chrome.networkingPrivate.getDeviceStates = function(callback) {};
  1008. /**
  1009. * Enables any devices matching the specified network type. Note, the type might
  1010. * represent multiple network types (e.g. 'Wireless').
  1011. * @param {!chrome.networkingPrivate.NetworkType} networkType The type of
  1012. * network to enable.
  1013. */
  1014. chrome.networkingPrivate.enableNetworkType = function(networkType) {};
  1015. /**
  1016. * Disables any devices matching the specified network type. See note for
  1017. * $(ref:networkingPrivate.enableNetworkType).
  1018. * @param {!chrome.networkingPrivate.NetworkType} networkType The type of
  1019. * network to disable.
  1020. */
  1021. chrome.networkingPrivate.disableNetworkType = function(networkType) {};
  1022. /**
  1023. * Requests that the networking subsystem scan for new networks and update the
  1024. * list returned by $(ref:getVisibleNetworks). This is only a request: the
  1025. * network subsystem can choose to ignore it. If the list is updated, then the
  1026. * $(ref:onNetworkListChanged) event will be fired.
  1027. * @param {!chrome.networkingPrivate.NetworkType=} networkType If provided,
  1028. * requests a scan specific to the type. For Cellular a mobile network
  1029. * scan will be requested if supported.
  1030. */
  1031. chrome.networkingPrivate.requestNetworkScan = function(networkType) {};
  1032. /**
  1033. * Starts a connection to the network with networkGuid.
  1034. * @param {string} networkGuid The GUID of the network to connect to.
  1035. * @param {function(): void=} callback Called when the connect request has been
  1036. * sent. Note: the connection may not have completed. Observe
  1037. * $(ref:onNetworksChanged) to be notified when a network state changes.
  1038. * If the connect request immediately failed (e.g. the network is
  1039. * unconfigured), $(ref:runtime.lastError) will be set with a failure
  1040. * reason.
  1041. */
  1042. chrome.networkingPrivate.startConnect = function(networkGuid, callback) {};
  1043. /**
  1044. * Starts a disconnect from the network with networkGuid.
  1045. * @param {string} networkGuid The GUID of the network to disconnect from.
  1046. * @param {function(): void=} callback Called when the disconnect request has
  1047. * been sent. See note for $(ref:startConnect).
  1048. */
  1049. chrome.networkingPrivate.startDisconnect = function(networkGuid, callback) {};
  1050. /**
  1051. * Starts activation of the Cellular network with networkGuid. If called for a
  1052. * network that is already activated, or for a network with a carrier that can
  1053. * not be directly activated, this will show the account details page for the
  1054. * carrier if possible.
  1055. * @param {string} networkGuid The GUID of the Cellular network to activate.
  1056. * @param {string=} carrier Optional name of carrier to activate.
  1057. * @param {function(): void=} callback Called when the activation request has
  1058. * been sent. See note for $(ref:startConnect).
  1059. */
  1060. chrome.networkingPrivate.startActivate = function(networkGuid, carrier, callback) {};
  1061. /**
  1062. * Returns captive portal status for the network matching 'networkGuid'.
  1063. * @param {string} networkGuid The GUID of the network to get captive portal
  1064. * status for.
  1065. * @param {function(!chrome.networkingPrivate.CaptivePortalStatus): void}
  1066. * callback A callback function that returns the results of the query for
  1067. * network captive portal status.
  1068. */
  1069. chrome.networkingPrivate.getCaptivePortalStatus = function(networkGuid, callback) {};
  1070. /**
  1071. * Unlocks a Cellular SIM card. * If the SIM is PIN locked, |pin| will be used
  1072. * to unlock the SIM and the |puk| argument will be ignored if provided. * If
  1073. * the SIM is PUK locked, |puk| and |pin| must be provided. If the operation
  1074. * succeeds (|puk| is valid), the PIN will be set to |pin|. (If |pin| is empty
  1075. * or invalid the operation will fail).
  1076. * @param {string} networkGuid The GUID of the cellular network to unlock.
  1077. * If empty, the default cellular device will be used.
  1078. * @param {string} pin The current SIM PIN, or the new PIN if PUK is provided.
  1079. * @param {string=} puk The operator provided PUK for unblocking a blocked SIM.
  1080. * @param {function(): void=} callback Called when the operation has completed.
  1081. */
  1082. chrome.networkingPrivate.unlockCellularSim = function(networkGuid, pin, puk, callback) {};
  1083. /**
  1084. * Sets whether or not SIM locking is enabled (i.e a PIN will be required when
  1085. * the device is powered) and changes the PIN if a new PIN is specified. If the
  1086. * new PIN is provided but not valid (e.g. too short) the operation will fail.
  1087. * This will not lock the SIM; that is handled automatically by the device.
  1088. * NOTE: If the SIM is locked, it must first be unlocked with
  1089. * unlockCellularSim() before this can be called (otherwise it will fail and
  1090. * $(ref:runtime.lastError) will be set to Error.SimLocked).
  1091. * @param {string} networkGuid The GUID of the cellular network to set the SIM
  1092. * state of. If empty, the default cellular device will be used.
  1093. * @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state to
  1094. * set.
  1095. * @param {function(): void=} callback Called when the operation has completed.
  1096. */
  1097. chrome.networkingPrivate.setCellularSimState = function(networkGuid, simState, callback) {};
  1098. /**
  1099. * Selects which Cellular Mobile Network to use. |networkId| must be the
  1100. * NetworkId property of a member of Cellular.FoundNetworks from the network
  1101. * properties for the specified Cellular network.
  1102. * @param {string} networkGuid The GUID of the cellular network to select the
  1103. * network for. If empty, the default cellular device will be used.
  1104. * @param {string} networkId The networkId to select.
  1105. * @param {function(): void=} callback Called when the operation has completed.
  1106. */
  1107. chrome.networkingPrivate.selectCellularMobileNetwork = function(networkGuid, networkId, callback) {};
  1108. /**
  1109. * Gets the global policy properties. These properties are not expected to
  1110. * change during a session.
  1111. * @param {function(!chrome.networkingPrivate.GlobalPolicy): void} callback
  1112. */
  1113. chrome.networkingPrivate.getGlobalPolicy = function(callback) {};
  1114. /**
  1115. * Gets the lists of certificates available for network configuration.
  1116. * @param {function(!chrome.networkingPrivate.CertificateLists): void} callback
  1117. */
  1118. chrome.networkingPrivate.getCertificateLists = function(callback) {};
  1119. /**
  1120. * Fired when the properties change on any of the networks. Sends a list of
  1121. * GUIDs for networks whose properties have changed.
  1122. * @type {!ChromeEvent}
  1123. */
  1124. chrome.networkingPrivate.onNetworksChanged;
  1125. /**
  1126. * Fired when the list of networks has changed. Sends a complete list of GUIDs
  1127. * for all the current networks.
  1128. * @type {!ChromeEvent}
  1129. */
  1130. chrome.networkingPrivate.onNetworkListChanged;
  1131. /**
  1132. * Fired when the list of devices has changed or any device state properties
  1133. * have changed.
  1134. * @type {!ChromeEvent}
  1135. */
  1136. chrome.networkingPrivate.onDeviceStateListChanged;
  1137. /**
  1138. * Fired when a portal detection for a network completes. Sends the guid of the
  1139. * network and the corresponding captive portal status.
  1140. * @type {!ChromeEvent}
  1141. */
  1142. chrome.networkingPrivate.onPortalDetectionCompleted;
  1143. /**
  1144. * Fired when any certificate list has changed.
  1145. * @type {!ChromeEvent}
  1146. */
  1147. chrome.networkingPrivate.onCertificateListsChanged;