Index: chrome/common/extensions/api/ping_private.idl |
diff --git a/chrome/common/extensions/api/ping_private.idl b/chrome/common/extensions/api/ping_private.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d66cd7021eabce6301a490e62e316df905d657e4 |
--- /dev/null |
+++ b/chrome/common/extensions/api/ping_private.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 pingPrivate { |
+ 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; |
+ }; |
+ |
+ dictionary SendPacketResult { |
+ DOMString ip; |
+ long latency; |
xiaowenx
2013/06/17 08:33:08
This is returned as type double.
Bei Zhang
2013/06/17 09:13:11
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); |
+ }; |
+}; |