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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 namespace pingPrivate {
6 enum PacketType {icmp, udp};
7
8 dictionary SendPacketOptions {
9 DOMString ip;
10 PacketType? type;
11 long? ttl;
12 long? timeout;
13 long? size;
14 };
15
16 dictionary SendPacketResult {
17 DOMString ip;
18 long latency;
19 };
20
21
xiaowenx 2013/06/17 06:19:38 is the extra empty line needed?
Bei Zhang 2013/06/17 07:30:54 Done.
22 callback SendPacketCallback = void(SendPacketResult result);
23
24 interface Functions {
25 // Send a packet of the given type with the given parameters.
26 static void sendPacket(SendPacketOptions options,
27 SendPacketCallback callback);
28 };
29 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698