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

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: Use avg instead of time 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..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);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698