Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: extensions/common/api/system_network.idl

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/common/api/system_memory.idl ('k') | extensions/common/api/system_storage.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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.system.network</code> API. 5 // Use the <code>chrome.system.network</code> API.
6 namespace system.network { 6 [use_movable_types=true] namespace system.network {
7 dictionary NetworkInterface { 7 dictionary NetworkInterface {
8 // The underlying name of the adapter. On *nix, this will typically be 8 // The underlying name of the adapter. On *nix, this will typically be
9 // "eth0", "wlan0", etc. 9 // "eth0", "wlan0", etc.
10 DOMString name; 10 DOMString name;
11 11
12 // The available IPv4/6 address. 12 // The available IPv4/6 address.
13 DOMString address; 13 DOMString address;
14 14
15 // The prefix length 15 // The prefix length
16 long prefixLength; 16 long prefixLength;
17 }; 17 };
18 18
19 // Callback from the <code>getNetworkInterfaces</code> method. 19 // Callback from the <code>getNetworkInterfaces</code> method.
20 // |networkInterfaces| : Array of object containing network interfaces 20 // |networkInterfaces| : Array of object containing network interfaces
21 // information. 21 // information.
22 callback GetNetworkInterfacesCallback = 22 callback GetNetworkInterfacesCallback =
23 void (NetworkInterface[] networkInterfaces); 23 void (NetworkInterface[] networkInterfaces);
24 24
25 interface Functions { 25 interface Functions {
26 // Retrieves information about local adapters on this system. 26 // Retrieves information about local adapters on this system.
27 // |callback| : Called when local adapter information is available. 27 // |callback| : Called when local adapter information is available.
28 static void getNetworkInterfaces(GetNetworkInterfacesCallback callback); 28 static void getNetworkInterfaces(GetNetworkInterfacesCallback callback);
29 }; 29 };
30 }; 30 };
OLDNEW
« no previous file with comments | « extensions/common/api/system_memory.idl ('k') | extensions/common/api/system_storage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698