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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1217563005: Create unique HttpNetworkSession for storage partition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wired up remaining state for HttpNetworkSession. Created 5 years, 5 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "components/content_settings/core/browser/host_content_settings_map.h" 57 #include "components/content_settings/core/browser/host_content_settings_map.h"
58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
59 #include "components/dom_distiller/core/url_constants.h" 59 #include "components/dom_distiller/core/url_constants.h"
60 #include "components/sync_driver/pref_names.h" 60 #include "components/sync_driver/pref_names.h"
61 #include "components/url_fixer/url_fixer.h" 61 #include "components/url_fixer/url_fixer.h"
62 #include "content/public/browser/browser_thread.h" 62 #include "content/public/browser/browser_thread.h"
63 #include "content/public/browser/host_zoom_map.h" 63 #include "content/public/browser/host_zoom_map.h"
64 #include "content/public/browser/notification_service.h" 64 #include "content/public/browser/notification_service.h"
65 #include "content/public/browser/resource_context.h" 65 #include "content/public/browser/resource_context.h"
66 #include "net/base/keygen_handler.h" 66 #include "net/base/keygen_handler.h"
67 #include "net/cert/cert_policy_enforcer.h"
68 #include "net/cert/cert_verifier.h"
69 #include "net/cert/ct_verifier.h"
67 #include "net/cookies/canonical_cookie.h" 70 #include "net/cookies/canonical_cookie.h"
68 #include "net/http/http_transaction_factory.h" 71 #include "net/http/http_transaction_factory.h"
69 #include "net/http/http_util.h" 72 #include "net/http/http_util.h"
70 #include "net/http/transport_security_persister.h" 73 #include "net/http/transport_security_persister.h"
71 #include "net/proxy/proxy_config_service_fixed.h" 74 #include "net/proxy/proxy_config_service_fixed.h"
72 #include "net/proxy/proxy_script_fetcher_impl.h" 75 #include "net/proxy/proxy_script_fetcher_impl.h"
73 #include "net/proxy/proxy_service.h" 76 #include "net/proxy/proxy_service.h"
74 #include "net/ssl/channel_id_service.h" 77 #include "net/ssl/channel_id_service.h"
75 #include "net/ssl/client_cert_store.h" 78 #include "net/ssl/client_cert_store.h"
76 #include "net/url_request/data_protocol_handler.h" 79 #include "net/url_request/data_protocol_handler.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 http_factory_ = http_factory.Pass(); 563 http_factory_ = http_factory.Pass();
561 set_http_transaction_factory(http_factory_.get()); 564 set_http_transaction_factory(http_factory_.get());
562 } 565 }
563 566
564 void ProfileIOData::AppRequestContext::SetJobFactory( 567 void ProfileIOData::AppRequestContext::SetJobFactory(
565 scoped_ptr<net::URLRequestJobFactory> job_factory) { 568 scoped_ptr<net::URLRequestJobFactory> job_factory) {
566 job_factory_ = job_factory.Pass(); 569 job_factory_ = job_factory.Pass();
567 set_job_factory(job_factory_.get()); 570 set_job_factory(job_factory_.get());
568 } 571 }
569 572
573 void ProfileIOData::AppRequestContext::SetHostResolver(
574 scoped_ptr<net::HostResolver> host_resolver) {
575 owned_host_resolver_ = host_resolver.Pass();
576 set_host_resolver(owned_host_resolver_.get());
577 }
578
579 void ProfileIOData::AppRequestContext::SetCertVerifier(
580 scoped_ptr<net::CertVerifier> cert_verifier) {
581 owned_cert_verifier_ = cert_verifier.Pass();
582 set_cert_verifier(owned_cert_verifier_.get());
583 }
584
585 void ProfileIOData::AppRequestContext::SetChannelIDService(
586 scoped_ptr<net::ChannelIDService> channel_id_service) {
587 owned_channel_id_service_ = channel_id_service.Pass();
588 set_channel_id_service(owned_channel_id_service_.get());
589 }
590
591 void ProfileIOData::AppRequestContext::SetTransportSecurityState(
592 scoped_ptr<net::TransportSecurityState> transport_security_state) {
593 owned_transport_security_state_ = transport_security_state.Pass();
594 set_transport_security_state(owned_transport_security_state_.get());
595 }
596
597 void ProfileIOData::AppRequestContext::SetCertTransparencyVerifier(
598 scoped_ptr<net::CTVerifier> cert_transparency_verifier) {
599 owned_cert_transparency_verifier_ = cert_transparency_verifier.Pass();
600 set_cert_transparency_verifier(owned_cert_transparency_verifier_.get());
601 }
602
603 void ProfileIOData::AppRequestContext::SetCertPolicyEnforcer(
604 scoped_ptr<net::CertPolicyEnforcer> cert_policy_enforcer) {
605 owned_cert_policy_enforcer_ = cert_policy_enforcer.Pass();
606 }
607
608 void ProfileIOData::AppRequestContext::SetSSLConfigService(
609 net::SSLConfigService* ssl_config_service) {
610 owned_ssl_config_service_ = ssl_config_service;
611 set_ssl_config_service(owned_ssl_config_service_);
612 }
613
570 ProfileIOData::AppRequestContext::~AppRequestContext() { 614 ProfileIOData::AppRequestContext::~AppRequestContext() {
571 AssertNoURLRequests(); 615 AssertNoURLRequests();
572 } 616 }
573 617
574 ProfileIOData::ProfileParams::ProfileParams() 618 ProfileIOData::ProfileParams::ProfileParams()
575 : io_thread(NULL), 619 : io_thread(NULL),
576 #if defined(OS_CHROMEOS) 620 #if defined(OS_CHROMEOS)
577 use_system_key_slot(false), 621 use_system_key_slot(false),
578 #endif 622 #endif
579 profile(NULL) { 623 profile(NULL) {
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 new DevToolsNetworkTransactionFactory( 1340 new DevToolsNetworkTransactionFactory(
1297 network_controller_.get(), shared_session), 1341 network_controller_.get(), shared_session),
1298 shared_session->net_log(), backend)); 1342 shared_session->net_log(), backend));
1299 } 1343 }
1300 1344
1301 void ProfileIOData::SetCookieSettingsForTesting( 1345 void ProfileIOData::SetCookieSettingsForTesting(
1302 content_settings::CookieSettings* cookie_settings) { 1346 content_settings::CookieSettings* cookie_settings) {
1303 DCHECK(!cookie_settings_.get()); 1347 DCHECK(!cookie_settings_.get());
1304 cookie_settings_ = cookie_settings; 1348 cookie_settings_ = cookie_settings;
1305 } 1349 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698