Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / api / system_network.idl
blobbbc28ae9dd51d2e16ed606bdb5392615fcdcd78f
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Use the <code>chrome.system.network</code> API.
6 namespace system.network {
7 dictionary NetworkInterface {
8 // The underlying name of the adapter. On *nix, this will typically be
9 // "eth0", "wlan0", etc.
10 DOMString name;
12 // The available IPv4/6 address.
13 DOMString address;
15 // The prefix length
16 long prefixLength;
19 // Callback from the <code>getNetworkInterfaces</code> method.
20 // |networkInterfaces| : Array of object containing network interfaces
21 // information.
22 callback GetNetworkInterfacesCallback =
23 void (NetworkInterface[] networkInterfaces);
25 interface Functions {
26 // Retrieves information about local adapters on this system.
27 // |callback| : Called when local adapter information is available.
28 static void getNetworkInterfaces(GetNetworkInterfacesCallback callback);