| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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>chrome.vpnProvider</code> API to implement a VPN | 5 // Use the <code>chrome.vpnProvider</code> API to implement a VPN |
| 6 // client. | 6 // client. |
| 7 namespace vpnProvider { | 7 [use_movable_types=true] namespace vpnProvider { |
| 8 // A parameters class for the VPN interface. | 8 // A parameters class for the VPN interface. |
| 9 dictionary Parameters { | 9 dictionary Parameters { |
| 10 // IP address for the VPN interface in CIDR notation. | 10 // IP address for the VPN interface in CIDR notation. |
| 11 // IPv4 is currently the only supported mode. | 11 // IPv4 is currently the only supported mode. |
| 12 DOMString address; | 12 DOMString address; |
| 13 // Broadcast address for the VPN interface. (default: deduced | 13 // Broadcast address for the VPN interface. (default: deduced |
| 14 // from IP address and mask) | 14 // from IP address and mask) |
| 15 DOMString? broadcastAddress; | 15 DOMString? broadcastAddress; |
| 16 // MTU setting for the VPN interface. (default: 1500 bytes) | 16 // MTU setting for the VPN interface. (default: 1500 bytes) |
| 17 DOMString? mtu; | 17 DOMString? mtu; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 static void onConfigCreated(DOMString id, DOMString name, object data); | 184 static void onConfigCreated(DOMString id, DOMString name, object data); |
| 185 | 185 |
| 186 // Triggered when there is a UI event for the extension. UI events are | 186 // Triggered when there is a UI event for the extension. UI events are |
| 187 // signals from the platform that indicate to the app that a UI dialog | 187 // signals from the platform that indicate to the app that a UI dialog |
| 188 // needs to be shown to the user. | 188 // needs to be shown to the user. |
| 189 // |event|: The UI event that is triggered. | 189 // |event|: The UI event that is triggered. |
| 190 // |id|: ID of the configuration for which the UI event was triggered. | 190 // |id|: ID of the configuration for which the UI event was triggered. |
| 191 static void onUIEvent(UIEvent event, optional DOMString id); | 191 static void onUIEvent(UIEvent event, optional DOMString id); |
| 192 }; | 192 }; |
| 193 }; | 193 }; |
| OLD | NEW |