Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: ppapi/api/private/ppb_net_address_private.idl

Issue 9398003: Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private value instead of uint1… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/private/ppb_net_address_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 M18 = 1.0 12 M18 = 1.0
13 }; 13 };
14 14
15 [assert_size(4)]
16 enum PP_NetAddressFamily_Private {
17 /**
18 * The address family is unspecified.
19 */
20 PP_NETADDRESSFAMILY_UNSPECIFIED = 0,
21 /**
22 * The Internet Protocol version 4 (IPv4) address family.
23 */
24 PP_NETADDRESSFAMILY_IPV4 = 1,
25 /**
26 * The Internet Protocol version 6 (IPv6) address family.
27 */
28 PP_NETADDRESSFAMILY_IPV6 = 2
29 };
30
15 /** 31 /**
16 * This is an opaque type holding a network address. 32 * This is an opaque type holding a network address.
17 */ 33 */
18 [assert_size(132)] 34 [assert_size(132)]
19 struct PP_NetAddress_Private { 35 struct PP_NetAddress_Private {
20 uint32_t size; 36 uint32_t size;
21 char[128] data; 37 char[128] data;
22 }; 38 };
23 39
24 /** 40 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 /** 73 /**
58 * 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.
59 */ 75 */
60 void GetAnyAddress([in] PP_Bool is_ipv6, 76 void GetAnyAddress([in] PP_Bool is_ipv6,
61 [out] PP_NetAddress_Private addr); 77 [out] PP_NetAddress_Private addr);
62 78
63 /** 79 /**
64 * Gets the address family. 80 * Gets the address family.
65 */ 81 */
66 [version=1.0] 82 [version=1.0]
67 uint16_t GetFamily([in] PP_NetAddress_Private addr); 83 PP_NetAddressFamily_Private GetFamily([in] PP_NetAddress_Private addr);
68 84
69 /** 85 /**
70 * Gets the port. The port is returned in host byte order. 86 * Gets the port. The port is returned in host byte order.
71 */ 87 */
72 [version=1.0] 88 [version=1.0]
73 uint16_t GetPort([in] PP_NetAddress_Private addr); 89 uint16_t GetPort([in] PP_NetAddress_Private addr);
74 90
75 /** 91 /**
76 * 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
77 * 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
78 * 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
79 * 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
80 * retrieved. 96 * retrieved.
81 */ 97 */
82 [version=1.0] 98 [version=1.0]
83 PP_Bool GetAddress([in] PP_NetAddress_Private addr, 99 PP_Bool GetAddress([in] PP_NetAddress_Private addr,
84 [out] mem_t address, 100 [out] mem_t address,
85 [in] uint16_t address_size); 101 [in] uint16_t address_size);
86 }; 102 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_net_address_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698