| OLD | NEW |
| 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 "chrome/browser/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 566 |
| 567 ProfileIOData::AppRequestContext::AppRequestContext() { | 567 ProfileIOData::AppRequestContext::AppRequestContext() { |
| 568 } | 568 } |
| 569 | 569 |
| 570 void ProfileIOData::AppRequestContext::SetCookieStore( | 570 void ProfileIOData::AppRequestContext::SetCookieStore( |
| 571 std::unique_ptr<net::CookieStore> cookie_store) { | 571 std::unique_ptr<net::CookieStore> cookie_store) { |
| 572 cookie_store_ = std::move(cookie_store); | 572 cookie_store_ = std::move(cookie_store); |
| 573 set_cookie_store(cookie_store_.get()); | 573 set_cookie_store(cookie_store_.get()); |
| 574 } | 574 } |
| 575 | 575 |
| 576 void ProfileIOData::AppRequestContext::SetChannelIDService( |
| 577 scoped_ptr<net::ChannelIDService> channel_id_service) { |
| 578 channel_id_service_ = std::move(channel_id_service); |
| 579 set_channel_id_service(channel_id_service_.get()); |
| 580 } |
| 581 |
| 582 void ProfileIOData::AppRequestContext::SetHttpNetworkSession( |
| 583 scoped_ptr<net::HttpNetworkSession> http_network_session) { |
| 584 http_network_session_ = std::move(http_network_session); |
| 585 } |
| 586 |
| 576 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( | 587 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( |
| 577 std::unique_ptr<net::HttpTransactionFactory> http_factory) { | 588 std::unique_ptr<net::HttpTransactionFactory> http_factory) { |
| 578 http_factory_ = std::move(http_factory); | 589 http_factory_ = std::move(http_factory); |
| 579 set_http_transaction_factory(http_factory_.get()); | 590 set_http_transaction_factory(http_factory_.get()); |
| 580 } | 591 } |
| 581 | 592 |
| 582 void ProfileIOData::AppRequestContext::SetJobFactory( | 593 void ProfileIOData::AppRequestContext::SetJobFactory( |
| 583 std::unique_ptr<net::URLRequestJobFactory> job_factory) { | 594 std::unique_ptr<net::URLRequestJobFactory> job_factory) { |
| 584 job_factory_ = std::move(job_factory); | 595 job_factory_ = std::move(job_factory); |
| 585 set_job_factory(job_factory_.get()); | 596 set_job_factory(job_factory_.get()); |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 base::WrapUnique(new DevToolsNetworkTransactionFactory( | 1338 base::WrapUnique(new DevToolsNetworkTransactionFactory( |
| 1328 network_controller_handle_.GetController(), shared_session)), | 1339 network_controller_handle_.GetController(), shared_session)), |
| 1329 std::move(backend), true /* set_up_quic_server_info */)); | 1340 std::move(backend), true /* set_up_quic_server_info */)); |
| 1330 } | 1341 } |
| 1331 | 1342 |
| 1332 void ProfileIOData::SetCookieSettingsForTesting( | 1343 void ProfileIOData::SetCookieSettingsForTesting( |
| 1333 content_settings::CookieSettings* cookie_settings) { | 1344 content_settings::CookieSettings* cookie_settings) { |
| 1334 DCHECK(!cookie_settings_.get()); | 1345 DCHECK(!cookie_settings_.get()); |
| 1335 cookie_settings_ = cookie_settings; | 1346 cookie_settings_ = cookie_settings; |
| 1336 } | 1347 } |
| OLD | NEW |