Chromium Code Reviews| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 573 dictionary EthernetStateProperties { | 573 dictionary EthernetStateProperties { |
| 574 DOMString Authentication; | 574 DOMString Authentication; |
| 575 }; | 575 }; |
| 576 | 576 |
| 577 dictionary TetherProperties { | 577 dictionary TetherProperties { |
| 578 long? BatteryPercentage; | 578 long? BatteryPercentage; |
| 579 DOMString? Carrier; | 579 DOMString? Carrier; |
| 580 long? SignalStrength; | 580 long? SignalStrength; |
| 581 }; | 581 }; |
| 582 | 582 |
| 583 dictionary ManagedTetherProperties { | |
| 584 ManagedLong? BatteryPercentage; | |
| 585 ManagedDOMString? Carrier; | |
| 586 ManagedLong? SignalStrength; | |
| 587 }; | |
| 588 | |
| 589 dictionary VPNProperties { | 583 dictionary VPNProperties { |
| 590 boolean? AutoConnect; | 584 boolean? AutoConnect; |
| 591 DOMString? Host; | 585 DOMString? Host; |
| 592 IPSecProperties? IPsec; | 586 IPSecProperties? IPsec; |
| 593 L2TPProperties? L2TP; | 587 L2TPProperties? L2TP; |
| 594 OpenVPNProperties? OpenVPN; | 588 OpenVPNProperties? OpenVPN; |
| 595 ThirdPartyVPNProperties? ThirdPartyVPN; | 589 ThirdPartyVPNProperties? ThirdPartyVPN; |
| 596 DOMString? Type; | 590 DOMString? Type; |
| 597 }; | 591 }; |
| 598 | 592 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 719 IPConfigProperties[]? IPConfigs; | 713 IPConfigProperties[]? IPConfigs; |
| 720 DOMString? MacAddress; | 714 DOMString? MacAddress; |
| 721 ManagedDOMString? Name; | 715 ManagedDOMString? Name; |
| 722 ManagedIPConfigType? NameServersConfigType; | 716 ManagedIPConfigType? NameServersConfigType; |
| 723 ManagedLong? Priority; | 717 ManagedLong? Priority; |
| 724 ManagedProxySettings? ProxySettings; | 718 ManagedProxySettings? ProxySettings; |
| 725 boolean? RestrictedConnectivity; | 719 boolean? RestrictedConnectivity; |
| 726 ManagedIPConfigProperties? StaticIPConfig; | 720 ManagedIPConfigProperties? StaticIPConfig; |
| 727 IPConfigProperties? SavedIPConfig; | 721 IPConfigProperties? SavedIPConfig; |
| 728 DOMString? Source; | 722 DOMString? Source; |
| 729 ManagedTetherProperties? Tether; | 723 TetherProperties? Tether; |
| 730 NetworkType Type; | 724 NetworkType Type; |
| 731 ManagedVPNProperties? VPN; | 725 ManagedVPNProperties? VPN; |
| 732 ManagedWiFiProperties? WiFi; | 726 ManagedWiFiProperties? WiFi; |
| 733 ManagedWiMAXProperties? WiMAX; | 727 ManagedWiMAXProperties? WiMAX; |
| 734 }; | 728 }; |
| 735 | 729 |
| 736 dictionary NetworkStateProperties { | 730 dictionary NetworkStateProperties { |
| 737 CellularStateProperties? Cellular; | 731 CellularStateProperties? Cellular; |
| 738 boolean? Connectable; | 732 boolean? Connectable; |
| 739 ConnectionStateType? ConnectionState; | 733 ConnectionStateType? ConnectionState; |
| 740 EthernetStateProperties? Ethernet; | 734 EthernetStateProperties? Ethernet; |
| 741 DOMString? ErrorState; | 735 DOMString? ErrorState; |
| 742 DOMString GUID; | 736 DOMString GUID; |
| 743 DOMString? Name; | 737 DOMString? Name; |
| 744 long? Priority; | 738 long? Priority; |
| 745 DOMString? Source; | 739 DOMString? Source; |
| 746 TetherProperties? Tether; | 740 TetherProperties? Tether; |
| 747 NetworkType Type; | 741 NetworkType Type; |
|
stevenjb
2017/04/26 17:37:53
You also need:
TetherStateProperties? Tether;
You
Kyle Horimoto
2017/04/26 23:26:22
As discussed offline, we are using TetherPropertie
| |
| 748 VPNStateProperties? VPN; | 742 VPNStateProperties? VPN; |
| 749 WiFiStateProperties? WiFi; | 743 WiFiStateProperties? WiFi; |
| 750 WiMAXStateProperties? WiMAX; | 744 WiMAXStateProperties? WiMAX; |
| 751 }; | 745 }; |
| 752 | 746 |
| 753 dictionary DeviceStateProperties { | 747 dictionary DeviceStateProperties { |
| 754 // Set if the device is enabled. True if the device is currently scanning. | 748 // Set if the device is enabled. True if the device is currently scanning. |
| 755 boolean? Scanning; | 749 boolean? Scanning; |
| 756 | 750 |
| 757 // Set to the SIM lock type if the device type is Cellular and the device | 751 // Set to the SIM lock type if the device type is Cellular and the device |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1082 // Fired when the list of devices has changed or any device state properties | 1076 // Fired when the list of devices has changed or any device state properties |
| 1083 // have changed. | 1077 // have changed. |
| 1084 static void onDeviceStateListChanged(); | 1078 static void onDeviceStateListChanged(); |
| 1085 | 1079 |
| 1086 // Fired when a portal detection for a network completes. Sends the guid of | 1080 // Fired when a portal detection for a network completes. Sends the guid of |
| 1087 // the network and the corresponding captive portal status. | 1081 // the network and the corresponding captive portal status. |
| 1088 static void onPortalDetectionCompleted(DOMString networkGuid, | 1082 static void onPortalDetectionCompleted(DOMString networkGuid, |
| 1089 CaptivePortalStatus status); | 1083 CaptivePortalStatus status); |
| 1090 }; | 1084 }; |
| 1091 }; | 1085 }; |
| OLD | NEW |