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" | 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_transaction_factory.h" | 18 #include "net/http/http_transaction_factory.h" |
18 #include "net/proxy/proxy_service.h" | 19 #include "net/proxy/proxy_service.h" |
19 #include "net/socket/dns_cert_provenance_checker.h" | 20 #include "net/socket/dns_cert_provenance_checker.h" |
20 #include "net/url_request/url_request_context.h" | 21 #include "net/url_request/url_request_context.h" |
21 #include "net/url_request/url_request_job_factory.h" | 22 #include "net/url_request/url_request_job_factory.h" |
22 | 23 |
23 namespace net { | 24 namespace net { |
24 | 25 |
25 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context) | 26 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context) |
26 : context_(context) { | 27 : context_(context) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 context_->set_ssl_config_service(ssl_config_service); | 79 context_->set_ssl_config_service(ssl_config_service); |
79 ssl_config_service_ = ssl_config_service; | 80 ssl_config_service_ = ssl_config_service; |
80 } | 81 } |
81 | 82 |
82 void URLRequestContextStorage::set_network_delegate( | 83 void URLRequestContextStorage::set_network_delegate( |
83 NetworkDelegate* network_delegate) { | 84 NetworkDelegate* network_delegate) { |
84 context_->set_network_delegate(network_delegate); | 85 context_->set_network_delegate(network_delegate); |
85 network_delegate_.reset(network_delegate); | 86 network_delegate_.reset(network_delegate); |
86 } | 87 } |
87 | 88 |
| 89 void URLRequestContextStorage::set_http_server_properties( |
| 90 HttpServerProperties* http_server_properties) { |
| 91 context_->set_http_server_properties(http_server_properties); |
| 92 http_server_properties_ = http_server_properties; |
| 93 } |
| 94 |
88 void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) { | 95 void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) { |
89 context_->set_cookie_store(cookie_store); | 96 context_->set_cookie_store(cookie_store); |
90 cookie_store_ = cookie_store; | 97 cookie_store_ = cookie_store; |
91 } | 98 } |
92 | 99 |
93 void URLRequestContextStorage::set_transport_security_state( | 100 void URLRequestContextStorage::set_transport_security_state( |
94 TransportSecurityState* transport_security_state) { | 101 TransportSecurityState* transport_security_state) { |
95 context_->set_transport_security_state(transport_security_state); | 102 context_->set_transport_security_state(transport_security_state); |
96 transport_security_state_.reset(transport_security_state); | 103 transport_security_state_.reset(transport_security_state); |
97 } | 104 } |
(...skipping 10 matching lines...) Expand all Loading... |
108 ftp_transaction_factory_.reset(ftp_transaction_factory); | 115 ftp_transaction_factory_.reset(ftp_transaction_factory); |
109 } | 116 } |
110 | 117 |
111 void URLRequestContextStorage::set_job_factory( | 118 void URLRequestContextStorage::set_job_factory( |
112 URLRequestJobFactory* job_factory) { | 119 URLRequestJobFactory* job_factory) { |
113 context_->set_job_factory(job_factory); | 120 context_->set_job_factory(job_factory); |
114 job_factory_.reset(job_factory); | 121 job_factory_.reset(job_factory); |
115 } | 122 } |
116 | 123 |
117 } // namespace net | 124 } // namespace net |
OLD | NEW |