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 M17 = 0.1, | 12 M17 = 0.1, |
12 M19_0 = 1.0, | 13 M19_0 = 1.0, |
13 M19_1 = 1.1 | 14 M19_1 = 1.1 |
14 }; | 15 }; |
15 | 16 |
16 [assert_size(4)] | 17 [assert_size(4)] |
17 enum PP_NetAddressFamily_Private { | 18 enum PP_NetAddressFamily_Private { |
18 /** | 19 /** |
19 * The address family is unspecified. | 20 * The address family is unspecified. |
20 */ | 21 */ |
(...skipping 15 matching lines...) Expand all Loading... |
36 [assert_size(132)] | 37 [assert_size(132)] |
37 struct PP_NetAddress_Private { | 38 struct PP_NetAddress_Private { |
38 uint32_t size; | 39 uint32_t size; |
39 char[128] data; | 40 char[128] data; |
40 }; | 41 }; |
41 | 42 |
42 /** | 43 /** |
43 * The <code>PPB_NetAddress_Private</code> interface provides operations on | 44 * The <code>PPB_NetAddress_Private</code> interface provides operations on |
44 * network addresses. | 45 * network addresses. |
45 */ | 46 */ |
46 interface PPB_NetAddress_Private { | 47 [version=0.1] interface PPB_NetAddress_Private { |
47 /** | 48 /** |
48 * 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). |
49 */ | 50 */ |
50 PP_Bool AreEqual([in] PP_NetAddress_Private addr1, | 51 PP_Bool AreEqual([in] PP_NetAddress_Private addr1, |
51 [in] PP_NetAddress_Private addr2); | 52 [in] PP_NetAddress_Private addr2); |
52 | 53 |
53 /** | 54 /** |
54 * Returns PP_TRUE if the two addresses refer to the same host. | 55 * Returns PP_TRUE if the two addresses refer to the same host. |
55 */ | 56 */ |
56 PP_Bool AreHostsEqual([in] PP_NetAddress_Private addr1, | 57 PP_Bool AreHostsEqual([in] PP_NetAddress_Private addr1, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 /** | 120 /** |
120 * Creates NetAddress with the specified IPv6 address, scope_id and | 121 * Creates NetAddress with the specified IPv6 address, scope_id and |
121 * port number. | 122 * port number. |
122 */ | 123 */ |
123 [version=1.1] | 124 [version=1.1] |
124 void CreateFromIPv6Address([in] uint8_t[16] ip, | 125 void CreateFromIPv6Address([in] uint8_t[16] ip, |
125 [in] uint32_t scope_id, | 126 [in] uint32_t scope_id, |
126 [in] uint16_t port, | 127 [in] uint16_t port, |
127 [out] PP_NetAddress_Private addr_out); | 128 [out] PP_NetAddress_Private addr_out); |
128 }; | 129 }; |
OLD | NEW |