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

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

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 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_spdy3.cc ('k') | net/url_request/url_request_test_util.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool use_cache = parsed_command_line.HasSwitch("use-cache"); 138 bool use_cache = parsed_command_line.HasSwitch("use-cache");
139 139
140 // Do work here. 140 // Do work here.
141 MessageLoop loop(MessageLoop::TYPE_IO); 141 MessageLoop loop(MessageLoop::TYPE_IO);
142 142
143 scoped_ptr<net::HostResolver> host_resolver( 143 scoped_ptr<net::HostResolver> host_resolver(
144 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, 144 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism,
145 net::HostResolver::kDefaultRetryAttempts, 145 net::HostResolver::kDefaultRetryAttempts,
146 NULL)); 146 NULL));
147 147
148 scoped_ptr<net::CertVerifier> cert_verifier(new net::CertVerifier); 148 scoped_ptr<net::CertVerifier> cert_verifier(
149 net::CertVerifier::CreateDefault());
149 scoped_ptr<net::ProxyService> proxy_service( 150 scoped_ptr<net::ProxyService> proxy_service(
150 net::ProxyService::CreateDirect()); 151 net::ProxyService::CreateDirect());
151 scoped_refptr<net::SSLConfigService> ssl_config_service( 152 scoped_refptr<net::SSLConfigService> ssl_config_service(
152 new net::SSLConfigServiceDefaults); 153 new net::SSLConfigServiceDefaults);
153 net::HttpTransactionFactory* factory = NULL; 154 net::HttpTransactionFactory* factory = NULL;
154 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory( 155 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory(
155 net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get())); 156 net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get()));
156 net::HttpServerPropertiesImpl http_server_properties; 157 net::HttpServerPropertiesImpl http_server_properties;
157 158
158 net::HttpNetworkSession::Params session_params; 159 net::HttpNetworkSession::Params session_params;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 std::string name(table.GetRowName(index)); 216 std::string name(table.GetRowName(index));
216 if (name.length() > 0) { 217 if (name.length() > 0) {
217 int value = table.GetRowValue(index); 218 int value = table.GetRowValue(index);
218 printf("%s:\t%d\n", name.c_str(), value); 219 printf("%s:\t%d\n", name.c_str(), value);
219 } 220 }
220 } 221 }
221 printf("</stats>\n"); 222 printf("</stats>\n");
222 } 223 }
223 return 0; 224 return 0;
224 } 225 }
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_spdy3.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698