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/cert/cert_verifier.h" | 11 #include "net/cert/cert_verifier.h" |
11 #include "net/cookies/cookie_store.h" | 12 #include "net/cookies/cookie_store.h" |
12 #include "net/dns/host_resolver.h" | 13 #include "net/dns/host_resolver.h" |
13 #include "net/ftp/ftp_transaction_factory.h" | 14 #include "net/ftp/ftp_transaction_factory.h" |
14 #include "net/http/http_auth_handler_factory.h" | 15 #include "net/http/http_auth_handler_factory.h" |
15 #include "net/http/http_server_properties.h" | 16 #include "net/http/http_server_properties.h" |
16 #include "net/http/http_transaction_factory.h" | 17 #include "net/http/http_transaction_factory.h" |
17 #include "net/proxy/proxy_service.h" | 18 #include "net/proxy/proxy_service.h" |
18 #include "net/ssl/channel_id_service.h" | 19 #include "net/ssl/channel_id_service.h" |
19 #include "net/url_request/fraudulent_certificate_reporter.h" | 20 #include "net/url_request/fraudulent_certificate_reporter.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 context_->set_throttler_manager(throttler_manager); | 118 context_->set_throttler_manager(throttler_manager); |
118 throttler_manager_.reset(throttler_manager); | 119 throttler_manager_.reset(throttler_manager); |
119 } | 120 } |
120 | 121 |
121 void URLRequestContextStorage::set_http_user_agent_settings( | 122 void URLRequestContextStorage::set_http_user_agent_settings( |
122 HttpUserAgentSettings* http_user_agent_settings) { | 123 HttpUserAgentSettings* http_user_agent_settings) { |
123 context_->set_http_user_agent_settings(http_user_agent_settings); | 124 context_->set_http_user_agent_settings(http_user_agent_settings); |
124 http_user_agent_settings_.reset(http_user_agent_settings); | 125 http_user_agent_settings_.reset(http_user_agent_settings); |
125 } | 126 } |
126 | 127 |
| 128 void URLRequestContextStorage::set_sdch_manager( |
| 129 scoped_ptr<SdchManager> sdch_manager) { |
| 130 context_->set_sdch_manager(sdch_manager.get()); |
| 131 sdch_manager_ = sdch_manager.Pass(); |
| 132 } |
| 133 |
127 } // namespace net | 134 } // namespace net |
OLD | NEW |