| OLD | NEW |
| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_HostResolver_Dev</code> interface. | 7 * This file defines the <code>PPB_HostResolver_Dev</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 [generate_thunk] | 10 [generate_thunk] |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * <code>PP_HostResolver_Hint_Dev</code> represents hints for host resolution. | 31 * <code>PP_HostResolver_Hint_Dev</code> represents hints for host resolution. |
| 32 */ | 32 */ |
| 33 [assert_size(8)] | 33 [assert_size(8)] |
| 34 struct PP_HostResolver_Hint_Dev { | 34 struct PP_HostResolver_Hint_Dev { |
| 35 /** | 35 /** |
| 36 * Network address family. | 36 * Network address family. |
| 37 */ | 37 */ |
| 38 PP_NetAddress_Family_Dev family; | 38 PP_NetAddress_Family family; |
| 39 /** | 39 /** |
| 40 * Combination of flags from <code>PP_HostResolver_Flags_Dev</code>. | 40 * Combination of flags from <code>PP_HostResolver_Flags_Dev</code>. |
| 41 */ | 41 */ |
| 42 int32_t flags; | 42 int32_t flags; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * The <code>PPB_HostResolver_Dev</code> interface supports host name | 46 * The <code>PPB_HostResolver_Dev</code> interface supports host name |
| 47 * resolution. | 47 * resolution. |
| 48 * | 48 * |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 */ | 126 */ |
| 127 uint32_t GetNetAddressCount([in] PP_Resource host_resolver); | 127 uint32_t GetNetAddressCount([in] PP_Resource host_resolver); |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * Gets a network address. | 130 * Gets a network address. |
| 131 * | 131 * |
| 132 * @param[in] host_resolver A <code>PP_Resource</code> corresponding to a host | 132 * @param[in] host_resolver A <code>PP_Resource</code> corresponding to a host |
| 133 * resolver. | 133 * resolver. |
| 134 * @param[in] index An index indicating which address to return. | 134 * @param[in] index An index indicating which address to return. |
| 135 * | 135 * |
| 136 * @return A <code>PPB_NetAddress_Dev</code> resource on success; 0 if there | 136 * @return A <code>PPB_NetAddress</code> resource on success; 0 if there is a |
| 137 * is a pending <code>Resolve()</code> call or the previous | 137 * pending <code>Resolve()</code> call or the previous <code>Resolve()</code> |
| 138 * <code>Resolve()</code> call failed, or the specified index is out of range. | 138 * call failed, or the specified index is out of range. |
| 139 */ | 139 */ |
| 140 PP_Resource GetNetAddress([in] PP_Resource host_resolver, | 140 PP_Resource GetNetAddress([in] PP_Resource host_resolver, |
| 141 [in] uint32_t index); | 141 [in] uint32_t index); |
| 142 }; | 142 }; |
| OLD | NEW |