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

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

Issue 1342613002: Revert of Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_test_util.cc » ('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/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"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 context_->set_cookie_store(cookie_store); 87 context_->set_cookie_store(cookie_store);
88 cookie_store_ = cookie_store; 88 cookie_store_ = cookie_store;
89 } 89 }
90 90
91 void URLRequestContextStorage::set_transport_security_state( 91 void URLRequestContextStorage::set_transport_security_state(
92 TransportSecurityState* transport_security_state) { 92 TransportSecurityState* transport_security_state) {
93 context_->set_transport_security_state(transport_security_state); 93 context_->set_transport_security_state(transport_security_state);
94 transport_security_state_.reset(transport_security_state); 94 transport_security_state_.reset(transport_security_state);
95 } 95 }
96 96
97 void URLRequestContextStorage::set_http_network_session(
98 scoped_ptr<HttpNetworkSession> http_network_session) {
99 http_network_session_ = http_network_session.Pass();
100 }
101
102 void URLRequestContextStorage::set_http_transaction_factory( 97 void URLRequestContextStorage::set_http_transaction_factory(
103 HttpTransactionFactory* http_transaction_factory) { 98 HttpTransactionFactory* http_transaction_factory) {
104 context_->set_http_transaction_factory(http_transaction_factory); 99 context_->set_http_transaction_factory(http_transaction_factory);
105 http_transaction_factory_.reset(http_transaction_factory); 100 http_transaction_factory_.reset(http_transaction_factory);
106 } 101 }
107 102
108 void URLRequestContextStorage::set_job_factory( 103 void URLRequestContextStorage::set_job_factory(
109 URLRequestJobFactory* job_factory) { 104 URLRequestJobFactory* job_factory) {
110 context_->set_job_factory(job_factory); 105 context_->set_job_factory(job_factory);
111 job_factory_.reset(job_factory); 106 job_factory_.reset(job_factory);
(...skipping 17 matching lines...) Expand all
129 http_user_agent_settings_.reset(http_user_agent_settings); 124 http_user_agent_settings_.reset(http_user_agent_settings);
130 } 125 }
131 126
132 void URLRequestContextStorage::set_sdch_manager( 127 void URLRequestContextStorage::set_sdch_manager(
133 scoped_ptr<SdchManager> sdch_manager) { 128 scoped_ptr<SdchManager> sdch_manager) {
134 context_->set_sdch_manager(sdch_manager.get()); 129 context_->set_sdch_manager(sdch_manager.get());
135 sdch_manager_ = sdch_manager.Pass(); 130 sdch_manager_ = sdch_manager.Pass();
136 } 131 }
137 132
138 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698