OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_NetAddress_Private</code> interface. | 7 * This file defines the <code>PPB_NetAddress_Private</code> interface. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 19 matching lines...) Expand all Loading... |
30 PP_NETADDRESSFAMILY_PRIVATE_IPV6 = 2 | 30 PP_NETADDRESSFAMILY_PRIVATE_IPV6 = 2 |
31 }; | 31 }; |
32 | 32 |
33 /** | 33 /** |
34 * This is an opaque type holding a network address. Plugins must | 34 * This is an opaque type holding a network address. Plugins must |
35 * never access members of this struct directly. | 35 * never access members of this struct directly. |
36 */ | 36 */ |
37 [assert_size(132)] | 37 [assert_size(132)] |
38 struct PP_NetAddress_Private { | 38 struct PP_NetAddress_Private { |
39 uint32_t size; | 39 uint32_t size; |
40 char[128] data; | 40 int8_t[128] data; |
41 }; | 41 }; |
42 | 42 |
43 /** | 43 /** |
44 * The <code>PPB_NetAddress_Private</code> interface provides operations on | 44 * The <code>PPB_NetAddress_Private</code> interface provides operations on |
45 * network addresses. | 45 * network addresses. |
46 */ | 46 */ |
47 [version=0.1] interface PPB_NetAddress_Private { | 47 [version=0.1] interface PPB_NetAddress_Private { |
48 /** | 48 /** |
49 * Returns PP_TRUE if the two addresses are equal (host and port). | 49 * Returns PP_TRUE if the two addresses are equal (host and port). |
50 */ | 50 */ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 /** | 120 /** |
121 * Creates NetAddress with the specified IPv6 address, scope_id and | 121 * Creates NetAddress with the specified IPv6 address, scope_id and |
122 * port number. | 122 * port number. |
123 */ | 123 */ |
124 [version=1.1] | 124 [version=1.1] |
125 void CreateFromIPv6Address([in] uint8_t[16] ip, | 125 void CreateFromIPv6Address([in] uint8_t[16] ip, |
126 [in] uint32_t scope_id, | 126 [in] uint32_t scope_id, |
127 [in] uint16_t port, | 127 [in] uint16_t port, |
128 [out] PP_NetAddress_Private addr_out); | 128 [out] PP_NetAddress_Private addr_out); |
129 }; | 129 }; |
OLD | NEW |