| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} | 135 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} |
| 136 | 136 |
| 137 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( | 137 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( |
| 138 std::unique_ptr<net::CookieStore> cookie_store) { | 138 std::unique_ptr<net::CookieStore> cookie_store) { |
| 139 cookie_store_ = std::move(cookie_store); | 139 cookie_store_ = std::move(cookie_store); |
| 140 set_cookie_store(cookie_store_.get()); | 140 set_cookie_store(cookie_store_.get()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void ChromeBrowserStateIOData::AppRequestContext::SetChannelIDService( |
| 144 std::unique_ptr<net::ChannelIDService> channel_id_service) { |
| 145 channel_id_service_ = std::move(channel_id_service); |
| 146 set_channel_id_service(channel_id_service_.get()); |
| 147 } |
| 148 |
| 149 void ChromeBrowserStateIOData::AppRequestContext::SetHttpNetworkSession( |
| 150 std::unique_ptr<net::HttpNetworkSession> http_network_session) { |
| 151 http_network_session_ = std::move(http_network_session); |
| 152 } |
| 153 |
| 143 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( | 154 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( |
| 144 std::unique_ptr<net::HttpTransactionFactory> http_factory) { | 155 std::unique_ptr<net::HttpTransactionFactory> http_factory) { |
| 145 http_factory_ = std::move(http_factory); | 156 http_factory_ = std::move(http_factory); |
| 146 set_http_transaction_factory(http_factory_.get()); | 157 set_http_transaction_factory(http_factory_.get()); |
| 147 } | 158 } |
| 148 | 159 |
| 149 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( | 160 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( |
| 150 std::unique_ptr<net::URLRequestJobFactory> job_factory) { | 161 std::unique_ptr<net::URLRequestJobFactory> job_factory) { |
| 151 job_factory_ = std::move(job_factory); | 162 job_factory_ = std::move(job_factory); |
| 152 set_job_factory(job_factory_.get()); | 163 set_job_factory(job_factory_.get()); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 return std::unique_ptr<net::HttpCache>( | 490 return std::unique_ptr<net::HttpCache>( |
| 480 new net::HttpCache(session, std::move(main_backend), true)); | 491 new net::HttpCache(session, std::move(main_backend), true)); |
| 481 } | 492 } |
| 482 | 493 |
| 483 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 494 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
| 484 net::HttpNetworkSession* shared_session, | 495 net::HttpNetworkSession* shared_session, |
| 485 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { | 496 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { |
| 486 return std::unique_ptr<net::HttpCache>( | 497 return std::unique_ptr<net::HttpCache>( |
| 487 new net::HttpCache(shared_session, std::move(backend), true)); | 498 new net::HttpCache(shared_session, std::move(backend), true)); |
| 488 } | 499 } |
| OLD | NEW |