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

Side by Side Diff: chrome/browser/profiles/profile_io_data.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
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 "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 new chrome_browser_net::ChromeFraudulentCertificateReporter( 453 new chrome_browser_net::ChromeFraudulentCertificateReporter(
454 main_request_context_)); 454 main_request_context_));
455 455
456 proxy_service_.reset( 456 proxy_service_.reset(
457 ProxyServiceFactory::CreateProxyService( 457 ProxyServiceFactory::CreateProxyService(
458 io_thread->net_log(), 458 io_thread->net_log(),
459 io_thread_globals->proxy_script_fetcher_context.get(), 459 io_thread_globals->proxy_script_fetcher_context.get(),
460 profile_params_->proxy_config_service.release(), 460 profile_params_->proxy_config_service.release(),
461 command_line)); 461 command_line));
462 462
463 transport_security_state_.reset(new net::TransportSecurityState( 463 transport_security_state_.reset(new net::TransportSecurityState());
464 command_line.GetSwitchValueASCII(switches::kHstsHosts)));
465 transport_security_persister_.reset( 464 transport_security_persister_.reset(
466 new TransportSecurityPersister(transport_security_state_.get(), 465 new TransportSecurityPersister(transport_security_state_.get(),
467 profile_params_->path, 466 profile_params_->path,
468 profile_params_->is_incognito)); 467 profile_params_->is_incognito));
468 const std::string& serialized =
469 command_line.GetSwitchValueASCII(switches::kHstsHosts);
470 transport_security_persister_.get()->DeserializeFromCommandLine(serialized);
469 471
470 // NOTE(willchan): Keep these protocol handlers in sync with 472 // NOTE(willchan): Keep these protocol handlers in sync with
471 // ProfileIOData::IsHandledProtocol(). 473 // ProfileIOData::IsHandledProtocol().
472 job_factory_.reset(new net::URLRequestJobFactory); 474 job_factory_.reset(new net::URLRequestJobFactory);
473 if (profile_params_->protocol_handler_registry) { 475 if (profile_params_->protocol_handler_registry) {
474 job_factory_->AddInterceptor( 476 job_factory_->AddInterceptor(
475 new ProtocolHandlerRegistryInterceptor( 477 new ProtocolHandlerRegistryInterceptor(
476 profile_params_->protocol_handler_registry)); 478 profile_params_->protocol_handler_registry));
477 } 479 }
478 bool set_protocol = job_factory_->SetProtocolHandler( 480 bool set_protocol = job_factory_->SetProtocolHandler(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 540 }
539 541
540 void ProfileIOData::set_server_bound_cert_service( 542 void ProfileIOData::set_server_bound_cert_service(
541 net::ServerBoundCertService* server_bound_cert_service) const { 543 net::ServerBoundCertService* server_bound_cert_service) const {
542 server_bound_cert_service_.reset(server_bound_cert_service); 544 server_bound_cert_service_.reset(server_bound_cert_service);
543 } 545 }
544 546
545 void ProfileIOData::DestroyResourceContext() { 547 void ProfileIOData::DestroyResourceContext() {
546 resource_context_.reset(); 548 resource_context_.reset();
547 } 549 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698