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

Unified Diff: net/proxy/proxy_resolver_script.h

Issue 333006: Add three of the six extensions to PAC that Internet Explorer supports. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address more of wtc's comments Created 11 years, 2 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
Index: net/proxy/proxy_resolver_script.h
===================================================================
--- net/proxy/proxy_resolver_script.h (revision 29974)
+++ net/proxy/proxy_resolver_script.h (working copy)
@@ -263,6 +263,14 @@
" date.setSeconds(date.getUTCSeconds());\n" \
" }\n" \
" return ((date1 <= date) && (date <= date2));\n" \
- "}\n" \
+ "}\n"
+// This is a Microsoft extension to PAC for IPv6, see:
+// http://blogs.msdn.com/wndp/articles/IPV6_PAC_Extensions_v0_9.aspx
+#define PROXY_RESOLVER_SCRIPT_EX \
+ "function isResolvableEx(host) {\n" \
+ " var ip = dnsResolveEx(host);\n" \
wtc 2009/10/24 04:40:59 Nit: since dnsResolveEx returns all the addresses
+ " return (ip != '');\n" \
+ "}\n"
+
#endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_H_

Powered by Google App Engine
This is Rietveld 408576698