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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/global_sideffects2.js

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase off trunk Created 7 years, 11 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
OLDNEW
(Empty)
1 var g_iteration = 0;
2
3 function FindProxyForURL(url, host) {
4 g_iteration++;
5
6 var ips;
7
8 if (g_iteration < 3) {
9 ips = [
10 dnsResolve('host1'),
11 dnsResolve('host2')
12 ];
13 } else {
14 ips = [ dnsResolve('host' + g_iteration) ];
15 }
16
17 return 'PROXY ' + ips.join('-') + ':100';
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698