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

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

Issue 8311002: Revert 105669 - Additional infrastructure code supporting the report fraudulent certificate chain... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/url_request/url_request_context_storage.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_storage.h" 5 #include "net/url_request/url_request_context_storage.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/cert_verifier.h" 8 #include "net/base/cert_verifier.h"
9 #include "net/base/cookie_store.h" 9 #include "net/base/cookie_store.h"
10 #include "net/base/dnsrr_resolver.h" 10 #include "net/base/dnsrr_resolver.h"
11 #include "net/base/host_resolver.h" 11 #include "net/base/host_resolver.h"
12 #include "net/base/net_log.h" 12 #include "net/base/net_log.h"
13 #include "net/base/network_delegate.h" 13 #include "net/base/network_delegate.h"
14 #include "net/base/origin_bound_cert_service.h" 14 #include "net/base/origin_bound_cert_service.h"
15 #include "net/ftp/ftp_transaction_factory.h" 15 #include "net/ftp/ftp_transaction_factory.h"
16 #include "net/http/http_auth_handler_factory.h" 16 #include "net/http/http_auth_handler_factory.h"
17 #include "net/http/http_server_properties.h" 17 #include "net/http/http_server_properties.h"
18 #include "net/http/http_transaction_factory.h" 18 #include "net/http/http_transaction_factory.h"
19 #include "net/proxy/proxy_service.h" 19 #include "net/proxy/proxy_service.h"
20 #include "net/socket/dns_cert_provenance_checker.h" 20 #include "net/socket/dns_cert_provenance_checker.h"
21 #include "net/url_request/fraudulent_certificate_reporter.h"
22 #include "net/url_request/url_request_context.h" 21 #include "net/url_request/url_request_context.h"
23 #include "net/url_request/url_request_job_factory.h" 22 #include "net/url_request/url_request_job_factory.h"
24 23
25 namespace net { 24 namespace net {
26 25
27 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context) 26 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context)
28 : context_(context) { 27 : context_(context) {
29 DCHECK(context); 28 DCHECK(context);
30 } 29 }
31 30
(...skipping 25 matching lines...) Expand all
57 context_->set_dnsrr_resolver(dnsrr_resolver); 56 context_->set_dnsrr_resolver(dnsrr_resolver);
58 dnsrr_resolver_.reset(dnsrr_resolver); 57 dnsrr_resolver_.reset(dnsrr_resolver);
59 } 58 }
60 59
61 void URLRequestContextStorage::set_dns_cert_checker( 60 void URLRequestContextStorage::set_dns_cert_checker(
62 DnsCertProvenanceChecker* dns_cert_checker) { 61 DnsCertProvenanceChecker* dns_cert_checker) {
63 context_->set_dns_cert_checker(dns_cert_checker); 62 context_->set_dns_cert_checker(dns_cert_checker);
64 dns_cert_checker_.reset(dns_cert_checker); 63 dns_cert_checker_.reset(dns_cert_checker);
65 } 64 }
66 65
67 void URLRequestContextStorage::set_fraudulent_certificate_reporter(
68 FraudulentCertificateReporter* fraudulent_certificate_reporter) {
69 context_->set_fraudulent_certificate_reporter(
70 fraudulent_certificate_reporter);
71 fraudulent_certificate_reporter_.reset(fraudulent_certificate_reporter);
72 }
73
74 void URLRequestContextStorage::set_http_auth_handler_factory( 66 void URLRequestContextStorage::set_http_auth_handler_factory(
75 HttpAuthHandlerFactory* http_auth_handler_factory) { 67 HttpAuthHandlerFactory* http_auth_handler_factory) {
76 context_->set_http_auth_handler_factory(http_auth_handler_factory); 68 context_->set_http_auth_handler_factory(http_auth_handler_factory);
77 http_auth_handler_factory_.reset(http_auth_handler_factory); 69 http_auth_handler_factory_.reset(http_auth_handler_factory);
78 } 70 }
79 71
80 void URLRequestContextStorage::set_proxy_service(ProxyService* proxy_service) { 72 void URLRequestContextStorage::set_proxy_service(ProxyService* proxy_service) {
81 context_->set_proxy_service(proxy_service); 73 context_->set_proxy_service(proxy_service);
82 proxy_service_.reset(proxy_service); 74 proxy_service_.reset(proxy_service);
83 } 75 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ftp_transaction_factory_.reset(ftp_transaction_factory); 115 ftp_transaction_factory_.reset(ftp_transaction_factory);
124 } 116 }
125 117
126 void URLRequestContextStorage::set_job_factory( 118 void URLRequestContextStorage::set_job_factory(
127 URLRequestJobFactory* job_factory) { 119 URLRequestJobFactory* job_factory) {
128 context_->set_job_factory(job_factory); 120 context_->set_job_factory(job_factory);
129 job_factory_.reset(job_factory); 121 job_factory_.reset(job_factory);
130 } 122 }
131 123
132 } // namespace net 124 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698