| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 dictionary EthernetStateProperties { | 579 dictionary EthernetStateProperties { |
| 580 DOMString Authentication; | 580 DOMString Authentication; |
| 581 }; | 581 }; |
| 582 | 582 |
| 583 dictionary TetherProperties { | 583 dictionary TetherProperties { |
| 584 long? BatteryPercentage; | 584 long? BatteryPercentage; |
| 585 DOMString? Carrier; | 585 DOMString? Carrier; |
| 586 long? SignalStrength; | 586 long? SignalStrength; |
| 587 }; | 587 }; |
| 588 | 588 |
| 589 dictionary ManagedTetherProperties { | |
| 590 ManagedLong? BatteryPercentage; | |
| 591 ManagedDOMString? Carrier; | |
| 592 ManagedLong? SignalStrength; | |
| 593 }; | |
| 594 | |
| 595 dictionary VPNProperties { | 589 dictionary VPNProperties { |
| 596 boolean? AutoConnect; | 590 boolean? AutoConnect; |
| 597 DOMString? Host; | 591 DOMString? Host; |
| 598 IPSecProperties? IPsec; | 592 IPSecProperties? IPsec; |
| 599 L2TPProperties? L2TP; | 593 L2TPProperties? L2TP; |
| 600 OpenVPNProperties? OpenVPN; | 594 OpenVPNProperties? OpenVPN; |
| 601 ThirdPartyVPNProperties? ThirdPartyVPN; | 595 ThirdPartyVPNProperties? ThirdPartyVPN; |
| 602 DOMString? Type; | 596 DOMString? Type; |
| 603 }; | 597 }; |
| 604 | 598 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 IPConfigProperties[]? IPConfigs; | 719 IPConfigProperties[]? IPConfigs; |
| 726 DOMString? MacAddress; | 720 DOMString? MacAddress; |
| 727 ManagedDOMString? Name; | 721 ManagedDOMString? Name; |
| 728 ManagedIPConfigType? NameServersConfigType; | 722 ManagedIPConfigType? NameServersConfigType; |
| 729 ManagedLong? Priority; | 723 ManagedLong? Priority; |
| 730 ManagedProxySettings? ProxySettings; | 724 ManagedProxySettings? ProxySettings; |
| 731 boolean? RestrictedConnectivity; | 725 boolean? RestrictedConnectivity; |
| 732 ManagedIPConfigProperties? StaticIPConfig; | 726 ManagedIPConfigProperties? StaticIPConfig; |
| 733 IPConfigProperties? SavedIPConfig; | 727 IPConfigProperties? SavedIPConfig; |
| 734 DOMString? Source; | 728 DOMString? Source; |
| 735 ManagedTetherProperties? Tether; | 729 TetherProperties? Tether; |
| 736 NetworkType Type; | 730 NetworkType Type; |
| 737 ManagedVPNProperties? VPN; | 731 ManagedVPNProperties? VPN; |
| 738 ManagedWiFiProperties? WiFi; | 732 ManagedWiFiProperties? WiFi; |
| 739 ManagedWiMAXProperties? WiMAX; | 733 ManagedWiMAXProperties? WiMAX; |
| 740 }; | 734 }; |
| 741 | 735 |
| 742 dictionary NetworkStateProperties { | 736 dictionary NetworkStateProperties { |
| 743 CellularStateProperties? Cellular; | 737 CellularStateProperties? Cellular; |
| 744 boolean? Connectable; | 738 boolean? Connectable; |
| 745 ConnectionStateType? ConnectionState; | 739 ConnectionStateType? ConnectionState; |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 // Fired when the list of devices has changed or any device state properties | 1082 // Fired when the list of devices has changed or any device state properties |
| 1089 // have changed. | 1083 // have changed. |
| 1090 static void onDeviceStateListChanged(); | 1084 static void onDeviceStateListChanged(); |
| 1091 | 1085 |
| 1092 // Fired when a portal detection for a network completes. Sends the guid of | 1086 // Fired when a portal detection for a network completes. Sends the guid of |
| 1093 // the network and the corresponding captive portal status. | 1087 // the network and the corresponding captive portal status. |
| 1094 static void onPortalDetectionCompleted(DOMString networkGuid, | 1088 static void onPortalDetectionCompleted(DOMString networkGuid, |
| 1095 CaptivePortalStatus status); | 1089 CaptivePortalStatus status); |
| 1096 }; | 1090 }; |
| 1097 }; | 1091 }; |
| OLD | NEW |