Chromium Code Reviews| 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 M17 = 0.1, | 11 M17 = 0.1, |
| 12 M19 = 1.0 | 12 M19 = 1.0 |
|
Sergey Ulanov
2012/03/16 21:32:53
Not sure if I need to add 1.1 because it's still M
viettrungluu
2012/03/16 22:19:15
Yes you do.
Sergey Ulanov
2012/03/16 22:31:17
Ok, then what label should I use here for 1.1?
If
noelallen1
2012/03/20 00:48:58
It's a question of what you are planning to ship.
noelallen1
2012/03/20 01:01:22
Here's my understanding.
A new function was added
viettrungluu
2012/03/20 12:51:34
Version 1.0 is already being used by Pepper Flash,
viettrungluu
2012/03/20 12:51:34
If we put "M19 = 1.1", will the version 1.0 struct
Sergey Ulanov
2012/03/20 16:52:53
Yes, but this particular CL just adds new methods
Sergey Ulanov
2012/03/20 16:52:53
No. 1.0 will be in the header only when 1.0 and 1.
| |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 [assert_size(4)] | 15 [assert_size(4)] |
| 16 enum PP_NetAddressFamily_Private { | 16 enum PP_NetAddressFamily_Private { |
| 17 /** | 17 /** |
| 18 * The address family is unspecified. | 18 * The address family is unspecified. |
| 19 */ | 19 */ |
| 20 PP_NETADDRESSFAMILY_UNSPECIFIED = 0, | 20 PP_NETADDRESSFAMILY_UNSPECIFIED = 0, |
| 21 /** | 21 /** |
| 22 * The Internet Protocol version 4 (IPv4) address family. | 22 * The Internet Protocol version 4 (IPv4) address family. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 */ | 61 */ |
| 62 PP_Var Describe([in] PP_Module module, | 62 PP_Var Describe([in] PP_Module module, |
| 63 [in] PP_NetAddress_Private addr, | 63 [in] PP_NetAddress_Private addr, |
| 64 [in] PP_Bool include_port); | 64 [in] PP_Bool include_port); |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * Replaces the port in the given source address. Returns PP_TRUE on success. | 67 * Replaces the port in the given source address. Returns PP_TRUE on success. |
| 68 */ | 68 */ |
| 69 PP_Bool ReplacePort([in] PP_NetAddress_Private src_addr, | 69 PP_Bool ReplacePort([in] PP_NetAddress_Private src_addr, |
| 70 [in] uint16_t port, | 70 [in] uint16_t port, |
| 71 [out] PP_NetAddress_Private dest_addr); | 71 [out] PP_NetAddress_Private addr_out); |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Gets the "any" address (for IPv4 or IPv6); for use with UDP Bind. | 74 * Gets the "any" address (for IPv4 or IPv6); for use with UDP Bind. |
| 75 */ | 75 */ |
| 76 void GetAnyAddress([in] PP_Bool is_ipv6, | 76 void GetAnyAddress([in] PP_Bool is_ipv6, |
| 77 [out] PP_NetAddress_Private addr); | 77 [out] PP_NetAddress_Private addr); |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * Gets the address family. | 80 * Gets the address family. |
| 81 */ | 81 */ |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 92 * Gets the address. The output, address, must be large enough for the | 92 * Gets the address. The output, address, must be large enough for the |
| 93 * current socket family. The output will be the binary representation of an | 93 * current socket family. The output will be the binary representation of an |
| 94 * address for the current socket family. For IPv4 and IPv6 the address is in | 94 * address for the current socket family. For IPv4 and IPv6 the address is in |
| 95 * network byte order. PP_TRUE is returned if the address was successfully | 95 * network byte order. PP_TRUE is returned if the address was successfully |
| 96 * retrieved. | 96 * retrieved. |
| 97 */ | 97 */ |
| 98 [version=1.0] | 98 [version=1.0] |
| 99 PP_Bool GetAddress([in] PP_NetAddress_Private addr, | 99 PP_Bool GetAddress([in] PP_NetAddress_Private addr, |
| 100 [out] mem_t address, | 100 [out] mem_t address, |
| 101 [in] uint16_t address_size); | 101 [in] uint16_t address_size); |
| 102 | |
| 103 /** | |
| 104 * Creates NetAddress with the specified IPv4 address and port | |
| 105 * number. | |
| 106 */ | |
| 107 [version=1.0] | |
|
viettrungluu
2012/03/16 22:19:15
Should be version 1.1.
| |
| 108 void CreateFromIPv4Address([in] uint8_t[4] ip, | |
| 109 [in] uint16_t port, | |
| 110 [out] PP_NetAddress_Private addr_out); | |
| 111 /** | |
| 112 * Creates NetAddress with the specified IPv6 address, scope_id and | |
| 113 * port number. | |
| 114 */ | |
| 115 [version=1.0] | |
| 116 void CreateFromIPv6Address([in] uint8_t[16] ip, | |
| 117 [in] uint32_t scope_id, | |
| 118 [in] uint16_t port, | |
| 119 [out] PP_NetAddress_Private addr_out); | |
| 102 }; | 120 }; |
| OLD | NEW |