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

Side by Side Diff: net/tools/fetch/fetch_client.cc

Issue 3846005: Revert 62918 - net: clean up SSLHostInfo construction.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « net/spdy/spdy_test_util.h ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get())); 148 net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get()));
149 if (use_cache) { 149 if (use_cache) {
150 factory = new net::HttpCache(host_resolver.get(), NULL, proxy_service, 150 factory = new net::HttpCache(host_resolver.get(), NULL, proxy_service,
151 ssl_config_service, http_auth_handler_factory.get(), NULL, NULL, 151 ssl_config_service, http_auth_handler_factory.get(), NULL, NULL,
152 net::HttpCache::DefaultBackend::InMemory(0)); 152 net::HttpCache::DefaultBackend::InMemory(0));
153 } else { 153 } else {
154 factory = new net::HttpNetworkLayer( 154 factory = new net::HttpNetworkLayer(
155 net::ClientSocketFactory::GetDefaultFactory(), 155 net::ClientSocketFactory::GetDefaultFactory(),
156 host_resolver.get(), 156 host_resolver.get(),
157 NULL /* dnsrr_resolver */, 157 NULL /* dnsrr_resolver */,
158 NULL /* ssl_host_info_factory */,
159 proxy_service, 158 proxy_service,
160 ssl_config_service, 159 ssl_config_service,
161 http_auth_handler_factory.get(), 160 http_auth_handler_factory.get(),
162 NULL, 161 NULL,
163 NULL); 162 NULL);
164 } 163 }
165 164
166 { 165 {
167 base::StatsCounterTimer driver_time("FetchClient.total_time"); 166 base::StatsCounterTimer driver_time("FetchClient.total_time");
168 base::StatsScope<base::StatsCounterTimer> scope(driver_time); 167 base::StatsScope<base::StatsCounterTimer> scope(driver_time);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 std::string name(table.GetRowName(index)); 205 std::string name(table.GetRowName(index));
207 if (name.length() > 0) { 206 if (name.length() > 0) {
208 int value = table.GetRowValue(index); 207 int value = table.GetRowValue(index);
209 printf("%s:\t%d\n", name.c_str(), value); 208 printf("%s:\t%d\n", name.c_str(), value);
210 } 209 }
211 } 210 }
212 printf("</stats>\n"); 211 printf("</stats>\n");
213 } 212 }
214 return 0; 213 return 0;
215 } 214 }
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util.h ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698