| OLD | NEW |
| 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 "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/host_resolver.h" | 9 #include "net/base/host_resolver.h" |
| 10 #include "net/base/net_log.h" | 10 #include "net/base/net_log.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 context_->set_transport_security_state(transport_security_state); | 99 context_->set_transport_security_state(transport_security_state); |
| 100 transport_security_state_.reset(transport_security_state); | 100 transport_security_state_.reset(transport_security_state); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void URLRequestContextStorage::set_http_transaction_factory( | 103 void URLRequestContextStorage::set_http_transaction_factory( |
| 104 HttpTransactionFactory* http_transaction_factory) { | 104 HttpTransactionFactory* http_transaction_factory) { |
| 105 context_->set_http_transaction_factory(http_transaction_factory); | 105 context_->set_http_transaction_factory(http_transaction_factory); |
| 106 http_transaction_factory_.reset(http_transaction_factory); | 106 http_transaction_factory_.reset(http_transaction_factory); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void URLRequestContextStorage::set_ftp_transaction_factory( | |
| 110 FtpTransactionFactory* ftp_transaction_factory) { | |
| 111 context_->set_ftp_transaction_factory(ftp_transaction_factory); | |
| 112 ftp_transaction_factory_.reset(ftp_transaction_factory); | |
| 113 } | |
| 114 | |
| 115 void URLRequestContextStorage::set_job_factory( | 109 void URLRequestContextStorage::set_job_factory( |
| 116 URLRequestJobFactory* job_factory) { | 110 URLRequestJobFactory* job_factory) { |
| 117 context_->set_job_factory(job_factory); | 111 context_->set_job_factory(job_factory); |
| 118 job_factory_.reset(job_factory); | 112 job_factory_.reset(job_factory); |
| 119 } | 113 } |
| 120 | 114 |
| 121 void URLRequestContextStorage::set_throttler_manager( | 115 void URLRequestContextStorage::set_throttler_manager( |
| 122 URLRequestThrottlerManager* throttler_manager) { | 116 URLRequestThrottlerManager* throttler_manager) { |
| 123 context_->set_throttler_manager(throttler_manager); | 117 context_->set_throttler_manager(throttler_manager); |
| 124 throttler_manager_.reset(throttler_manager); | 118 throttler_manager_.reset(throttler_manager); |
| 125 } | 119 } |
| 126 | 120 |
| 127 void URLRequestContextStorage::set_http_user_agent_settings( | 121 void URLRequestContextStorage::set_http_user_agent_settings( |
| 128 HttpUserAgentSettings* http_user_agent_settings) { | 122 HttpUserAgentSettings* http_user_agent_settings) { |
| 129 context_->set_http_user_agent_settings(http_user_agent_settings); | 123 context_->set_http_user_agent_settings(http_user_agent_settings); |
| 130 http_user_agent_settings_.reset(http_user_agent_settings); | 124 http_user_agent_settings_.reset(http_user_agent_settings); |
| 131 } | 125 } |
| 132 | 126 |
| 133 } // namespace net | 127 } // namespace net |
| OLD | NEW |