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

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

Issue 23867002: Move dns API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missing dns.idl file 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 // Experimental.dns.
6 namespace experimental.dns {
7
8 dictionary ResolveCallbackResolveInfo {
9 // The result code. Zero indicates success.
10 long resultCode;
11
12 // A string representing the IP address literal. Supplied only if resultCode
13 // indicates success. Note that we presently return only IPv4 addresses.
14 DOMString? address;
15 };
16
17 callback ResolveCallback = void (ResolveCallbackResolveInfo resolveInfo);
18
19 interface Functions {
20 // Resolves the given hostname or IP address literal.
21 // |hostname| : The hostname to resolve.
22 // |callback| : Called when the resolution operation completes.
23 static void resolve(DOMString hostname,
24 ResolveCallback callback);
25 };
26
27 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/dns.idl ('k') | chrome/common/extensions/api/extension_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698