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

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

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed two comments, fix some tests 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
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
97 void URLRequestContextStorage::set_http_transaction_factory( 102 void URLRequestContextStorage::set_http_transaction_factory(
98 HttpTransactionFactory* http_transaction_factory) { 103 HttpTransactionFactory* http_transaction_factory) {
99 context_->set_http_transaction_factory(http_transaction_factory); 104 context_->set_http_transaction_factory(http_transaction_factory);
100 http_transaction_factory_.reset(http_transaction_factory); 105 http_transaction_factory_.reset(http_transaction_factory);
101 } 106 }
102 107
103 void URLRequestContextStorage::set_job_factory( 108 void URLRequestContextStorage::set_job_factory(
104 URLRequestJobFactory* job_factory) { 109 URLRequestJobFactory* job_factory) {
105 context_->set_job_factory(job_factory); 110 context_->set_job_factory(job_factory);
106 job_factory_.reset(job_factory); 111 job_factory_.reset(job_factory);
(...skipping 17 matching lines...) Expand all
124 http_user_agent_settings_.reset(http_user_agent_settings); 129 http_user_agent_settings_.reset(http_user_agent_settings);
125 } 130 }
126 131
127 void URLRequestContextStorage::set_sdch_manager( 132 void URLRequestContextStorage::set_sdch_manager(
128 scoped_ptr<SdchManager> sdch_manager) { 133 scoped_ptr<SdchManager> sdch_manager) {
129 context_->set_sdch_manager(sdch_manager.get()); 134 context_->set_sdch_manager(sdch_manager.get());
130 sdch_manager_ = sdch_manager.Pass(); 135 sdch_manager_ = sdch_manager.Pass();
131 } 136 }
132 137
133 } // namespace net 138 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698