| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "components/safe_browsing/base_blocking_page.h" | 5 #include "components/safe_browsing/base_blocking_page.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 12 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 13 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" | 13 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" |
| 14 #include "components/security_interstitials/core/metrics_helper.h" | 14 #include "components/security_interstitials/core/metrics_helper.h" |
| 15 #include "components/security_interstitials/core/safe_browsing_loud_error_ui.h" | 15 #include "components/security_interstitials/core/safe_browsing_loud_error_ui.h" |
| 16 #include "content/public/browser/interstitial_page.h" | 16 #include "content/public/browser/interstitial_page.h" |
| 17 #include "content/public/browser/navigation_entry.h" | 17 #include "content/public/browser/navigation_entry.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 | 19 |
| 20 using content::InterstitialPage; | 20 using content::InterstitialPage; |
| 21 using content::WebContents; | 21 using content::WebContents; |
| 22 using security_interstitials::BaseSafeBrowsingErrorUI; | 22 using security_interstitials::BaseSafeBrowsingErrorUI; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 base::MakeUnique<security_interstitials::MetricsHelper>( | 344 base::MakeUnique<security_interstitials::MetricsHelper>( |
| 345 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), | 345 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), |
| 346 history_service); | 346 history_service); |
| 347 | 347 |
| 348 return base::MakeUnique<SecurityInterstitialControllerClient>( | 348 return base::MakeUnique<SecurityInterstitialControllerClient>( |
| 349 web_contents, std::move(metrics_helper), nullptr, /* prefs */ | 349 web_contents, std::move(metrics_helper), nullptr, /* prefs */ |
| 350 ui_manager->app_locale(), ui_manager->default_safe_page()); | 350 ui_manager->app_locale(), ui_manager->default_safe_page()); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace safe_browsing | 353 } // namespace safe_browsing |
| OLD | NEW |