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

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

Issue 1841483002: [Extensions] Convert APIs to use movable types [11] (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
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.diagnostics</code> API to query various properties of 5 // Use the <code>chrome.diagnostics</code> API to query various properties of
6 // the environment that may be useful for diagnostics. 6 // the environment that may be useful for diagnostics.
7 namespace diagnostics { 7 [use_movable_types=true] namespace diagnostics {
8 dictionary SendPacketOptions { 8 dictionary SendPacketOptions {
9 // Target IP address. 9 // Target IP address.
10 DOMString ip; 10 DOMString ip;
11 // Packet time to live value. If omitted, the system default value will be 11 // Packet time to live value. If omitted, the system default value will be
12 // used. 12 // used.
13 long? ttl; 13 long? ttl;
14 // Packet timeout in seconds. If omitted, the system default value will be 14 // Packet timeout in seconds. If omitted, the system default value will be
15 // used. 15 // used.
16 long? timeout; 16 long? timeout;
17 // Size of the payload. If omitted, the system default value will be used. 17 // Size of the payload. If omitted, the system default value will be used.
(...skipping 10 matching lines...) Expand all
28 }; 28 };
29 29
30 callback SendPacketCallback = void(SendPacketResult result); 30 callback SendPacketCallback = void(SendPacketResult result);
31 31
32 interface Functions { 32 interface Functions {
33 // Send a packet of the given type with the given parameters. 33 // Send a packet of the given type with the given parameters.
34 static void sendPacket(SendPacketOptions options, 34 static void sendPacket(SendPacketOptions options,
35 SendPacketCallback callback); 35 SendPacketCallback callback);
36 }; 36 };
37 }; 37 };
OLDNEW
« no previous file with comments | « extensions/common/api/declarative_web_request.json ('k') | extensions/common/api/display_source.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698