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

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') | ppapi/c/private/ppb_net_address_private.h » ('J')
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..e8a190f8b5df4e3eb3e241e2b80b3bb7ba5d607c 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_AddressFamily_Private {
+ /**
+ * The address family is unspecified.
+ */
+ PP_ADDRESSFAMILY_UNSPECIFIED = 0,
+ /**
+ * The Internet Protocol version 4 (IPv4) address family.
+ */
+ PP_ADDRESSFAMILY_IPV4 = 1,
+ /**
+ * The Internet Protocol version 6 (IPv6) address family.
+ */
+ PP_ADDRESSFAMILY_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_AddressFamily_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') | ppapi/c/private/ppb_net_address_private.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698