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/network_delegate.h" | 8 #include "net/base/network_delegate.h" |
9 #include "net/base/sdch_manager.h" | 9 #include "net/base/sdch_manager.h" |
10 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 context_->set_cookie_store(cookie_store); | 89 context_->set_cookie_store(cookie_store); |
90 cookie_store_ = cookie_store; | 90 cookie_store_ = cookie_store; |
91 } | 91 } |
92 | 92 |
93 void URLRequestContextStorage::set_transport_security_state( | 93 void URLRequestContextStorage::set_transport_security_state( |
94 scoped_ptr<TransportSecurityState> transport_security_state) { | 94 scoped_ptr<TransportSecurityState> transport_security_state) { |
95 context_->set_transport_security_state(transport_security_state.get()); | 95 context_->set_transport_security_state(transport_security_state.get()); |
96 transport_security_state_ = transport_security_state.Pass(); | 96 transport_security_state_ = transport_security_state.Pass(); |
97 } | 97 } |
98 | 98 |
| 99 void URLRequestContextStorage::set_http_network_session( |
| 100 scoped_ptr<HttpNetworkSession> http_network_session) { |
| 101 http_network_session_ = http_network_session.Pass(); |
| 102 } |
| 103 |
99 void URLRequestContextStorage::set_http_transaction_factory( | 104 void URLRequestContextStorage::set_http_transaction_factory( |
100 scoped_ptr<HttpTransactionFactory> http_transaction_factory) { | 105 scoped_ptr<HttpTransactionFactory> http_transaction_factory) { |
101 context_->set_http_transaction_factory(http_transaction_factory.get()); | 106 context_->set_http_transaction_factory(http_transaction_factory.get()); |
102 http_transaction_factory_ = http_transaction_factory.Pass(); | 107 http_transaction_factory_ = http_transaction_factory.Pass(); |
103 } | 108 } |
104 | 109 |
105 void URLRequestContextStorage::set_job_factory( | 110 void URLRequestContextStorage::set_job_factory( |
106 scoped_ptr<URLRequestJobFactory> job_factory) { | 111 scoped_ptr<URLRequestJobFactory> job_factory) { |
107 context_->set_job_factory(job_factory.get()); | 112 context_->set_job_factory(job_factory.get()); |
108 job_factory_ = job_factory.Pass(); | 113 job_factory_ = job_factory.Pass(); |
(...skipping 17 matching lines...) Expand all Loading... |
126 http_user_agent_settings_ = http_user_agent_settings.Pass(); | 131 http_user_agent_settings_ = http_user_agent_settings.Pass(); |
127 } | 132 } |
128 | 133 |
129 void URLRequestContextStorage::set_sdch_manager( | 134 void URLRequestContextStorage::set_sdch_manager( |
130 scoped_ptr<SdchManager> sdch_manager) { | 135 scoped_ptr<SdchManager> sdch_manager) { |
131 context_->set_sdch_manager(sdch_manager.get()); | 136 context_->set_sdch_manager(sdch_manager.get()); |
132 sdch_manager_ = sdch_manager.Pass(); | 137 sdch_manager_ = sdch_manager.Pass(); |
133 } | 138 } |
134 | 139 |
135 } // namespace net | 140 } // namespace net |
OLD | NEW |