Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: trunk/src/net/url_request/url_request_context_storage.cc

Issue 12605011: Revert 188912 "Removed static factories for data, ftp, file, and..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
109 void URLRequestContextStorage::set_job_factory( 115 void URLRequestContextStorage::set_job_factory(
110 URLRequestJobFactory* job_factory) { 116 URLRequestJobFactory* job_factory) {
111 context_->set_job_factory(job_factory); 117 context_->set_job_factory(job_factory);
112 job_factory_.reset(job_factory); 118 job_factory_.reset(job_factory);
113 } 119 }
114 120
115 void URLRequestContextStorage::set_throttler_manager( 121 void URLRequestContextStorage::set_throttler_manager(
116 URLRequestThrottlerManager* throttler_manager) { 122 URLRequestThrottlerManager* throttler_manager) {
117 context_->set_throttler_manager(throttler_manager); 123 context_->set_throttler_manager(throttler_manager);
118 throttler_manager_.reset(throttler_manager); 124 throttler_manager_.reset(throttler_manager);
119 } 125 }
120 126
121 void URLRequestContextStorage::set_http_user_agent_settings( 127 void URLRequestContextStorage::set_http_user_agent_settings(
122 HttpUserAgentSettings* http_user_agent_settings) { 128 HttpUserAgentSettings* http_user_agent_settings) {
123 context_->set_http_user_agent_settings(http_user_agent_settings); 129 context_->set_http_user_agent_settings(http_user_agent_settings);
124 http_user_agent_settings_.reset(http_user_agent_settings); 130 http_user_agent_settings_.reset(http_user_agent_settings);
125 } 131 }
126 132
127 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « trunk/src/net/url_request/url_request_context_storage.h ('k') | trunk/src/net/url_request/url_request_data_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698