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

Side by Side Diff: chrome/common/extensions/api/diagnostics.idl

Issue 17210002: Connectivity Diagnostics API: chrome.diagnostics.sendPacket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change namespace name 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 diagnostics {
6 dictionary SendPacketOptions {
7 // Target IP address.
8 DOMString ip;
9 // Packet time to live value.
10 long? ttl;
11 // Packet timeout in seconds.
12 long? timeout;
13 // Size of the payload.
14 long? size;
asargent_no_longer_on_chrome 2013/06/20 22:51:29 It would be good mention something in the comments
Bei Zhang 2013/06/21 08:31:07 Done.
15 };
16
17 dictionary SendPacketResult {
18 DOMString ip;
asargent_no_longer_on_chrome 2013/06/20 22:51:29 nit: It's not clear what the meaning of this field
Bei Zhang 2013/06/21 08:31:07 Done.
19 double latency;
asargent_no_longer_on_chrome 2013/06/20 22:51:29 nit: Can you add a comment here about the units of
Bei Zhang 2013/06/21 08:31:07 Done.
20 };
21
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