| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // The <code>chrome.networkingPrivate</code> API is used for configuring | 5 // The <code>chrome.networkingPrivate</code> API is used for configuring |
| 6 // network connections (Cellular, Ethernet, VPN, WiFi or WiMAX). This private | 6 // network connections (Cellular, Ethernet, VPN, WiFi or WiMAX). This private |
| 7 // API is only valid if called from a browser or app associated with the | 7 // API is only valid if called from a browser or app associated with the |
| 8 // primary user. See the Open Network Configuration (ONC) documentation for | 8 // primary user. See the Open Network Configuration (ONC) documentation for |
| 9 // descriptions of properties: | 9 // descriptions of properties: |
| 10 // <a href="https://code.google.com/p/chromium/codesearch#chromium/src/component
s/onc/docs/onc_spec.html"> | 10 // <a href="https://code.google.com/p/chromium/codesearch#chromium/src/component
s/onc/docs/onc_spec.html"> |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 // for $(ref:startConnect). | 954 // for $(ref:startConnect). |
| 955 static void startActivate(DOMString networkGuid, | 955 static void startActivate(DOMString networkGuid, |
| 956 optional DOMString carrier, | 956 optional DOMString carrier, |
| 957 optional VoidCallback callback); | 957 optional VoidCallback callback); |
| 958 | 958 |
| 959 // Verifies that the device is a trusted device. | 959 // Verifies that the device is a trusted device. |
| 960 // |properties|: Properties of the destination to use in verifying that it | 960 // |properties|: Properties of the destination to use in verifying that it |
| 961 // is a trusted device. | 961 // is a trusted device. |
| 962 // |callback|: A callback function that indicates whether or not the device | 962 // |callback|: A callback function that indicates whether or not the device |
| 963 // is a trusted device. | 963 // is a trusted device. |
| 964 [nodoc, deprecated = "Use networking.castPrivate API."] |
| 964 static void verifyDestination(VerificationProperties properties, | 965 static void verifyDestination(VerificationProperties properties, |
| 965 BooleanCallback callback); | 966 BooleanCallback callback); |
| 966 | 967 |
| 967 // Verifies that the device is a trusted device and retrieves encrypted | 968 // Verifies that the device is a trusted device and retrieves encrypted |
| 968 // network credentials. | 969 // network credentials. |
| 969 // |properties|: Properties of the destination to use in verifying that it | 970 // |properties|: Properties of the destination to use in verifying that it |
| 970 // is a trusted device. | 971 // is a trusted device. |
| 971 // |networkGuid|: The GUID of the Cellular network to activate. | 972 // |networkGuid|: The GUID of the Cellular network to activate. |
| 972 // |callback|: A callback function that receives base64-encoded encrypted | 973 // |callback|: A callback function that receives base64-encoded encrypted |
| 973 // credential data to send to a trusted device. | 974 // credential data to send to a trusted device. |
| 975 [nodoc, deprecated = "Use networking.castPrivate API."] |
| 974 static void verifyAndEncryptCredentials(VerificationProperties properties, | 976 static void verifyAndEncryptCredentials(VerificationProperties properties, |
| 975 DOMString networkGuid, | 977 DOMString networkGuid, |
| 976 StringCallback callback); | 978 StringCallback callback); |
| 977 | 979 |
| 978 // Verifies that the device is a trusted device and encrypts supplied | 980 // Verifies that the device is a trusted device and encrypts supplied |
| 979 // data with device public key. | 981 // data with device public key. |
| 980 // |properties|: Properties of the destination to use in verifying that it | 982 // |properties|: Properties of the destination to use in verifying that it |
| 981 // is a trusted device. | 983 // is a trusted device. |
| 982 // |data|: A string containing the base64-encoded data to encrypt. | 984 // |data|: A string containing the base64-encoded data to encrypt. |
| 983 // |callback|: A callback function that receives base64-encoded encrypted | 985 // |callback|: A callback function that receives base64-encoded encrypted |
| 984 // data to send to a trusted device. | 986 // data to send to a trusted device. |
| 987 [nodoc, deprecated = "Use networking.castPrivate API."] |
| 985 static void verifyAndEncryptData(VerificationProperties properties, | 988 static void verifyAndEncryptData(VerificationProperties properties, |
| 986 DOMString data, | 989 DOMString data, |
| 987 StringCallback callback); | 990 StringCallback callback); |
| 988 | 991 |
| 989 // Enables TDLS for WiFi traffic with a specified peer if available. | 992 // Enables TDLS for WiFi traffic with a specified peer if available. |
| 990 // |ip_or_mac_address|: The IP or MAC address of the peer with which to | 993 // |ip_or_mac_address|: The IP or MAC address of the peer with which to |
| 991 // enable a TDLS connection. | 994 // enable a TDLS connection. |
| 992 // |enabled| If true, enable TDLS, otherwise disable TDLS. | 995 // |enabled| If true, enable TDLS, otherwise disable TDLS. |
| 993 // |callback|: A callback function that receives a string with an error or | 996 // |callback|: A callback function that receives a string with an error or |
| 994 // the current TDLS status. 'Failed' indicates that the request failed | 997 // the current TDLS status. 'Failed' indicates that the request failed |
| 995 // (e.g. MAC address lookup failed). 'Timeout' indicates that the lookup | 998 // (e.g. MAC address lookup failed). 'Timeout' indicates that the lookup |
| 996 // timed out. Otherwise a valid status is returned (see | 999 // timed out. Otherwise a valid status is returned (see |
| 997 // $(ref:getWifiTDLSStatus)). | 1000 // $(ref:getWifiTDLSStatus)). |
| 1001 [nodoc, deprecated = "Use networking.castPrivate API."] |
| 998 static void setWifiTDLSEnabledState(DOMString ip_or_mac_address, | 1002 static void setWifiTDLSEnabledState(DOMString ip_or_mac_address, |
| 999 boolean enabled, | 1003 boolean enabled, |
| 1000 optional StringCallback callback); | 1004 optional StringCallback callback); |
| 1001 | 1005 |
| 1002 // Returns the current TDLS status for the specified peer. | 1006 // Returns the current TDLS status for the specified peer. |
| 1003 // |ip_or_mac_address|: The IP or MAC address of the peer. | 1007 // |ip_or_mac_address|: The IP or MAC address of the peer. |
| 1004 // |callback|: A callback function that receives a string with the current | 1008 // |callback|: A callback function that receives a string with the current |
| 1005 // TDLS status which can be 'Connected', 'Disabled', 'Disconnected', | 1009 // TDLS status which can be 'Connected', 'Disabled', 'Disconnected', |
| 1006 // 'Nonexistent', or 'Unknown'. | 1010 // 'Nonexistent', or 'Unknown'. |
| 1011 [nodoc, deprecated = "Use networking.castPrivate API."] |
| 1007 static void getWifiTDLSStatus(DOMString ip_or_mac_address, | 1012 static void getWifiTDLSStatus(DOMString ip_or_mac_address, |
| 1008 StringCallback callback); | 1013 StringCallback callback); |
| 1009 | 1014 |
| 1010 // Returns captive portal status for the network matching 'networkGuid'. | 1015 // Returns captive portal status for the network matching 'networkGuid'. |
| 1011 // |networkGuid|: The GUID of the network to get captive portal status for. | 1016 // |networkGuid|: The GUID of the network to get captive portal status for. |
| 1012 // |callback|: A callback function that returns the results of the query for | 1017 // |callback|: A callback function that returns the results of the query for |
| 1013 // network captive portal status. | 1018 // network captive portal status. |
| 1014 static void getCaptivePortalStatus(DOMString networkGuid, | 1019 static void getCaptivePortalStatus(DOMString networkGuid, |
| 1015 CaptivePortalStatusCallback callback); | 1020 CaptivePortalStatusCallback callback); |
| 1016 | 1021 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 // Fired when the list of devices has changed or any device state properties | 1067 // Fired when the list of devices has changed or any device state properties |
| 1063 // have changed. | 1068 // have changed. |
| 1064 static void onDeviceStateListChanged(); | 1069 static void onDeviceStateListChanged(); |
| 1065 | 1070 |
| 1066 // Fired when a portal detection for a network completes. Sends the guid of | 1071 // Fired when a portal detection for a network completes. Sends the guid of |
| 1067 // the network and the corresponding captive portal status. | 1072 // the network and the corresponding captive portal status. |
| 1068 static void onPortalDetectionCompleted(DOMString networkGuid, | 1073 static void onPortalDetectionCompleted(DOMString networkGuid, |
| 1069 CaptivePortalStatus status); | 1074 CaptivePortalStatus status); |
| 1070 }; | 1075 }; |
| 1071 }; | 1076 }; |
| OLD | NEW |