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

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

Issue 23451032: Adding namespace-level comment for dns.idl. This will appear on the API summary page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.dns</code> API for dns resolution.
5 namespace dns { 6 namespace dns {
6 7
7 dictionary ResolveCallbackResolveInfo { 8 dictionary ResolveCallbackResolveInfo {
8 // The result code. Zero indicates success. 9 // The result code. Zero indicates success.
9 long resultCode; 10 long resultCode;
10 11
11 // A string representing the IP address literal. Supplied only if resultCode 12 // A string representing the IP address literal. Supplied only if resultCode
12 // indicates success. Note that we presently return only IPv4 addresses. 13 // indicates success. Note that we presently return only IPv4 addresses.
13 DOMString? address; 14 DOMString? address;
14 }; 15 };
15 16
16 callback ResolveCallback = void (ResolveCallbackResolveInfo resolveInfo); 17 callback ResolveCallback = void (ResolveCallbackResolveInfo resolveInfo);
17 18
18 interface Functions { 19 interface Functions {
19 // Resolves the given hostname or IP address literal. 20 // Resolves the given hostname or IP address literal.
20 // |hostname| : The hostname to resolve. 21 // |hostname| : The hostname to resolve.
21 // |callback| : Called when the resolution operation completes. 22 // |callback| : Called when the resolution operation completes.
22 static void resolve(DOMString hostname, 23 static void resolve(DOMString hostname,
23 ResolveCallback callback); 24 ResolveCallback callback);
24 }; 25 };
25 26
26 }; 27 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698