OLD | NEW |
---|---|
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 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
8 // 'chrome.networkingPrivate.FooType'. | 8 // 'chrome.networkingPrivate.FooType'. |
9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 }; | 71 }; |
72 | 72 |
73 /** | 73 /** |
74 * @enum {string} | 74 * @enum {string} |
75 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkTy pe | 75 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkTy pe |
76 */ | 76 */ |
77 chrome.networkingPrivate.NetworkType = { | 77 chrome.networkingPrivate.NetworkType = { |
78 ALL: 'All', | 78 ALL: 'All', |
79 CELLULAR: 'Cellular', | 79 CELLULAR: 'Cellular', |
80 ETHERNET: 'Ethernet', | 80 ETHERNET: 'Ethernet', |
81 TETHER: 'Tether', | |
81 VPN: 'VPN', | 82 VPN: 'VPN', |
82 WIRELESS: 'Wireless', | 83 WIRELESS: 'Wireless', |
83 WI_FI: 'WiFi', | 84 WI_FI: 'WiFi', |
84 WI_MAX: 'WiMAX', | 85 WI_MAX: 'WiMAX', |
85 }; | 86 }; |
86 | 87 |
87 /** | 88 /** |
88 * @enum {string} | 89 * @enum {string} |
89 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ProxySett ingsType | 90 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ProxySett ingsType |
90 */ | 91 */ |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
755 /** | 756 /** |
756 * @typedef {{ | 757 * @typedef {{ |
757 * Authentication: string | 758 * Authentication: string |
758 * }} | 759 * }} |
759 * @see https://developer.chrome.com/extensions/networkingPrivate#type-EthernetS tateProperties | 760 * @see https://developer.chrome.com/extensions/networkingPrivate#type-EthernetS tateProperties |
760 */ | 761 */ |
761 chrome.networkingPrivate.EthernetStateProperties; | 762 chrome.networkingPrivate.EthernetStateProperties; |
762 | 763 |
763 /** | 764 /** |
764 * @typedef {{ | 765 * @typedef {{ |
766 * BatteryPercentage: (number|undefined), | |
767 * Carrier: (string|undefined), | |
768 * SignalStrength: (number|undefined) | |
769 * }} | |
770 * @see https://developer.chrome.com/extensions/networkingPrivate#type-TetherPro perties | |
771 */ | |
772 chrome.networkingPrivate.TetherProperties; | |
773 | |
774 /** | |
775 * @typedef {{ | |
776 * BatteryPercentage: (number|undefined), | |
777 * Carrier: (string|undefined), | |
778 * SignalStrength: (number|undefined) | |
779 * }} | |
780 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ManagedTe therProperties | |
781 */ | |
782 chrome.networkingPrivate.ManagedTetherProperties; | |
783 | |
784 /** | |
785 * @typedef {{ | |
765 * AutoConnect: (boolean|undefined), | 786 * AutoConnect: (boolean|undefined), |
766 * Host: (string|undefined), | 787 * Host: (string|undefined), |
767 * IPsec: (!chrome.networkingPrivate.IPSecProperties|undefined), | 788 * IPsec: (!chrome.networkingPrivate.IPSecProperties|undefined), |
768 * L2TP: (!chrome.networkingPrivate.L2TPProperties|undefined), | 789 * L2TP: (!chrome.networkingPrivate.L2TPProperties|undefined), |
769 * OpenVPN: (!chrome.networkingPrivate.OpenVPNProperties|undefined), | 790 * OpenVPN: (!chrome.networkingPrivate.OpenVPNProperties|undefined), |
770 * ThirdPartyVPN: (!chrome.networkingPrivate.ThirdPartyVPNProperties|undefined ), | 791 * ThirdPartyVPN: (!chrome.networkingPrivate.ThirdPartyVPNProperties|undefined ), |
771 * Type: (string|undefined) | 792 * Type: (string|undefined) |
772 * }} | 793 * }} |
773 * @see https://developer.chrome.com/extensions/networkingPrivate#type-VPNProper ties | 794 * @see https://developer.chrome.com/extensions/networkingPrivate#type-VPNProper ties |
774 */ | 795 */ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined) , | 930 * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined) , |
910 * MacAddress: (string|undefined), | 931 * MacAddress: (string|undefined), |
911 * Name: (string|undefined), | 932 * Name: (string|undefined), |
912 * NameServersConfigType: (!chrome.networkingPrivate.IPConfigType|undefined), | 933 * NameServersConfigType: (!chrome.networkingPrivate.IPConfigType|undefined), |
913 * Priority: (number|undefined), | 934 * Priority: (number|undefined), |
914 * ProxySettings: (!chrome.networkingPrivate.ProxySettings|undefined), | 935 * ProxySettings: (!chrome.networkingPrivate.ProxySettings|undefined), |
915 * RestrictedConnectivity: (boolean|undefined), | 936 * RestrictedConnectivity: (boolean|undefined), |
916 * StaticIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), | 937 * StaticIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), |
917 * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), | 938 * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), |
918 * Source: (string|undefined), | 939 * Source: (string|undefined), |
940 * Tether: (!chrome.networkingPrivate.TetherProperties|undefined), | |
919 * Type: !chrome.networkingPrivate.NetworkType, | 941 * Type: !chrome.networkingPrivate.NetworkType, |
920 * VPN: (!chrome.networkingPrivate.VPNProperties|undefined), | 942 * VPN: (!chrome.networkingPrivate.VPNProperties|undefined), |
921 * WiFi: (!chrome.networkingPrivate.WiFiProperties|undefined), | 943 * WiFi: (!chrome.networkingPrivate.WiFiProperties|undefined), |
922 * WiMAX: (!chrome.networkingPrivate.WiMAXProperties|undefined) | 944 * WiMAX: (!chrome.networkingPrivate.WiMAXProperties|undefined) |
923 * }} | 945 * }} |
924 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkPr operties | 946 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkPr operties |
925 */ | 947 */ |
926 chrome.networkingPrivate.NetworkProperties; | 948 chrome.networkingPrivate.NetworkProperties; |
927 | 949 |
928 /** | 950 /** |
929 * @typedef {{ | 951 * @typedef {{ |
930 * Cellular: (!chrome.networkingPrivate.ManagedCellularProperties|undefined), | 952 * Cellular: (!chrome.networkingPrivate.ManagedCellularProperties|undefined), |
931 * Connectable: (boolean|undefined), | 953 * Connectable: (boolean|undefined), |
932 * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined), | 954 * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined), |
933 * ErrorState: (string|undefined), | 955 * ErrorState: (string|undefined), |
934 * Ethernet: (!chrome.networkingPrivate.ManagedEthernetProperties|undefined), | 956 * Ethernet: (!chrome.networkingPrivate.ManagedEthernetProperties|undefined), |
935 * GUID: string, | 957 * GUID: string, |
936 * IPAddressConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undefin ed), | 958 * IPAddressConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undefin ed), |
937 * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined) , | 959 * IPConfigs: (!Array<!chrome.networkingPrivate.IPConfigProperties>|undefined) , |
938 * MacAddress: (string|undefined), | 960 * MacAddress: (string|undefined), |
939 * Name: (!chrome.networkingPrivate.ManagedDOMString|undefined), | 961 * Name: (!chrome.networkingPrivate.ManagedDOMString|undefined), |
940 * NameServersConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undef ined), | 962 * NameServersConfigType: (!chrome.networkingPrivate.ManagedIPConfigType|undef ined), |
941 * Priority: (!chrome.networkingPrivate.ManagedLong|undefined), | 963 * Priority: (!chrome.networkingPrivate.ManagedLong|undefined), |
942 * ProxySettings: (!chrome.networkingPrivate.ManagedProxySettings|undefined), | 964 * ProxySettings: (!chrome.networkingPrivate.ManagedProxySettings|undefined), |
943 * RestrictedConnectivity: (boolean|undefined), | 965 * RestrictedConnectivity: (boolean|undefined), |
944 * StaticIPConfig: (!chrome.networkingPrivate.ManagedIPConfigProperties|undefi ned), | 966 * StaticIPConfig: (!chrome.networkingPrivate.ManagedIPConfigProperties|undefi ned), |
945 * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), | 967 * SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined), |
946 * Source: (string|undefined), | 968 * Source: (string|undefined), |
969 * Tether: (!chrome.networkingPrivate.ManagedTetherProperties|undefined), | |
947 * Type: !chrome.networkingPrivate.NetworkType, | 970 * Type: !chrome.networkingPrivate.NetworkType, |
948 * VPN: (!chrome.networkingPrivate.ManagedVPNProperties|undefined), | 971 * VPN: (!chrome.networkingPrivate.ManagedVPNProperties|undefined), |
949 * WiFi: (!chrome.networkingPrivate.ManagedWiFiProperties|undefined), | 972 * WiFi: (!chrome.networkingPrivate.ManagedWiFiProperties|undefined), |
950 * WiMAX: (!chrome.networkingPrivate.ManagedWiMAXProperties|undefined) | 973 * WiMAX: (!chrome.networkingPrivate.ManagedWiMAXProperties|undefined) |
951 * }} | 974 * }} |
952 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ManagedPr operties | 975 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ManagedPr operties |
953 */ | 976 */ |
954 chrome.networkingPrivate.ManagedProperties; | 977 chrome.networkingPrivate.ManagedProperties; |
955 | 978 |
956 /** | 979 /** |
957 * @typedef {{ | 980 * @typedef {{ |
958 * Cellular: (!chrome.networkingPrivate.CellularStateProperties|undefined), | 981 * Cellular: (!chrome.networkingPrivate.CellularStateProperties|undefined), |
959 * Connectable: (boolean|undefined), | 982 * Connectable: (boolean|undefined), |
960 * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined), | 983 * ConnectionState: (!chrome.networkingPrivate.ConnectionStateType|undefined), |
961 * Ethernet: (!chrome.networkingPrivate.EthernetStateProperties|undefined), | 984 * Ethernet: (!chrome.networkingPrivate.EthernetStateProperties|undefined), |
962 * ErrorState: (string|undefined), | 985 * ErrorState: (string|undefined), |
963 * GUID: string, | 986 * GUID: string, |
964 * Name: (string|undefined), | 987 * Name: (string|undefined), |
965 * Priority: (number|undefined), | 988 * Priority: (number|undefined), |
966 * Source: (string|undefined), | 989 * Source: (string|undefined), |
990 * Tether: (!chrome.networkingPrivate.TetherProperties|undefined), | |
967 * Type: !chrome.networkingPrivate.NetworkType, | 991 * Type: !chrome.networkingPrivate.NetworkType, |
968 * VPN: (!chrome.networkingPrivate.VPNStateProperties|undefined), | 992 * VPN: (!chrome.networkingPrivate.VPNStateProperties|undefined), |
969 * WiFi: (!chrome.networkingPrivate.WiFiStateProperties|undefined), | 993 * WiFi: (!chrome.networkingPrivate.WiFiStateProperties|undefined), |
970 * WiMAX: (!chrome.networkingPrivate.WiMAXStateProperties|undefined) | 994 * WiMAX: (!chrome.networkingPrivate.WiMAXStateProperties|undefined) |
971 * }} | 995 * }} |
972 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkSt ateProperties | 996 * @see https://developer.chrome.com/extensions/networkingPrivate#type-NetworkSt ateProperties |
973 */ | 997 */ |
974 chrome.networkingPrivate.NetworkStateProperties; | 998 chrome.networkingPrivate.NetworkStateProperties; |
975 | 999 |
976 /** | 1000 /** |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1193 */ | 1217 */ |
1194 chrome.networkingPrivate.startActivate = function(networkGuid, carrier, callback ) {}; | 1218 chrome.networkingPrivate.startActivate = function(networkGuid, carrier, callback ) {}; |
1195 | 1219 |
1196 /** | 1220 /** |
1197 * Verifies that the device is a trusted device. | 1221 * Verifies that the device is a trusted device. |
1198 * @param {!chrome.networkingPrivate.VerificationProperties} properties | 1222 * @param {!chrome.networkingPrivate.VerificationProperties} properties |
1199 * Properties of the destination to use in verifying that it is a | 1223 * Properties of the destination to use in verifying that it is a |
1200 * trusted device. | 1224 * trusted device. |
1201 * @param {function(boolean):void} callback A callback function that indicates | 1225 * @param {function(boolean):void} callback A callback function that indicates |
1202 * whether or not the device is a trusted device. | 1226 * whether or not the device is a trusted device. |
1227 * @deprecated Use networking.castPrivate API. | |
stevenjb
2017/04/14 22:04:49
Can you put up a CL with just these changes and ha
Kyle Horimoto
2017/04/17 21:05:11
Removed it as part of this CL; will send another C
| |
1203 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyD estination | 1228 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyD estination |
1204 */ | 1229 */ |
1205 chrome.networkingPrivate.verifyDestination = function(properties, callback) {}; | 1230 chrome.networkingPrivate.verifyDestination = function(properties, callback) {}; |
1206 | 1231 |
1207 /** | 1232 /** |
1208 * Verifies that the device is a trusted device and retrieves encrypted network | 1233 * Verifies that the device is a trusted device and retrieves encrypted network |
1209 * credentials. | 1234 * credentials. |
1210 * @param {!chrome.networkingPrivate.VerificationProperties} properties | 1235 * @param {!chrome.networkingPrivate.VerificationProperties} properties |
1211 * Properties of the destination to use in verifying that it is a | 1236 * Properties of the destination to use in verifying that it is a |
1212 * trusted device. | 1237 * trusted device. |
1213 * @param {string} networkGuid The GUID of the Cellular network to activate. | 1238 * @param {string} networkGuid The GUID of the Cellular network to activate. |
1214 * @param {function(string):void} callback A callback function that receives | 1239 * @param {function(string):void} callback A callback function that receives |
1215 * base64-encoded encrypted credential data to send to a trusted device. | 1240 * base64-encoded encrypted credential data to send to a trusted device. |
1241 * @deprecated Use networking.castPrivate API. | |
1216 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyA ndEncryptCredentials | 1242 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyA ndEncryptCredentials |
1217 */ | 1243 */ |
1218 chrome.networkingPrivate.verifyAndEncryptCredentials = function(properties, netw orkGuid, callback) {}; | 1244 chrome.networkingPrivate.verifyAndEncryptCredentials = function(properties, netw orkGuid, callback) {}; |
1219 | 1245 |
1220 /** | 1246 /** |
1221 * Verifies that the device is a trusted device and encrypts supplied data with | 1247 * Verifies that the device is a trusted device and encrypts supplied data with |
1222 * device public key. | 1248 * device public key. |
1223 * @param {!chrome.networkingPrivate.VerificationProperties} properties | 1249 * @param {!chrome.networkingPrivate.VerificationProperties} properties |
1224 * Properties of the destination to use in verifying that it is a | 1250 * Properties of the destination to use in verifying that it is a |
1225 * trusted device. | 1251 * trusted device. |
1226 * @param {string} data A string containing the base64-encoded data to encrypt. | 1252 * @param {string} data A string containing the base64-encoded data to encrypt. |
1227 * @param {function(string):void} callback A callback function that receives | 1253 * @param {function(string):void} callback A callback function that receives |
1228 * base64-encoded encrypted data to send to a trusted device. | 1254 * base64-encoded encrypted data to send to a trusted device. |
1255 * @deprecated Use networking.castPrivate API. | |
1229 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyA ndEncryptData | 1256 * @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyA ndEncryptData |
1230 */ | 1257 */ |
1231 chrome.networkingPrivate.verifyAndEncryptData = function(properties, data, callb ack) {}; | 1258 chrome.networkingPrivate.verifyAndEncryptData = function(properties, data, callb ack) {}; |
1232 | 1259 |
1233 /** | 1260 /** |
1234 * Enables TDLS for WiFi traffic with a specified peer if available. | 1261 * Enables TDLS for WiFi traffic with a specified peer if available. |
1235 * @param {string} ip_or_mac_address The IP or MAC address of the peer with | 1262 * @param {string} ip_or_mac_address The IP or MAC address of the peer with |
1236 * which to enable a TDLS connection. |enabled| If true, enable TDLS, | 1263 * which to enable a TDLS connection. |enabled| If true, enable TDLS, |
1237 * otherwise disable TDLS. | 1264 * otherwise disable TDLS. |
1238 * @param {boolean} enabled | 1265 * @param {boolean} enabled |
1239 * @param {function(string):void=} callback A callback function that receives a | 1266 * @param {function(string):void=} callback A callback function that receives a |
1240 * string with an error or the current TDLS status. 'Failed' indicates | 1267 * string with an error or the current TDLS status. 'Failed' indicates |
1241 * that the request failed (e.g. MAC address lookup failed). 'Timeout' | 1268 * that the request failed (e.g. MAC address lookup failed). 'Timeout' |
1242 * indicates that the lookup timed out. Otherwise a valid status is | 1269 * indicates that the lookup timed out. Otherwise a valid status is |
1243 * returned (see $(ref:getWifiTDLSStatus)). | 1270 * returned (see $(ref:getWifiTDLSStatus)). |
1271 * @deprecated Use networking.castPrivate API. | |
1244 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setWifi TDLSEnabledState | 1272 * @see https://developer.chrome.com/extensions/networkingPrivate#method-setWifi TDLSEnabledState |
1245 */ | 1273 */ |
1246 chrome.networkingPrivate.setWifiTDLSEnabledState = function(ip_or_mac_address, e nabled, callback) {}; | 1274 chrome.networkingPrivate.setWifiTDLSEnabledState = function(ip_or_mac_address, e nabled, callback) {}; |
1247 | 1275 |
1248 /** | 1276 /** |
1249 * Returns the current TDLS status for the specified peer. | 1277 * Returns the current TDLS status for the specified peer. |
1250 * @param {string} ip_or_mac_address The IP or MAC address of the peer. | 1278 * @param {string} ip_or_mac_address The IP or MAC address of the peer. |
1251 * @param {function(string):void} callback A callback function that receives a | 1279 * @param {function(string):void} callback A callback function that receives a |
1252 * string with the current TDLS status which can be 'Connected', | 1280 * string with the current TDLS status which can be 'Connected', |
1253 * 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'. | 1281 * 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'. |
1282 * @deprecated Use networking.castPrivate API. | |
1254 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getWifi TDLSStatus | 1283 * @see https://developer.chrome.com/extensions/networkingPrivate#method-getWifi TDLSStatus |
1255 */ | 1284 */ |
1256 chrome.networkingPrivate.getWifiTDLSStatus = function(ip_or_mac_address, callbac k) {}; | 1285 chrome.networkingPrivate.getWifiTDLSStatus = function(ip_or_mac_address, callbac k) {}; |
1257 | 1286 |
1258 /** | 1287 /** |
1259 * Returns captive portal status for the network matching 'networkGuid'. | 1288 * Returns captive portal status for the network matching 'networkGuid'. |
1260 * @param {string} networkGuid The GUID of the network to get captive portal | 1289 * @param {string} networkGuid The GUID of the network to get captive portal |
1261 * status for. | 1290 * status for. |
1262 * @param {function(!chrome.networkingPrivate.CaptivePortalStatus):void} | 1291 * @param {function(!chrome.networkingPrivate.CaptivePortalStatus):void} |
1263 * callback A callback function that returns the results of the query for | 1292 * callback A callback function that returns the results of the query for |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1330 */ | 1359 */ |
1331 chrome.networkingPrivate.onDeviceStateListChanged; | 1360 chrome.networkingPrivate.onDeviceStateListChanged; |
1332 | 1361 |
1333 /** | 1362 /** |
1334 * Fired when a portal detection for a network completes. Sends the guid of the | 1363 * Fired when a portal detection for a network completes. Sends the guid of the |
1335 * network and the corresponding captive portal status. | 1364 * network and the corresponding captive portal status. |
1336 * @type {!ChromeEvent} | 1365 * @type {!ChromeEvent} |
1337 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted | 1366 * @see https://developer.chrome.com/extensions/networkingPrivate#event-onPortal DetectionCompleted |
1338 */ | 1367 */ |
1339 chrome.networkingPrivate.onPortalDetectionCompleted; | 1368 chrome.networkingPrivate.onPortalDetectionCompleted; |
OLD | NEW |