| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); | 126 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); |
| 127 signin_allowed_.MoveToThread(io_task_runner); | 127 signin_allowed_.MoveToThread(io_task_runner); |
| 128 } | 128 } |
| 129 | 129 |
| 130 initialized_on_UI_thread_ = true; | 130 initialized_on_UI_thread_ = true; |
| 131 } | 131 } |
| 132 | 132 |
| 133 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} | 133 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} |
| 134 | 134 |
| 135 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( | 135 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( |
| 136 net::CookieStore* cookie_store) { | 136 scoped_ptr<net::CookieStore> cookie_store) { |
| 137 cookie_store_ = cookie_store; | 137 cookie_store_ = std::move(cookie_store); |
| 138 set_cookie_store(cookie_store); | 138 set_cookie_store(cookie_store_.get()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( | 141 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( |
| 142 scoped_ptr<net::HttpTransactionFactory> http_factory) { | 142 scoped_ptr<net::HttpTransactionFactory> http_factory) { |
| 143 http_factory_ = std::move(http_factory); | 143 http_factory_ = std::move(http_factory); |
| 144 set_http_transaction_factory(http_factory_.get()); | 144 set_http_transaction_factory(http_factory_.get()); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( | 147 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( |
| 148 scoped_ptr<net::URLRequestJobFactory> job_factory) { | 148 scoped_ptr<net::URLRequestJobFactory> job_factory) { |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 return scoped_ptr<net::HttpCache>( | 469 return scoped_ptr<net::HttpCache>( |
| 470 new net::HttpCache(session, std::move(main_backend), true)); | 470 new net::HttpCache(session, std::move(main_backend), true)); |
| 471 } | 471 } |
| 472 | 472 |
| 473 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 473 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
| 474 net::HttpNetworkSession* shared_session, | 474 net::HttpNetworkSession* shared_session, |
| 475 scoped_ptr<net::HttpCache::BackendFactory> backend) const { | 475 scoped_ptr<net::HttpCache::BackendFactory> backend) const { |
| 476 return scoped_ptr<net::HttpCache>( | 476 return scoped_ptr<net::HttpCache>( |
| 477 new net::HttpCache(shared_session, std::move(backend), true)); | 477 new net::HttpCache(shared_session, std::move(backend), true)); |
| 478 } | 478 } |
| OLD | NEW |