| Index: chrome/common/extensions/api/diagnostics_private.idl
|
| diff --git a/chrome/common/extensions/api/diagnostics_private.idl b/chrome/common/extensions/api/diagnostics_private.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..34a633e33c2bd09f572d44c7b46c14f4f8211c73
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/diagnostics_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 diagnosticsPrivate {
|
| + 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;
|
| + double latency;
|
| + };
|
| +
|
| + 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);
|
| + };
|
| +};
|
|
|