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..fd5f3d79cb60ceff35d9c0787d4d4b8e5d887794 |
--- /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 { |
+ enum PacketType {icmp, udp}; |
+ |
+ dictionary SendPacketOptions { |
+ DOMString ip; |
+ PacketType? type; |
+ long? ttl; |
+ long? timeout; |
+ long? size; |
+ }; |
+ |
+ dictionary SendPacketResult { |
+ DOMString ip; |
+ long latency; |
+ }; |
+ |
+ |
xiaowenx
2013/06/17 06:19:38
is the extra empty line needed?
Bei Zhang
2013/06/17 07:30:54
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); |
+ }; |
+}; |