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

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

Issue 2026213002: Refactor CertificateReportSender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/ping_manager.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 "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #include "net/http/http_network_session.h" 88 #include "net/http/http_network_session.h"
89 #include "net/http/http_transaction_factory.h" 89 #include "net/http/http_transaction_factory.h"
90 #include "net/http/http_util.h" 90 #include "net/http/http_util.h"
91 #include "net/http/transport_security_persister.h" 91 #include "net/http/transport_security_persister.h"
92 #include "net/nqe/network_quality_estimator.h" 92 #include "net/nqe/network_quality_estimator.h"
93 #include "net/proxy/proxy_config_service_fixed.h" 93 #include "net/proxy/proxy_config_service_fixed.h"
94 #include "net/proxy/proxy_script_fetcher_impl.h" 94 #include "net/proxy/proxy_script_fetcher_impl.h"
95 #include "net/proxy/proxy_service.h" 95 #include "net/proxy/proxy_service.h"
96 #include "net/ssl/channel_id_service.h" 96 #include "net/ssl/channel_id_service.h"
97 #include "net/ssl/client_cert_store.h" 97 #include "net/ssl/client_cert_store.h"
98 #include "net/url_request/certificate_report_sender.h"
99 #include "net/url_request/data_protocol_handler.h" 98 #include "net/url_request/data_protocol_handler.h"
100 #include "net/url_request/file_protocol_handler.h" 99 #include "net/url_request/file_protocol_handler.h"
101 #include "net/url_request/ftp_protocol_handler.h" 100 #include "net/url_request/ftp_protocol_handler.h"
101 #include "net/url_request/report_sender.h"
102 #include "net/url_request/url_request.h" 102 #include "net/url_request/url_request.h"
103 #include "net/url_request/url_request_context.h" 103 #include "net/url_request/url_request_context.h"
104 #include "net/url_request/url_request_context_builder.h" 104 #include "net/url_request/url_request_context_builder.h"
105 #include "net/url_request/url_request_file_job.h" 105 #include "net/url_request/url_request_file_job.h"
106 #include "net/url_request/url_request_intercepting_job_factory.h" 106 #include "net/url_request/url_request_intercepting_job_factory.h"
107 #include "net/url_request/url_request_interceptor.h" 107 #include "net/url_request/url_request_interceptor.h"
108 #include "net/url_request/url_request_job_factory_impl.h" 108 #include "net/url_request/url_request_job_factory_impl.h"
109 109
110 #if defined(ENABLE_EXTENSIONS) 110 #if defined(ENABLE_EXTENSIONS)
111 #include "chrome/browser/extensions/extension_cookie_monster_delegate.h" 111 #include "chrome/browser/extensions/extension_cookie_monster_delegate.h"
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 1070 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
1071 transport_security_persister_.reset( 1071 transport_security_persister_.reset(
1072 new net::TransportSecurityPersister( 1072 new net::TransportSecurityPersister(
1073 transport_security_state_.get(), 1073 transport_security_state_.get(),
1074 profile_params_->path, 1074 profile_params_->path,
1075 pool->GetSequencedTaskRunnerWithShutdownBehavior( 1075 pool->GetSequencedTaskRunnerWithShutdownBehavior(
1076 pool->GetSequenceToken(), 1076 pool->GetSequenceToken(),
1077 base::SequencedWorkerPool::BLOCK_SHUTDOWN), 1077 base::SequencedWorkerPool::BLOCK_SHUTDOWN),
1078 IsOffTheRecord())); 1078 IsOffTheRecord()));
1079 1079
1080 certificate_report_sender_.reset(new net::CertificateReportSender( 1080 certificate_report_sender_.reset(new net::ReportSender(
1081 main_request_context_.get(), 1081 main_request_context_.get(), net::ReportSender::DO_NOT_SEND_COOKIES));
1082 net::CertificateReportSender::DO_NOT_SEND_COOKIES));
1083 transport_security_state_->SetReportSender(certificate_report_sender_.get()); 1082 transport_security_state_->SetReportSender(certificate_report_sender_.get());
1084 1083
1085 expect_ct_reporter_.reset( 1084 expect_ct_reporter_.reset(
1086 new ChromeExpectCTReporter(main_request_context_.get())); 1085 new ChromeExpectCTReporter(main_request_context_.get()));
1087 transport_security_state_->SetExpectCTReporter(expect_ct_reporter_.get()); 1086 transport_security_state_->SetExpectCTReporter(expect_ct_reporter_.get());
1088 1087
1089 // Take ownership over these parameters. 1088 // Take ownership over these parameters.
1090 cookie_settings_ = profile_params_->cookie_settings; 1089 cookie_settings_ = profile_params_->cookie_settings;
1091 host_content_settings_map_ = profile_params_->host_content_settings_map; 1090 host_content_settings_map_ = profile_params_->host_content_settings_map;
1092 #if defined(ENABLE_EXTENSIONS) 1091 #if defined(ENABLE_EXTENSIONS)
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 void ProfileIOData::SetCookieSettingsForTesting( 1355 void ProfileIOData::SetCookieSettingsForTesting(
1357 content_settings::CookieSettings* cookie_settings) { 1356 content_settings::CookieSettings* cookie_settings) {
1358 DCHECK(!cookie_settings_.get()); 1357 DCHECK(!cookie_settings_.get());
1359 cookie_settings_ = cookie_settings; 1358 cookie_settings_ = cookie_settings;
1360 } 1359 }
1361 1360
1362 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1361 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1363 const GURL& url) const { 1362 const GURL& url) const {
1364 return url_blacklist_manager_->GetURLBlacklistState(url); 1363 return url_blacklist_manager_->GetURLBlacklistState(url);
1365 } 1364 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698