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/net_log.h" | 8 #include "net/base/net_log.h" |
9 #include "net/base/network_delegate.h" | 9 #include "net/base/network_delegate.h" |
10 #include "net/base/sdch_manager.h" | 10 #include "net/base/sdch_manager.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 context_->set_host_resolver(host_resolver.get()); | 42 context_->set_host_resolver(host_resolver.get()); |
43 host_resolver_ = host_resolver.Pass(); | 43 host_resolver_ = host_resolver.Pass(); |
44 } | 44 } |
45 | 45 |
46 void URLRequestContextStorage::set_cert_verifier(CertVerifier* cert_verifier) { | 46 void URLRequestContextStorage::set_cert_verifier(CertVerifier* cert_verifier) { |
47 context_->set_cert_verifier(cert_verifier); | 47 context_->set_cert_verifier(cert_verifier); |
48 cert_verifier_.reset(cert_verifier); | 48 cert_verifier_.reset(cert_verifier); |
49 } | 49 } |
50 | 50 |
51 void URLRequestContextStorage::set_channel_id_service( | 51 void URLRequestContextStorage::set_channel_id_service( |
52 ChannelIDService* channel_id_service) { | 52 scoped_ptr<ChannelIDService> channel_id_service) { |
53 context_->set_channel_id_service(channel_id_service); | 53 context_->set_channel_id_service(channel_id_service.get()); |
54 channel_id_service_.reset(channel_id_service); | 54 channel_id_service_ = channel_id_service.Pass(); |
55 } | 55 } |
56 | 56 |
57 void URLRequestContextStorage::set_fraudulent_certificate_reporter( | 57 void URLRequestContextStorage::set_fraudulent_certificate_reporter( |
58 FraudulentCertificateReporter* fraudulent_certificate_reporter) { | 58 FraudulentCertificateReporter* fraudulent_certificate_reporter) { |
59 context_->set_fraudulent_certificate_reporter( | 59 context_->set_fraudulent_certificate_reporter( |
60 fraudulent_certificate_reporter); | 60 fraudulent_certificate_reporter); |
61 fraudulent_certificate_reporter_.reset(fraudulent_certificate_reporter); | 61 fraudulent_certificate_reporter_.reset(fraudulent_certificate_reporter); |
62 } | 62 } |
63 | 63 |
64 void URLRequestContextStorage::set_http_auth_handler_factory( | 64 void URLRequestContextStorage::set_http_auth_handler_factory( |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 http_user_agent_settings_.reset(http_user_agent_settings); | 125 http_user_agent_settings_.reset(http_user_agent_settings); |
126 } | 126 } |
127 | 127 |
128 void URLRequestContextStorage::set_sdch_manager( | 128 void URLRequestContextStorage::set_sdch_manager( |
129 scoped_ptr<SdchManager> sdch_manager) { | 129 scoped_ptr<SdchManager> sdch_manager) { |
130 context_->set_sdch_manager(sdch_manager.get()); | 130 context_->set_sdch_manager(sdch_manager.get()); |
131 sdch_manager_ = sdch_manager.Pass(); | 131 sdch_manager_ = sdch_manager.Pass(); |
132 } | 132 } |
133 | 133 |
134 } // namespace net | 134 } // namespace net |
OLD | NEW |