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

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

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r198785) Created 7 years, 7 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
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_data_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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/cert/cert_verifier.h" 10 #include "net/cert/cert_verifier.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
115 void URLRequestContextStorage::set_job_factory( 109 void URLRequestContextStorage::set_job_factory(
116 URLRequestJobFactory* job_factory) { 110 URLRequestJobFactory* job_factory) {
117 context_->set_job_factory(job_factory); 111 context_->set_job_factory(job_factory);
118 job_factory_.reset(job_factory); 112 job_factory_.reset(job_factory);
119 } 113 }
120 114
121 void URLRequestContextStorage::set_throttler_manager( 115 void URLRequestContextStorage::set_throttler_manager(
122 URLRequestThrottlerManager* throttler_manager) { 116 URLRequestThrottlerManager* throttler_manager) {
123 context_->set_throttler_manager(throttler_manager); 117 context_->set_throttler_manager(throttler_manager);
124 throttler_manager_.reset(throttler_manager); 118 throttler_manager_.reset(throttler_manager);
125 } 119 }
126 120
127 void URLRequestContextStorage::set_http_user_agent_settings( 121 void URLRequestContextStorage::set_http_user_agent_settings(
128 HttpUserAgentSettings* http_user_agent_settings) { 122 HttpUserAgentSettings* http_user_agent_settings) {
129 context_->set_http_user_agent_settings(http_user_agent_settings); 123 context_->set_http_user_agent_settings(http_user_agent_settings);
130 http_user_agent_settings_.reset(http_user_agent_settings); 124 http_user_agent_settings_.reset(http_user_agent_settings);
131 } 125 }
132 126
133 } // namespace net 127 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_data_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698