| 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 "content/public/browser/interstitial_page.h" | 15 #include "content/public/browser/interstitial_page.h" |
| 16 #include "content/public/browser/navigation_entry.h" | 16 #include "content/public/browser/navigation_entry.h" |
| 17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 18 | 18 |
| 19 using content::InterstitialPage; | 19 using content::InterstitialPage; |
| 20 using content::WebContents; | 20 using content::WebContents; |
| 21 using security_interstitials::SafeBrowsingErrorUI; | 21 using security_interstitials::SafeBrowsingErrorUI; |
| 22 using security_interstitials::SecurityInterstitialControllerClient; | 22 using security_interstitials::SecurityInterstitialControllerClient; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 base::MakeUnique<security_interstitials::MetricsHelper>( | 342 base::MakeUnique<security_interstitials::MetricsHelper>( |
| 343 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), | 343 unsafe_resources[0].url, GetReportingInfo(unsafe_resources), |
| 344 history_service); | 344 history_service); |
| 345 | 345 |
| 346 return base::MakeUnique<SecurityInterstitialControllerClient>( | 346 return base::MakeUnique<SecurityInterstitialControllerClient>( |
| 347 web_contents, std::move(metrics_helper), nullptr, /* prefs */ | 347 web_contents, std::move(metrics_helper), nullptr, /* prefs */ |
| 348 ui_manager->app_locale(), ui_manager->default_safe_page()); | 348 ui_manager->app_locale(), ui_manager->default_safe_page()); |
| 349 } | 349 } |
| 350 | 350 |
| 351 } // namespace safe_browsing | 351 } // namespace safe_browsing |
| OLD | NEW |