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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 #elif defined(OS_ANDROID) | 919 #elif defined(OS_ANDROID) |
920 // Android does not use the ClientCertStore infrastructure. On Android client | 920 // Android does not use the ClientCertStore infrastructure. On Android client |
921 // cert matching is done by the OS as part of the call to show the cert | 921 // cert matching is done by the OS as part of the call to show the cert |
922 // selection dialog. | 922 // selection dialog. |
923 return nullptr; | 923 return nullptr; |
924 #else | 924 #else |
925 #error Unknown platform. | 925 #error Unknown platform. |
926 #endif | 926 #endif |
927 } | 927 } |
928 | 928 |
| 929 void ProfileIOData::UpdateNetParamsOnIOThread( |
| 930 NetPrefObserver::NetParamsChange net_params_change) { |
| 931 if (!main_request_context_storage_ || |
| 932 !main_request_context_storage_->http_network_session()) |
| 933 return; |
| 934 |
| 935 main_request_context_storage_->http_network_session()->SetQuicEnabled( |
| 936 net_params_change.quic_enabled_new); |
| 937 } |
| 938 |
929 void ProfileIOData::set_data_reduction_proxy_io_data( | 939 void ProfileIOData::set_data_reduction_proxy_io_data( |
930 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> | 940 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> |
931 data_reduction_proxy_io_data) const { | 941 data_reduction_proxy_io_data) const { |
932 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); | 942 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); |
933 } | 943 } |
934 | 944 |
935 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) | 945 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) |
936 : io_data_(io_data), | 946 : io_data_(io_data), |
937 host_resolver_(NULL), | 947 host_resolver_(NULL), |
938 request_context_(NULL) { | 948 request_context_(NULL) { |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 void ProfileIOData::SetCookieSettingsForTesting( | 1320 void ProfileIOData::SetCookieSettingsForTesting( |
1311 content_settings::CookieSettings* cookie_settings) { | 1321 content_settings::CookieSettings* cookie_settings) { |
1312 DCHECK(!cookie_settings_.get()); | 1322 DCHECK(!cookie_settings_.get()); |
1313 cookie_settings_ = cookie_settings; | 1323 cookie_settings_ = cookie_settings; |
1314 } | 1324 } |
1315 | 1325 |
1316 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1326 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
1317 const GURL& url) const { | 1327 const GURL& url) const { |
1318 return url_blacklist_manager_->GetURLBlacklistState(url); | 1328 return url_blacklist_manager_->GetURLBlacklistState(url); |
1319 } | 1329 } |
OLD | NEW |