| OLD | NEW |
| (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 [ | |
| 6 { | |
| 7 "namespace": "experimental.dns", | |
| 8 "nodoc": true, | |
| 9 "functions": [ | |
| 10 { | |
| 11 "name": "resolve", | |
| 12 "type": "function", | |
| 13 "description": "Resolves the given hostname or IP address literal.", | |
| 14 "parameters": [ | |
| 15 { | |
| 16 "name": "hostname", | |
| 17 "type": "string", | |
| 18 "description": "The hostname to resolve." | |
| 19 }, | |
| 20 { | |
| 21 "name": "callback", | |
| 22 "type": "function", | |
| 23 "description": "Called when the resolution operation completes.", | |
| 24 "parameters": [ | |
| 25 { | |
| 26 "type": "object", | |
| 27 "name": "resolveInfo", | |
| 28 "properties": { | |
| 29 "resultCode": { | |
| 30 "type": "integer", | |
| 31 "description": "The result code. Zero indicates success." | |
| 32 }, | |
| 33 "address": { | |
| 34 "type": "string", | |
| 35 "description": "A string representing the IP address literal
. Supplied only if resultCode indicates success. Note that we presently return o
nly IPv4 addresses.", | |
| 36 "optional": true | |
| 37 } | |
| 38 } | |
| 39 } | |
| 40 ] | |
| 41 } | |
| 42 ] | |
| 43 } | |
| 44 ] | |
| 45 } | |
| 46 ] | |
| OLD | NEW |