OLD | NEW |
---|---|
(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 pingPrivate { | |
6 dictionary SendPacketOptions { | |
7 // Target IP address. | |
8 DOMString ip; | |
9 // Packet time to live value. | |
10 long? ttl; | |
11 // Packet timeout in seconds. | |
12 long? timeout; | |
13 // Size of the payload. | |
14 long? size; | |
15 }; | |
16 | |
17 dictionary SendPacketResult { | |
18 DOMString ip; | |
19 long latency; | |
xiaowenx
2013/06/17 08:33:08
This is returned as type double.
Bei Zhang
2013/06/17 09:13:11
Done.
| |
20 }; | |
21 | |
22 callback SendPacketCallback = void(SendPacketResult result); | |
23 | |
24 interface Functions { | |
25 // Send a packet of the given type with the given parameters. | |
26 static void sendPacket(SendPacketOptions options, | |
27 SendPacketCallback callback); | |
28 }; | |
29 }; | |
OLD | NEW |