| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); | 127 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); |
| 128 signin_allowed_.MoveToThread(io_task_runner); | 128 signin_allowed_.MoveToThread(io_task_runner); |
| 129 } | 129 } |
| 130 | 130 |
| 131 initialized_on_UI_thread_ = true; | 131 initialized_on_UI_thread_ = true; |
| 132 } | 132 } |
| 133 | 133 |
| 134 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} | 134 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} |
| 135 | 135 |
| 136 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( | 136 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( |
| 137 net::CookieStore* cookie_store) { | 137 scoped_ptr<net::CookieStore> cookie_store) { |
| 138 cookie_store_ = cookie_store; | 138 cookie_store_ = std::move(cookie_store); |
| 139 set_cookie_store(cookie_store); | 139 set_cookie_store(cookie_store_.get()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( | 142 void ChromeBrowserStateIOData::AppRequestContext::SetHttpTransactionFactory( |
| 143 scoped_ptr<net::HttpTransactionFactory> http_factory) { | 143 scoped_ptr<net::HttpTransactionFactory> http_factory) { |
| 144 http_factory_ = std::move(http_factory); | 144 http_factory_ = std::move(http_factory); |
| 145 set_http_transaction_factory(http_factory_.get()); | 145 set_http_transaction_factory(http_factory_.get()); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( | 148 void ChromeBrowserStateIOData::AppRequestContext::SetJobFactory( |
| 149 scoped_ptr<net::URLRequestJobFactory> job_factory) { | 149 scoped_ptr<net::URLRequestJobFactory> job_factory) { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 return scoped_ptr<net::HttpCache>( | 483 return scoped_ptr<net::HttpCache>( |
| 484 new net::HttpCache(session, std::move(main_backend), true)); | 484 new net::HttpCache(session, std::move(main_backend), true)); |
| 485 } | 485 } |
| 486 | 486 |
| 487 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 487 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
| 488 net::HttpNetworkSession* shared_session, | 488 net::HttpNetworkSession* shared_session, |
| 489 scoped_ptr<net::HttpCache::BackendFactory> backend) const { | 489 scoped_ptr<net::HttpCache::BackendFactory> backend) const { |
| 490 return scoped_ptr<net::HttpCache>( | 490 return scoped_ptr<net::HttpCache>( |
| 491 new net::HttpCache(shared_session, std::move(backend), true)); | 491 new net::HttpCache(shared_session, std::move(backend), true)); |
| 492 } | 492 } |
| OLD | NEW |