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

Side by Side Diff: net/url_request/url_request_context_builder.cc

Issue 9415040: Refactor TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/socket_stream/socket_stream_job.cc ('k') | net/url_request/url_request_http_job.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) 2012 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 "net/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 #endif // defined(OS_LINUX) 207 #endif // defined(OS_LINUX)
208 storage->set_proxy_service( 208 storage->set_proxy_service(
209 ProxyService::CreateUsingSystemProxyResolver( 209 ProxyService::CreateUsingSystemProxyResolver(
210 proxy_config_service, 210 proxy_config_service,
211 4, // TODO(willchan): Find a better constant somewhere. 211 4, // TODO(willchan): Find a better constant somewhere.
212 context->net_log())); 212 context->net_log()));
213 storage->set_ssl_config_service(new net::SSLConfigServiceDefaults); 213 storage->set_ssl_config_service(new net::SSLConfigServiceDefaults);
214 storage->set_http_auth_handler_factory( 214 storage->set_http_auth_handler_factory(
215 net::HttpAuthHandlerRegistryFactory::CreateDefault(host_resolver)); 215 net::HttpAuthHandlerRegistryFactory::CreateDefault(host_resolver));
216 storage->set_cookie_store(new CookieMonster(NULL, NULL)); 216 storage->set_cookie_store(new CookieMonster(NULL, NULL));
217 storage->set_transport_security_state(new net::TransportSecurityState("")); 217 storage->set_transport_security_state(new net::TransportSecurityState());
218 storage->set_http_server_properties(new net::HttpServerPropertiesImpl); 218 storage->set_http_server_properties(new net::HttpServerPropertiesImpl);
219 storage->set_cert_verifier(CertVerifier::CreateDefault()); 219 storage->set_cert_verifier(CertVerifier::CreateDefault());
220 220
221 HttpTransactionFactory* http_transaction_factory = NULL; 221 HttpTransactionFactory* http_transaction_factory = NULL;
222 if (http_cache_enabled_) { 222 if (http_cache_enabled_) {
223 HttpCache::BackendFactory* http_cache_backend = NULL; 223 HttpCache::BackendFactory* http_cache_backend = NULL;
224 if (http_cache_params_.type == HttpCacheParams::DISK) { 224 if (http_cache_params_.type == HttpCacheParams::DISK) {
225 context->StartCacheThread(); 225 context->StartCacheThread();
226 http_cache_backend = 226 http_cache_backend =
227 new HttpCache::DefaultBackend(DISK_CACHE, 227 new HttpCache::DefaultBackend(DISK_CACHE,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 http_transaction_factory = new HttpNetworkLayer(network_session); 266 http_transaction_factory = new HttpNetworkLayer(network_session);
267 } 267 }
268 storage->set_http_transaction_factory(http_transaction_factory); 268 storage->set_http_transaction_factory(http_transaction_factory);
269 269
270 // TODO(willchan): Support sdch. 270 // TODO(willchan): Support sdch.
271 271
272 return context; 272 return context;
273 } 273 }
274 274
275 } // namespace net 275 } // namespace net
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream_job.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698