| 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 job_factory->SetProtocolHandler( | 1183 job_factory->SetProtocolHandler( |
| 1184 url::kAboutScheme, | 1184 url::kAboutScheme, |
| 1185 base::MakeUnique<about_handler::AboutProtocolHandler>()); | 1185 base::MakeUnique<about_handler::AboutProtocolHandler>()); |
| 1186 | 1186 |
| 1187 #if !BUILDFLAG(DISABLE_FTP_SUPPORT) | 1187 #if !BUILDFLAG(DISABLE_FTP_SUPPORT) |
| 1188 job_factory->SetProtocolHandler( | 1188 job_factory->SetProtocolHandler( |
| 1189 url::kFtpScheme, net::FtpProtocolHandler::Create(host_resolver)); | 1189 url::kFtpScheme, net::FtpProtocolHandler::Create(host_resolver)); |
| 1190 #endif // !BUILDFLAG(DISABLE_FTP_SUPPORT) | 1190 #endif // !BUILDFLAG(DISABLE_FTP_SUPPORT) |
| 1191 | 1191 |
| 1192 #if BUILDFLAG(DEBUG_DEVTOOLS) | 1192 #if BUILDFLAG(DEBUG_DEVTOOLS) |
| 1193 request_interceptors.push_back(new DebugDevToolsInterceptor); | 1193 request_interceptors.push_back(base::MakeUnique<DebugDevToolsInterceptor>()); |
| 1194 #endif | 1194 #endif |
| 1195 | 1195 |
| 1196 // Set up interceptors in the reverse order. | 1196 // Set up interceptors in the reverse order. |
| 1197 std::unique_ptr<net::URLRequestJobFactory> top_job_factory = | 1197 std::unique_ptr<net::URLRequestJobFactory> top_job_factory = |
| 1198 std::move(job_factory); | 1198 std::move(job_factory); |
| 1199 for (auto i = request_interceptors.rbegin(); i != request_interceptors.rend(); | 1199 for (auto i = request_interceptors.rbegin(); i != request_interceptors.rend(); |
| 1200 ++i) { | 1200 ++i) { |
| 1201 top_job_factory.reset(new net::URLRequestInterceptingJobFactory( | 1201 top_job_factory.reset(new net::URLRequestInterceptingJobFactory( |
| 1202 std::move(top_job_factory), std::move(*i))); | 1202 std::move(top_job_factory), std::move(*i))); |
| 1203 } | 1203 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 void ProfileIOData::SetCookieSettingsForTesting( | 1308 void ProfileIOData::SetCookieSettingsForTesting( |
| 1309 content_settings::CookieSettings* cookie_settings) { | 1309 content_settings::CookieSettings* cookie_settings) { |
| 1310 DCHECK(!cookie_settings_.get()); | 1310 DCHECK(!cookie_settings_.get()); |
| 1311 cookie_settings_ = cookie_settings; | 1311 cookie_settings_ = cookie_settings; |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1314 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
| 1315 const GURL& url) const { | 1315 const GURL& url) const { |
| 1316 return url_blacklist_manager_->GetURLBlacklistState(url); | 1316 return url_blacklist_manager_->GetURLBlacklistState(url); |
| 1317 } | 1317 } |
| OLD | NEW |