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

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

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: IOS io_thread also initializes DynamicSharedParams Created 4 years 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 <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/base/network_delegate.h" 10 #include "net/base/network_delegate.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer) { 115 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer) {
116 context_->set_ct_policy_enforcer(ct_policy_enforcer.get()); 116 context_->set_ct_policy_enforcer(ct_policy_enforcer.get());
117 ct_policy_enforcer_ = std::move(ct_policy_enforcer); 117 ct_policy_enforcer_ = std::move(ct_policy_enforcer);
118 } 118 }
119 119
120 void URLRequestContextStorage::set_http_network_session( 120 void URLRequestContextStorage::set_http_network_session(
121 std::unique_ptr<HttpNetworkSession> http_network_session) { 121 std::unique_ptr<HttpNetworkSession> http_network_session) {
122 http_network_session_ = std::move(http_network_session); 122 http_network_session_ = std::move(http_network_session);
123 } 123 }
124 124
125 void URLRequestContextStorage::set_http_network_session_dynamic_shared_params(
126 std::unique_ptr<HttpNetworkSession::DynamicSharedParams>
127 dynamic_shared_params) {
128 http_network_session_dynamic_shared_params_ =
129 std::move(dynamic_shared_params);
130 }
131
125 void URLRequestContextStorage::set_http_transaction_factory( 132 void URLRequestContextStorage::set_http_transaction_factory(
126 std::unique_ptr<HttpTransactionFactory> http_transaction_factory) { 133 std::unique_ptr<HttpTransactionFactory> http_transaction_factory) {
127 context_->set_http_transaction_factory(http_transaction_factory.get()); 134 context_->set_http_transaction_factory(http_transaction_factory.get());
128 http_transaction_factory_ = std::move(http_transaction_factory); 135 http_transaction_factory_ = std::move(http_transaction_factory);
129 } 136 }
130 137
131 void URLRequestContextStorage::set_job_factory( 138 void URLRequestContextStorage::set_job_factory(
132 std::unique_ptr<URLRequestJobFactory> job_factory) { 139 std::unique_ptr<URLRequestJobFactory> job_factory) {
133 context_->set_job_factory(job_factory.get()); 140 context_->set_job_factory(job_factory.get());
134 job_factory_ = std::move(job_factory); 141 job_factory_ = std::move(job_factory);
(...skipping 11 matching lines...) Expand all
146 http_user_agent_settings_ = std::move(http_user_agent_settings); 153 http_user_agent_settings_ = std::move(http_user_agent_settings);
147 } 154 }
148 155
149 void URLRequestContextStorage::set_sdch_manager( 156 void URLRequestContextStorage::set_sdch_manager(
150 std::unique_ptr<SdchManager> sdch_manager) { 157 std::unique_ptr<SdchManager> sdch_manager) {
151 context_->set_sdch_manager(sdch_manager.get()); 158 context_->set_sdch_manager(sdch_manager.get());
152 sdch_manager_ = std::move(sdch_manager); 159 sdch_manager_ = std::move(sdch_manager);
153 } 160 }
154 161
155 } // namespace net 162 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698