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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/c/private/ppb_net_address_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_net_address_private.idl
diff --git a/ppapi/api/private/ppb_net_address_private.idl b/ppapi/api/private/ppb_net_address_private.idl
index ecf6416be5d8502a843b26026b1b27be04250c46..374164e905cacf70d8407fd4b30279f644045ed6 100644
--- a/ppapi/api/private/ppb_net_address_private.idl
+++ b/ppapi/api/private/ppb_net_address_private.idl
@@ -12,6 +12,22 @@ label Chrome {
M18 = 1.0
};
+[assert_size(4)]
+enum PP_NetAddressFamily_Private {
+ /**
+ * The address family is unspecified.
+ */
+ PP_NETADDRESSFAMILY_UNSPECIFIED = 0,
+ /**
+ * The Internet Protocol version 4 (IPv4) address family.
+ */
+ PP_NETADDRESSFAMILY_IPV4 = 1,
+ /**
+ * The Internet Protocol version 6 (IPv6) address family.
+ */
+ PP_NETADDRESSFAMILY_IPV6 = 2
+};
+
/**
* This is an opaque type holding a network address.
*/
@@ -64,8 +80,8 @@ interface PPB_NetAddress_Private {
* Gets the address family.
*/
[version=1.0]
- uint16_t GetFamily([in] PP_NetAddress_Private addr);
-
+ PP_NetAddressFamily_Private GetFamily([in] PP_NetAddress_Private addr);
+
/**
* Gets the port. The port is returned in host byte order.
*/
« 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