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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 Enabled, | 51 Enabled, |
52 // Device is prohibited. | 52 // Device is prohibited. |
53 Prohibited | 53 Prohibited |
54 }; | 54 }; |
55 | 55 |
56 enum IPConfigType { | 56 enum IPConfigType { |
57 DHCP, Static | 57 DHCP, Static |
58 }; | 58 }; |
59 | 59 |
60 enum NetworkType { | 60 enum NetworkType { |
61 All, Cellular, Ethernet, VPN, Wireless, WiFi, WiMAX | 61 All, Cellular, Ethernet, Tether, VPN, Wireless, WiFi, WiMAX |
62 }; | 62 }; |
63 | 63 |
64 enum ProxySettingsType { | 64 enum ProxySettingsType { |
65 Direct, Manual, PAC, WPAD | 65 Direct, Manual, PAC, WPAD |
66 }; | 66 }; |
67 | 67 |
68 // Managed property types. These types all share a common structure: | 68 // Managed property types. These types all share a common structure: |
69 // Active: For properties that are translated from the configuration | 69 // Active: For properties that are translated from the configuration |
70 // manager (e.g. Shill), the 'active' value currently in use by the | 70 // manager (e.g. Shill), the 'active' value currently in use by the |
71 // configuration manager. | 71 // configuration manager. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 DOMString currentPin; | 195 DOMString currentPin; |
196 | 196 |
197 // If provided, change the PIN to |newPin|. |requirePin| must be true. | 197 // If provided, change the PIN to |newPin|. |requirePin| must be true. |
198 DOMString? newPin; | 198 DOMString? newPin; |
199 }; | 199 }; |
200 | 200 |
201 dictionary IssuerSubjectPattern { | 201 dictionary IssuerSubjectPattern { |
202 DOMString? CommonName; | 202 DOMString? CommonName; |
203 DOMString? Locality; | 203 DOMString? Locality; |
204 DOMString? Organization; | 204 DOMString? Organization; |
205 DOMString? OrganizationalUnit; | 205 DOMString? OrganizationalUnit; |
206 }; | 206 }; |
207 | 207 |
208 dictionary ManagedIssuerSubjectPattern { | 208 dictionary ManagedIssuerSubjectPattern { |
209 ManagedDOMString? CommonName; | 209 ManagedDOMString? CommonName; |
210 ManagedDOMString? Locality; | 210 ManagedDOMString? Locality; |
211 ManagedDOMString? Organization; | 211 ManagedDOMString? Organization; |
212 ManagedDOMString? OrganizationalUnit; | 212 ManagedDOMString? OrganizationalUnit; |
213 }; | 213 }; |
214 | 214 |
215 dictionary CertificatePattern { | 215 dictionary CertificatePattern { |
216 DOMString[]? EnrollmentURI; | 216 DOMString[]? EnrollmentURI; |
217 IssuerSubjectPattern? Issuer; | 217 IssuerSubjectPattern? Issuer; |
218 DOMString[]? IssuerCARef; | 218 DOMString[]? IssuerCARef; |
219 IssuerSubjectPattern? Subject; | 219 IssuerSubjectPattern? Subject; |
220 }; | 220 }; |
221 | 221 |
222 dictionary ManagedCertificatePattern { | 222 dictionary ManagedCertificatePattern { |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
567 dictionary ManagedEthernetProperties { | 567 dictionary ManagedEthernetProperties { |
568 ManagedBoolean? AutoConnect; | 568 ManagedBoolean? AutoConnect; |
569 ManagedDOMString? Authentication; | 569 ManagedDOMString? Authentication; |
570 ManagedEAPProperties? EAP; | 570 ManagedEAPProperties? EAP; |
571 }; | 571 }; |
572 | 572 |
573 dictionary EthernetStateProperties { | 573 dictionary EthernetStateProperties { |
574 DOMString Authentication; | 574 DOMString Authentication; |
575 }; | 575 }; |
576 | 576 |
577 dictionary TetherProperties { | |
578 long? BatteryPercentage; | |
579 DOMString? Carrier; | |
stevenjb
2017/04/14 22:04:49
Isn't Carrier required? (no '?' for required prope
Kyle Horimoto
2017/04/17 21:05:11
Done.
| |
580 long? SignalStrength; | |
581 }; | |
582 | |
583 dictionary ManagedTetherProperties { | |
584 long? BatteryPercentage; | |
stevenjb
2017/04/14 22:04:49
ManagedLong, etc.
Kyle Horimoto
2017/04/17 21:05:11
Done.
| |
585 DOMString? Carrier; | |
586 long? SignalStrength; | |
587 }; | |
588 | |
577 dictionary VPNProperties { | 589 dictionary VPNProperties { |
578 boolean? AutoConnect; | 590 boolean? AutoConnect; |
579 DOMString? Host; | 591 DOMString? Host; |
580 IPSecProperties? IPsec; | 592 IPSecProperties? IPsec; |
581 L2TPProperties? L2TP; | 593 L2TPProperties? L2TP; |
582 OpenVPNProperties? OpenVPN; | 594 OpenVPNProperties? OpenVPN; |
583 ThirdPartyVPNProperties? ThirdPartyVPN; | 595 ThirdPartyVPNProperties? ThirdPartyVPN; |
584 DOMString? Type; | 596 DOMString? Type; |
585 }; | 597 }; |
586 | 598 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
682 IPConfigProperties[]? IPConfigs; | 694 IPConfigProperties[]? IPConfigs; |
683 DOMString? MacAddress; | 695 DOMString? MacAddress; |
684 DOMString? Name; | 696 DOMString? Name; |
685 IPConfigType? NameServersConfigType; | 697 IPConfigType? NameServersConfigType; |
686 long? Priority; | 698 long? Priority; |
687 ProxySettings? ProxySettings; | 699 ProxySettings? ProxySettings; |
688 boolean? RestrictedConnectivity; | 700 boolean? RestrictedConnectivity; |
689 IPConfigProperties? StaticIPConfig; | 701 IPConfigProperties? StaticIPConfig; |
690 IPConfigProperties? SavedIPConfig; | 702 IPConfigProperties? SavedIPConfig; |
691 DOMString? Source; | 703 DOMString? Source; |
704 TetherProperties? Tether; | |
692 NetworkType Type; | 705 NetworkType Type; |
693 VPNProperties? VPN; | 706 VPNProperties? VPN; |
694 WiFiProperties? WiFi; | 707 WiFiProperties? WiFi; |
695 WiMAXProperties? WiMAX; | 708 WiMAXProperties? WiMAX; |
696 }; | 709 }; |
697 | 710 |
698 dictionary ManagedProperties { | 711 dictionary ManagedProperties { |
699 ManagedCellularProperties? Cellular; | 712 ManagedCellularProperties? Cellular; |
700 boolean? Connectable; | 713 boolean? Connectable; |
701 ConnectionStateType? ConnectionState; | 714 ConnectionStateType? ConnectionState; |
702 DOMString? ErrorState; | 715 DOMString? ErrorState; |
703 ManagedEthernetProperties? Ethernet; | 716 ManagedEthernetProperties? Ethernet; |
704 DOMString GUID; | 717 DOMString GUID; |
705 ManagedIPConfigType? IPAddressConfigType; | 718 ManagedIPConfigType? IPAddressConfigType; |
706 IPConfigProperties[]? IPConfigs; | 719 IPConfigProperties[]? IPConfigs; |
707 DOMString? MacAddress; | 720 DOMString? MacAddress; |
708 ManagedDOMString? Name; | 721 ManagedDOMString? Name; |
709 ManagedIPConfigType? NameServersConfigType; | 722 ManagedIPConfigType? NameServersConfigType; |
710 ManagedLong? Priority; | 723 ManagedLong? Priority; |
711 ManagedProxySettings? ProxySettings; | 724 ManagedProxySettings? ProxySettings; |
712 boolean? RestrictedConnectivity; | 725 boolean? RestrictedConnectivity; |
713 ManagedIPConfigProperties? StaticIPConfig; | 726 ManagedIPConfigProperties? StaticIPConfig; |
714 IPConfigProperties? SavedIPConfig; | 727 IPConfigProperties? SavedIPConfig; |
715 DOMString? Source; | 728 DOMString? Source; |
729 ManagedTetherProperties? Tether; | |
716 NetworkType Type; | 730 NetworkType Type; |
717 ManagedVPNProperties? VPN; | 731 ManagedVPNProperties? VPN; |
718 ManagedWiFiProperties? WiFi; | 732 ManagedWiFiProperties? WiFi; |
719 ManagedWiMAXProperties? WiMAX; | 733 ManagedWiMAXProperties? WiMAX; |
720 }; | 734 }; |
721 | 735 |
722 dictionary NetworkStateProperties { | 736 dictionary NetworkStateProperties { |
723 CellularStateProperties? Cellular; | 737 CellularStateProperties? Cellular; |
724 boolean? Connectable; | 738 boolean? Connectable; |
725 ConnectionStateType? ConnectionState; | 739 ConnectionStateType? ConnectionState; |
726 EthernetStateProperties? Ethernet; | 740 EthernetStateProperties? Ethernet; |
727 DOMString? ErrorState; | 741 DOMString? ErrorState; |
728 DOMString GUID; | 742 DOMString GUID; |
729 DOMString? Name; | 743 DOMString? Name; |
730 long? Priority; | 744 long? Priority; |
731 DOMString? Source; | 745 DOMString? Source; |
746 TetherProperties? Tether; | |
732 NetworkType Type; | 747 NetworkType Type; |
733 VPNStateProperties? VPN; | 748 VPNStateProperties? VPN; |
734 WiFiStateProperties? WiFi; | 749 WiFiStateProperties? WiFi; |
735 WiMAXStateProperties? WiMAX; | 750 WiMAXStateProperties? WiMAX; |
736 }; | 751 }; |
737 | 752 |
738 dictionary DeviceStateProperties { | 753 dictionary DeviceStateProperties { |
739 // Set if the device is enabled. True if the device is currently scanning. | 754 // Set if the device is enabled. True if the device is currently scanning. |
740 boolean? Scanning; | 755 boolean? Scanning; |
741 | 756 |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1067 // 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 |
1068 // have changed. | 1083 // have changed. |
1069 static void onDeviceStateListChanged(); | 1084 static void onDeviceStateListChanged(); |
1070 | 1085 |
1071 // 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 |
1072 // the network and the corresponding captive portal status. | 1087 // the network and the corresponding captive portal status. |
1073 static void onPortalDetectionCompleted(DOMString networkGuid, | 1088 static void onPortalDetectionCompleted(DOMString networkGuid, |
1074 CaptivePortalStatus status); | 1089 CaptivePortalStatus status); |
1075 }; | 1090 }; |
1076 }; | 1091 }; |
OLD | NEW |