Chromium Code Reviews| Index: chrome/common/extensions/api/diagnostics.idl |
| diff --git a/chrome/common/extensions/api/diagnostics.idl b/chrome/common/extensions/api/diagnostics.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7ecc7bd600e33c658eaa0e29ec055ea7d361beca |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/diagnostics.idl |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +namespace diagnostics { |
| + dictionary SendPacketOptions { |
| + // Target IP address. |
| + DOMString ip; |
| + // Packet time to live value. |
| + long? ttl; |
| + // Packet timeout in seconds. |
| + long? timeout; |
| + // Size of the payload. |
| + 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.
|
| + }; |
| + |
| + dictionary SendPacketResult { |
| + 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.
|
| + 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.
|
| + }; |
| + |
| + callback SendPacketCallback = void(SendPacketResult result); |
| + |
| + interface Functions { |
| + // Send a packet of the given type with the given parameters. |
| + static void sendPacket(SendPacketOptions options, |
| + SendPacketCallback callback); |
| + }; |
| +}; |