| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 67 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
| 68 #include "components/dom_distiller/core/url_constants.h" | 68 #include "components/dom_distiller/core/url_constants.h" |
| 69 #include "components/metrics/metrics_pref_names.h" | 69 #include "components/metrics/metrics_pref_names.h" |
| 70 #include "components/metrics/metrics_service.h" | 70 #include "components/metrics/metrics_service.h" |
| 71 #include "components/net_log/chrome_net_log.h" | 71 #include "components/net_log/chrome_net_log.h" |
| 72 #include "components/policy/core/browser/url_blacklist_manager.h" | 72 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 73 #include "components/policy/core/common/cloud/policy_header_io_helper.h" | 73 #include "components/policy/core/common/cloud/policy_header_io_helper.h" |
| 74 #include "components/policy/core/common/cloud/policy_header_service.h" | 74 #include "components/policy/core/common/cloud/policy_header_service.h" |
| 75 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" | 75 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" |
| 76 #include "components/prefs/pref_service.h" | 76 #include "components/prefs/pref_service.h" |
| 77 #include "components/previews/core/previews_io_data.h" | |
| 78 #include "components/signin/core/common/signin_pref_names.h" | 77 #include "components/signin/core/common/signin_pref_names.h" |
| 79 #include "components/sync/driver/pref_names.h" | 78 #include "components/sync/driver/pref_names.h" |
| 80 #include "components/url_formatter/url_fixer.h" | 79 #include "components/url_formatter/url_fixer.h" |
| 81 #include "content/public/browser/browser_thread.h" | 80 #include "content/public/browser/browser_thread.h" |
| 82 #include "content/public/browser/host_zoom_map.h" | 81 #include "content/public/browser/host_zoom_map.h" |
| 83 #include "content/public/browser/notification_service.h" | 82 #include "content/public/browser/notification_service.h" |
| 84 #include "content/public/browser/resource_context.h" | 83 #include "content/public/browser/resource_context.h" |
| 85 #include "content/public/common/content_switches.h" | 84 #include "content/public/common/content_switches.h" |
| 86 #include "net/base/keygen_handler.h" | 85 #include "net/base/keygen_handler.h" |
| 87 #include "net/cert/cert_verifier.h" | 86 #include "net/cert/cert_verifier.h" |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 #error Unknown platform. | 940 #error Unknown platform. |
| 942 #endif | 941 #endif |
| 943 } | 942 } |
| 944 | 943 |
| 945 void ProfileIOData::set_data_reduction_proxy_io_data( | 944 void ProfileIOData::set_data_reduction_proxy_io_data( |
| 946 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> | 945 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 947 data_reduction_proxy_io_data) const { | 946 data_reduction_proxy_io_data) const { |
| 948 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); | 947 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); |
| 949 } | 948 } |
| 950 | 949 |
| 951 void ProfileIOData::set_previews_io_data( | |
| 952 std::unique_ptr<previews::PreviewsIOData> previews_io_data) const { | |
| 953 previews_io_data_ = std::move(previews_io_data); | |
| 954 } | |
| 955 | |
| 956 net::HttpServerProperties* ProfileIOData::http_server_properties() const { | 950 net::HttpServerProperties* ProfileIOData::http_server_properties() const { |
| 957 return http_server_properties_.get(); | 951 return http_server_properties_.get(); |
| 958 } | 952 } |
| 959 | 953 |
| 960 void ProfileIOData::set_http_server_properties( | 954 void ProfileIOData::set_http_server_properties( |
| 961 std::unique_ptr<net::HttpServerProperties> http_server_properties) const { | 955 std::unique_ptr<net::HttpServerProperties> http_server_properties) const { |
| 962 http_server_properties_ = std::move(http_server_properties); | 956 http_server_properties_ = std::move(http_server_properties); |
| 963 } | 957 } |
| 964 | 958 |
| 965 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) | 959 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 void ProfileIOData::SetCookieSettingsForTesting( | 1371 void ProfileIOData::SetCookieSettingsForTesting( |
| 1378 content_settings::CookieSettings* cookie_settings) { | 1372 content_settings::CookieSettings* cookie_settings) { |
| 1379 DCHECK(!cookie_settings_.get()); | 1373 DCHECK(!cookie_settings_.get()); |
| 1380 cookie_settings_ = cookie_settings; | 1374 cookie_settings_ = cookie_settings; |
| 1381 } | 1375 } |
| 1382 | 1376 |
| 1383 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1377 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
| 1384 const GURL& url) const { | 1378 const GURL& url) const { |
| 1385 return url_blacklist_manager_->GetURLBlacklistState(url); | 1379 return url_blacklist_manager_->GetURLBlacklistState(url); |
| 1386 } | 1380 } |
| OLD | NEW |