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

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

Issue 17210002: Connectivity Diagnostics API: chrome.diagnostics.sendPacket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 namespace diagnostics {
6 dictionary SendPacketOptions {
7 // Target IP address.
8 DOMString ip;
9 // Packet time to live value. If omitted, the system default value will be
10 // used.
11 long? ttl;
12 // Packet timeout in seconds. If omitted, the system default value will be
13 // used.
14 long? timeout;
15 // Size of the payload. If omitted, the system default value will be used.
16 long? size;
17 };
18
19 dictionary SendPacketResult {
20 // The IP of the host which we recieves the ICMP reply from.
21 // The IP may differs from our target IP if the packet's ttl is used up.
22 DOMString ip;
23
24 // Latency in millisenconds.
25 double latency;
26 };
27
28 callback SendPacketCallback = void(SendPacketResult result);
29
30 interface Functions {
31 // Send a packet of the given type with the given parameters.
32 static void sendPacket(SendPacketOptions options,
33 SendPacketCallback callback);
34 };
35 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698