summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/host_resolver_resource.cc
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 23:17:46 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 23:17:46 +0000
commitddecdae52c53779b784bd0daec192ae0a3afe925 (patch)
tree595d2b6e2aaf41d8f0a76b54bf84a43ee90eb2e8 /ppapi/proxy/host_resolver_resource.cc
parent3b4b2f071a372d1645ab6d121c37c18c29458705 (diff)
downloadchromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.zip
chromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.tar.gz
chromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.tar.bz2
Add "PRIVATE" to the enum names of some private Pepper networking APIs:
- ppb_net_address_private.idl - ppb_host_resolver_private.idl - ppb_tcp_socket_private.idl - ppb_udp_socket_private.idl Currently, we have very similar enum names in the private and public Pepper networking APIs (for example, PP_NETADDRESSFAMILY_IPV4 and PP_NETADDRESS_FAMILY_IPV4). The purpose of this CL is to make the distinction more clear. This CL doesn't break existing plugins compiled with old private networking enums (without "PRIVATE" in the names). They will still run on newer versions of Chrome. The only consequence is that they will get compile errors when they compile with new SDK (with new enum names). But the errors should be very straightforward to fix. BUG=253583 TEST=None R=bbudge@chromium.org, tsepez@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/17615004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/host_resolver_resource.cc')
-rw-r--r--ppapi/proxy/host_resolver_resource.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ppapi/proxy/host_resolver_resource.cc b/ppapi/proxy/host_resolver_resource.cc
index c21d482..a289856 100644
--- a/ppapi/proxy/host_resolver_resource.cc
+++ b/ppapi/proxy/host_resolver_resource.cc
@@ -19,22 +19,22 @@ PP_HostResolver_Private_Hint ConvertToHostResolverPrivateHint(
PP_HostResolver_Private_Hint private_hint;
switch (hint.family) {
case PP_NETADDRESS_FAMILY_UNSPECIFIED:
- private_hint.family = PP_NETADDRESSFAMILY_UNSPECIFIED;
+ private_hint.family = PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED;
break;
case PP_NETADDRESS_FAMILY_IPV4:
- private_hint.family = PP_NETADDRESSFAMILY_IPV4;
+ private_hint.family = PP_NETADDRESSFAMILY_PRIVATE_IPV4;
break;
case PP_NETADDRESS_FAMILY_IPV6:
- private_hint.family = PP_NETADDRESSFAMILY_IPV6;
+ private_hint.family = PP_NETADDRESSFAMILY_PRIVATE_IPV6;
break;
default:
NOTREACHED();
- private_hint.family = PP_NETADDRESSFAMILY_UNSPECIFIED;
+ private_hint.family = PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED;
}
private_hint.flags = 0;
if (hint.flags & PP_HOSTRESOLVER_FLAG_CANONNAME)
- private_hint.flags |= PP_HOST_RESOLVER_FLAGS_CANONNAME;
+ private_hint.flags |= PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME;
return private_hint;
}