Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: chrome/common/extensions/api/ping_private.idl

Issue 17210002: Connectivity Diagnostics API: chrome.diagnostics.sendPacket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698