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

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

Issue 1213783005: Send HPKP violation reports when a pin check fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | net/http/http_security_headers_unittest.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 <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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/cookies/canonical_cookie.h" 67 #include "net/cookies/canonical_cookie.h"
68 #include "net/http/certificate_report_sender_impl.h"
68 #include "net/http/http_transaction_factory.h" 69 #include "net/http/http_transaction_factory.h"
69 #include "net/http/http_util.h" 70 #include "net/http/http_util.h"
70 #include "net/http/transport_security_persister.h" 71 #include "net/http/transport_security_persister.h"
72 #include "net/http/transport_security_reporter.h"
71 #include "net/proxy/proxy_config_service_fixed.h" 73 #include "net/proxy/proxy_config_service_fixed.h"
72 #include "net/proxy/proxy_script_fetcher_impl.h" 74 #include "net/proxy/proxy_script_fetcher_impl.h"
73 #include "net/proxy/proxy_service.h" 75 #include "net/proxy/proxy_service.h"
74 #include "net/ssl/channel_id_service.h" 76 #include "net/ssl/channel_id_service.h"
75 #include "net/ssl/client_cert_store.h" 77 #include "net/ssl/client_cert_store.h"
76 #include "net/url_request/data_protocol_handler.h" 78 #include "net/url_request/data_protocol_handler.h"
77 #include "net/url_request/file_protocol_handler.h" 79 #include "net/url_request/file_protocol_handler.h"
78 #include "net/url_request/ftp_protocol_handler.h" 80 #include "net/url_request/ftp_protocol_handler.h"
79 #include "net/url_request/url_request.h" 81 #include "net/url_request/url_request.h"
80 #include "net/url_request/url_request_context.h" 82 #include "net/url_request/url_request_context.h"
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 1054 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
1053 transport_security_persister_.reset( 1055 transport_security_persister_.reset(
1054 new net::TransportSecurityPersister( 1056 new net::TransportSecurityPersister(
1055 transport_security_state_.get(), 1057 transport_security_state_.get(),
1056 profile_params_->path, 1058 profile_params_->path,
1057 pool->GetSequencedTaskRunnerWithShutdownBehavior( 1059 pool->GetSequencedTaskRunnerWithShutdownBehavior(
1058 pool->GetSequenceToken(), 1060 pool->GetSequenceToken(),
1059 base::SequencedWorkerPool::BLOCK_SHUTDOWN), 1061 base::SequencedWorkerPool::BLOCK_SHUTDOWN),
1060 IsOffTheRecord())); 1062 IsOffTheRecord()));
1061 1063
1064 // TODO(estark): introduce a ChromeTransportSecurityReporter class
1065 // that covers the ChromeFraudulentCertificateReporter functionality,
1066 // instantiate it here, and then remove FraudulentCertificateReporter
1067 // and ChromeFraudulentCertificateReporter.
1068 transport_security_reporter_.reset(new net::TransportSecurityReporter(
1069 transport_security_state_.get(),
1070 scoped_ptr<net::CertificateReportSender>(
1071 new net::CertificateReportSenderImpl(
1072 main_request_context_.get(),
1073 net::CertificateReportSenderImpl::DO_NOT_SEND_COOKIES))));
1074
1062 // Take ownership over these parameters. 1075 // Take ownership over these parameters.
1063 cookie_settings_ = profile_params_->cookie_settings; 1076 cookie_settings_ = profile_params_->cookie_settings;
1064 host_content_settings_map_ = profile_params_->host_content_settings_map; 1077 host_content_settings_map_ = profile_params_->host_content_settings_map;
1065 #if defined(ENABLE_EXTENSIONS) 1078 #if defined(ENABLE_EXTENSIONS)
1066 extension_info_map_ = profile_params_->extension_info_map; 1079 extension_info_map_ = profile_params_->extension_info_map;
1067 #endif 1080 #endif
1068 1081
1069 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get(); 1082 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get();
1070 resource_context_->request_context_ = main_request_context_.get(); 1083 resource_context_->request_context_ = main_request_context_.get();
1071 1084
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 new DevToolsNetworkTransactionFactory( 1310 new DevToolsNetworkTransactionFactory(
1298 network_controller_.get(), shared_session), 1311 network_controller_.get(), shared_session),
1299 shared_session->net_log(), backend)); 1312 shared_session->net_log(), backend));
1300 } 1313 }
1301 1314
1302 void ProfileIOData::SetCookieSettingsForTesting( 1315 void ProfileIOData::SetCookieSettingsForTesting(
1303 content_settings::CookieSettings* cookie_settings) { 1316 content_settings::CookieSettings* cookie_settings) {
1304 DCHECK(!cookie_settings_.get()); 1317 DCHECK(!cookie_settings_.get());
1305 cookie_settings_ = cookie_settings; 1318 cookie_settings_ = cookie_settings;
1306 } 1319 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | net/http/http_security_headers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698