| 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" | 
| 11 #include "net/cookies/cookie_store.h" | 11 #include "net/cookies/cookie_store.h" | 
| 12 #include "net/dns/host_resolver.h" | 12 #include "net/dns/host_resolver.h" | 
| 13 #include "net/ftp/ftp_transaction_factory.h" | 13 #include "net/ftp/ftp_transaction_factory.h" | 
| 14 #include "net/http/http_auth_handler_factory.h" | 14 #include "net/http/http_auth_handler_factory.h" | 
| 15 #include "net/http/http_server_properties.h" | 15 #include "net/http/http_server_properties.h" | 
| 16 #include "net/http/http_transaction_factory.h" | 16 #include "net/http/http_transaction_factory.h" | 
| 17 #include "net/log/net_log.h" | 17 #include "net/log/net_log.h" | 
| 18 #include "net/proxy/proxy_service.h" | 18 #include "net/proxy/proxy_service.h" | 
| 19 #include "net/ssl/channel_id_service.h" | 19 #include "net/ssl/channel_id_service.h" | 
| 20 #include "net/url_request/fraudulent_certificate_reporter.h" | 20 #include "net/url_request/fraudulent_certificate_reporter.h" | 
| 21 #include "net/url_request/http_user_agent_settings.h" | 21 #include "net/url_request/http_user_agent_settings.h" | 
|  | 22 #include "net/url_request/url_request_backoff_manager.h" | 
| 22 #include "net/url_request/url_request_context.h" | 23 #include "net/url_request/url_request_context.h" | 
| 23 #include "net/url_request/url_request_job_factory.h" | 24 #include "net/url_request/url_request_job_factory.h" | 
| 24 #include "net/url_request/url_request_throttler_manager.h" | 25 #include "net/url_request/url_request_throttler_manager.h" | 
| 25 | 26 | 
| 26 namespace net { | 27 namespace net { | 
| 27 | 28 | 
| 28 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context) | 29 URLRequestContextStorage::URLRequestContextStorage(URLRequestContext* context) | 
| 29     : context_(context) { | 30     : context_(context) { | 
| 30   DCHECK(context); | 31   DCHECK(context); | 
| 31 } | 32 } | 
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 112   context_->set_job_factory(job_factory); | 113   context_->set_job_factory(job_factory); | 
| 113   job_factory_.reset(job_factory); | 114   job_factory_.reset(job_factory); | 
| 114 } | 115 } | 
| 115 | 116 | 
| 116 void URLRequestContextStorage::set_throttler_manager( | 117 void URLRequestContextStorage::set_throttler_manager( | 
| 117     URLRequestThrottlerManager* throttler_manager) { | 118     URLRequestThrottlerManager* throttler_manager) { | 
| 118   context_->set_throttler_manager(throttler_manager); | 119   context_->set_throttler_manager(throttler_manager); | 
| 119   throttler_manager_.reset(throttler_manager); | 120   throttler_manager_.reset(throttler_manager); | 
| 120 } | 121 } | 
| 121 | 122 | 
|  | 123 void URLRequestContextStorage::set_backoff_manager( | 
|  | 124     URLRequestBackoffManager* backoff_manager) { | 
|  | 125   context_->set_backoff_manager(backoff_manager); | 
|  | 126   backoff_manager_.reset(backoff_manager); | 
|  | 127 } | 
|  | 128 | 
| 122 void URLRequestContextStorage::set_http_user_agent_settings( | 129 void URLRequestContextStorage::set_http_user_agent_settings( | 
| 123     HttpUserAgentSettings* http_user_agent_settings) { | 130     HttpUserAgentSettings* http_user_agent_settings) { | 
| 124   context_->set_http_user_agent_settings(http_user_agent_settings); | 131   context_->set_http_user_agent_settings(http_user_agent_settings); | 
| 125   http_user_agent_settings_.reset(http_user_agent_settings); | 132   http_user_agent_settings_.reset(http_user_agent_settings); | 
| 126 } | 133 } | 
| 127 | 134 | 
| 128 void URLRequestContextStorage::set_sdch_manager( | 135 void URLRequestContextStorage::set_sdch_manager( | 
| 129     scoped_ptr<SdchManager> sdch_manager) { | 136     scoped_ptr<SdchManager> sdch_manager) { | 
| 130   context_->set_sdch_manager(sdch_manager.get()); | 137   context_->set_sdch_manager(sdch_manager.get()); | 
| 131   sdch_manager_ = sdch_manager.Pass(); | 138   sdch_manager_ = sdch_manager.Pass(); | 
| 132 } | 139 } | 
| 133 | 140 | 
| 134 }  // namespace net | 141 }  // namespace net | 
| OLD | NEW | 
|---|