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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 "\n" \ 256 "\n" \
257 " if (isGMT) {\n" \ 257 " if (isGMT) {\n" \
258 " date.setFullYear(date.getUTCFullYear());\n" \ 258 " date.setFullYear(date.getUTCFullYear());\n" \
259 " date.setMonth(date.getUTCMonth());\n" \ 259 " date.setMonth(date.getUTCMonth());\n" \
260 " date.setDate(date.getUTCDate());\n" \ 260 " date.setDate(date.getUTCDate());\n" \
261 " date.setHours(date.getUTCHours());\n" \ 261 " date.setHours(date.getUTCHours());\n" \
262 " date.setMinutes(date.getUTCMinutes());\n" \ 262 " date.setMinutes(date.getUTCMinutes());\n" \
263 " date.setSeconds(date.getUTCSeconds());\n" \ 263 " date.setSeconds(date.getUTCSeconds());\n" \
264 " }\n" \ 264 " }\n" \
265 " return ((date1 <= date) && (date <= date2));\n" \ 265 " return ((date1 <= date) && (date <= date2));\n" \
266 "}\n" \ 266 "}\n"
267
268 // This is a Microsoft extension to PAC for IPv6, see:
269 // http://blogs.msdn.com/wndp/articles/IPV6_PAC_Extensions_v0_9.aspx
270 #define PROXY_RESOLVER_SCRIPT_EX \
271 "function isResolvableEx(host) {\n" \
272 " var ip = dnsResolveEx(host);\n" \
wtc 2009/10/24 04:40:59 Nit: since dnsResolveEx returns all the addresses
273 " return (ip != '');\n" \
274 "}\n"
267 275
268 #endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_H_ 276 #endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698