Chromium Code Reviews| 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 diagnostics { | |
| 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; | |
|
asargent_no_longer_on_chrome
2013/06/20 22:51:29
It would be good mention something in the comments
Bei Zhang
2013/06/21 08:31:07
Done.
| |
| 15 }; | |
| 16 | |
| 17 dictionary SendPacketResult { | |
| 18 DOMString ip; | |
|
asargent_no_longer_on_chrome
2013/06/20 22:51:29
nit: It's not clear what the meaning of this field
Bei Zhang
2013/06/21 08:31:07
Done.
| |
| 19 double latency; | |
|
asargent_no_longer_on_chrome
2013/06/20 22:51:29
nit: Can you add a comment here about the units of
Bei Zhang
2013/06/21 08:31:07
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 |