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

Unified Diff: content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc

Issue 17615004: Add "PRIVATE" to the enum names of some private Pepper networking APIs: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/api/private/ppb_host_resolver_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc
diff --git a/content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc b/content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc
index 75331abc1f4184f266b8c49232184680cdf0a007..e0e17b367ed4ad4d07fe913c7fcd7ad97168a4ed 100644
--- a/content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc
+++ b/content/browser/renderer_host/pepper/pepper_host_resolver_message_filter.cc
@@ -38,10 +38,10 @@ void PrepareRequestInfo(const PP_HostResolver_Private_Hint& hint,
net::AddressFamily address_family;
switch (hint.family) {
- case PP_NETADDRESSFAMILY_IPV4:
+ case PP_NETADDRESSFAMILY_PRIVATE_IPV4:
address_family = net::ADDRESS_FAMILY_IPV4;
break;
- case PP_NETADDRESSFAMILY_IPV6:
+ case PP_NETADDRESSFAMILY_PRIVATE_IPV6:
address_family = net::ADDRESS_FAMILY_IPV6;
break;
default:
@@ -50,9 +50,9 @@ void PrepareRequestInfo(const PP_HostResolver_Private_Hint& hint,
request_info->set_address_family(address_family);
net::HostResolverFlags host_resolver_flags = 0;
- if (hint.flags & PP_HOST_RESOLVER_FLAGS_CANONNAME)
+ if (hint.flags & PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME)
host_resolver_flags |= net::HOST_RESOLVER_CANONNAME;
- if (hint.flags & PP_HOST_RESOLVER_FLAGS_LOOPBACK_ONLY)
+ if (hint.flags & PP_HOST_RESOLVER_PRIVATE_FLAGS_LOOPBACK_ONLY)
host_resolver_flags |= net::HOST_RESOLVER_LOOPBACK_ONLY;
request_info->set_host_resolver_flags(host_resolver_flags);
}
« no previous file with comments | « no previous file | ppapi/api/private/ppb_host_resolver_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698