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 enum PacketType {icmp, udp}; | |
7 | |
8 dictionary SendPacketOptions { | |
9 DOMString ip; | |
10 PacketType? type; | |
11 long? ttl; | |
12 long? timeout; | |
13 long? size; | |
14 }; | |
15 | |
16 dictionary SendPacketResult { | |
17 DOMString ip; | |
18 long latency; | |
19 }; | |
20 | |
21 | |
xiaowenx
2013/06/17 06:19:38
is the extra empty line needed?
Bei Zhang
2013/06/17 07:30:54
Done.
| |
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 |