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 { |
11 M13 = 0.0, | 11 M13 = 0.0, |
12 M17 = 0.1, | 12 M17 = 0.1, |
13 M19_0 = 1.0, | 13 M19_0 = 1.0, |
14 M19_1 = 1.1 | 14 M19_1 = 1.1 |
15 }; | 15 }; |
16 | 16 |
17 [assert_size(4)] | 17 [assert_size(4)] |
18 enum PP_NetAddressFamily_Private { | 18 enum PP_NetAddressFamily_Private { |
19 /** | 19 /** |
20 * The address family is unspecified. | 20 * The address family is unspecified. |
21 */ | 21 */ |
22 PP_NETADDRESSFAMILY_UNSPECIFIED = 0, | 22 PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED = 0, |
23 /** | 23 /** |
24 * The Internet Protocol version 4 (IPv4) address family. | 24 * The Internet Protocol version 4 (IPv4) address family. |
25 */ | 25 */ |
26 PP_NETADDRESSFAMILY_IPV4 = 1, | 26 PP_NETADDRESSFAMILY_PRIVATE_IPV4 = 1, |
27 /** | 27 /** |
28 * The Internet Protocol version 6 (IPv6) address family. | 28 * The Internet Protocol version 6 (IPv6) address family. |
29 */ | 29 */ |
30 PP_NETADDRESSFAMILY_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 char[128] data; |
(...skipping 79 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 |