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 // Use the <code>networking.config</code> API to authenticate to captive | 5 // Use the <code>networking.config</code> API to authenticate to captive |
6 // portals. | 6 // portals. |
7 namespace networking.config { | 7 [use_movable_types=true] namespace networking.config { |
8 // Indicator for the type of network used in $(ref:NetworkInfo). | 8 // Indicator for the type of network used in $(ref:NetworkInfo). |
9 enum NetworkType { WiFi }; | 9 enum NetworkType { WiFi }; |
10 | 10 |
11 // A dictionary identifying filtered networks. One of <code>GUID</code>, | 11 // A dictionary identifying filtered networks. One of <code>GUID</code>, |
12 // <code>SSID</code> or <code>HexSSID</code> must be set. <code>BSSID</code> | 12 // <code>SSID</code> or <code>HexSSID</code> must be set. <code>BSSID</code> |
13 // and <code>Security</code> are ignored when filtering networks. | 13 // and <code>Security</code> are ignored when filtering networks. |
14 dictionary NetworkInfo { | 14 dictionary NetworkInfo { |
15 // Currently only WiFi supported. | 15 // Currently only WiFi supported. |
16 NetworkType Type; | 16 NetworkType Type; |
17 | 17 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // set using the $(ref:setNetworkFilter). | 94 // set using the $(ref:setNetworkFilter). |
95 // Upon receiving this event the extension should start its authentication | 95 // Upon receiving this event the extension should start its authentication |
96 // attempt with the captive portal. When the extension finishes its attempt, | 96 // attempt with the captive portal. When the extension finishes its attempt, |
97 // it must call $(ref:finishAuthentication) with the <code>GUID</code> | 97 // it must call $(ref:finishAuthentication) with the <code>GUID</code> |
98 // received with this event and the appropriate authentication result. | 98 // received with this event and the appropriate authentication result. |
99 // |networkInfo|: Information about the network on which a captive portal | 99 // |networkInfo|: Information about the network on which a captive portal |
100 // was detected. | 100 // was detected. |
101 static void onCaptivePortalDetected(NetworkInfo networkInfo); | 101 static void onCaptivePortalDetected(NetworkInfo networkInfo); |
102 }; | 102 }; |
103 }; | 103 }; |
OLD | NEW |