OLD | NEW |
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" | |
11 #include "net/base/host_resolver.h" | 10 #include "net/base/host_resolver.h" |
12 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
13 #include "net/base/network_delegate.h" | 12 #include "net/base/network_delegate.h" |
14 #include "net/base/origin_bound_cert_service.h" | 13 #include "net/base/origin_bound_cert_service.h" |
15 #include "net/ftp/ftp_transaction_factory.h" | 14 #include "net/ftp/ftp_transaction_factory.h" |
16 #include "net/http/http_auth_handler_factory.h" | 15 #include "net/http/http_auth_handler_factory.h" |
17 #include "net/http/http_server_properties.h" | 16 #include "net/http/http_server_properties.h" |
18 #include "net/http/http_transaction_factory.h" | 17 #include "net/http/http_transaction_factory.h" |
19 #include "net/proxy/proxy_service.h" | 18 #include "net/proxy/proxy_service.h" |
20 #include "net/socket/dns_cert_provenance_checker.h" | 19 #include "net/socket/dns_cert_provenance_checker.h" |
(...skipping 24 matching lines...) Expand all Loading... |
45 context_->set_cert_verifier(cert_verifier); | 44 context_->set_cert_verifier(cert_verifier); |
46 cert_verifier_.reset(cert_verifier); | 45 cert_verifier_.reset(cert_verifier); |
47 } | 46 } |
48 | 47 |
49 void URLRequestContextStorage::set_origin_bound_cert_service( | 48 void URLRequestContextStorage::set_origin_bound_cert_service( |
50 OriginBoundCertService* origin_bound_cert_service) { | 49 OriginBoundCertService* origin_bound_cert_service) { |
51 context_->set_origin_bound_cert_service(origin_bound_cert_service); | 50 context_->set_origin_bound_cert_service(origin_bound_cert_service); |
52 origin_bound_cert_service_.reset(origin_bound_cert_service); | 51 origin_bound_cert_service_.reset(origin_bound_cert_service); |
53 } | 52 } |
54 | 53 |
55 void URLRequestContextStorage::set_dnsrr_resolver( | |
56 DnsRRResolver* dnsrr_resolver) { | |
57 context_->set_dnsrr_resolver(dnsrr_resolver); | |
58 dnsrr_resolver_.reset(dnsrr_resolver); | |
59 } | |
60 | |
61 void URLRequestContextStorage::set_dns_cert_checker( | 54 void URLRequestContextStorage::set_dns_cert_checker( |
62 DnsCertProvenanceChecker* dns_cert_checker) { | 55 DnsCertProvenanceChecker* dns_cert_checker) { |
63 context_->set_dns_cert_checker(dns_cert_checker); | 56 context_->set_dns_cert_checker(dns_cert_checker); |
64 dns_cert_checker_.reset(dns_cert_checker); | 57 dns_cert_checker_.reset(dns_cert_checker); |
65 } | 58 } |
66 | 59 |
67 void URLRequestContextStorage::set_fraudulent_certificate_reporter( | 60 void URLRequestContextStorage::set_fraudulent_certificate_reporter( |
68 FraudulentCertificateReporter* fraudulent_certificate_reporter) { | 61 FraudulentCertificateReporter* fraudulent_certificate_reporter) { |
69 context_->set_fraudulent_certificate_reporter( | 62 context_->set_fraudulent_certificate_reporter( |
70 fraudulent_certificate_reporter); | 63 fraudulent_certificate_reporter); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ftp_transaction_factory_.reset(ftp_transaction_factory); | 116 ftp_transaction_factory_.reset(ftp_transaction_factory); |
124 } | 117 } |
125 | 118 |
126 void URLRequestContextStorage::set_job_factory( | 119 void URLRequestContextStorage::set_job_factory( |
127 URLRequestJobFactory* job_factory) { | 120 URLRequestJobFactory* job_factory) { |
128 context_->set_job_factory(job_factory); | 121 context_->set_job_factory(job_factory); |
129 job_factory_.reset(job_factory); | 122 job_factory_.reset(job_factory); |
130 } | 123 } |
131 | 124 |
132 } // namespace net | 125 } // namespace net |
OLD | NEW |