| 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 // Implementation of the SafeBrowsingBlockingPage class. | 5 // Implementation of the SafeBrowsingBlockingPage class. |
| 6 | 6 |
| 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" | 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/history/history_service_factory.h" | 11 #include "chrome/browser/history/history_service_factory.h" |
| 12 #include "chrome/browser/interstitials/chrome_controller_client.h" | 12 #include "chrome/browser/interstitials/chrome_controller_client.h" |
| 13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" | 13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/renderer_preferences_util.h" | 15 #include "chrome/browser/renderer_preferences_util.h" |
| 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "components/prefs/pref_service.h" | 18 #include "components/prefs/pref_service.h" |
| 19 #include "components/safe_browsing/browser/threat_details.h" | 19 #include "components/safe_browsing/browser/threat_details.h" |
| 20 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 20 #include "components/safe_browsing/triggers/trigger_manager.h" | 21 #include "components/safe_browsing/triggers/trigger_manager.h" |
| 21 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
| 22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| 23 #include "content/public/browser/interstitial_page.h" | 23 #include "content/public/browser/interstitial_page.h" |
| 24 #include "content/public/browser/navigation_entry.h" | 24 #include "content/public/browser/navigation_entry.h" |
| 25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
| 26 | 26 |
| 27 using content::BrowserThread; | 27 using content::BrowserThread; |
| 28 using content::InterstitialPage; | 28 using content::InterstitialPage; |
| 29 using content::WebContents; | 29 using content::WebContents; |
| 30 using security_interstitials::BaseSafeBrowsingErrorUI; | 30 using security_interstitials::BaseSafeBrowsingErrorUI; |
| 31 using security_interstitials::SecurityInterstitialControllerClient; | 31 using security_interstitials::SecurityInterstitialControllerClient; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 web_contents, unsafe_resources[0].url, | 273 web_contents, unsafe_resources[0].url, |
| 274 GetReportingInfo(unsafe_resources), | 274 GetReportingInfo(unsafe_resources), |
| 275 GetSamplingEventName(GetInterstitialReason(unsafe_resources))); | 275 GetSamplingEventName(GetInterstitialReason(unsafe_resources))); |
| 276 | 276 |
| 277 return base::MakeUnique<SecurityInterstitialControllerClient>( | 277 return base::MakeUnique<SecurityInterstitialControllerClient>( |
| 278 web_contents, std::move(metrics_helper), profile->GetPrefs(), | 278 web_contents, std::move(metrics_helper), profile->GetPrefs(), |
| 279 ui_manager->app_locale(), ui_manager->default_safe_page()); | 279 ui_manager->app_locale(), ui_manager->default_safe_page()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace safe_browsing | 282 } // namespace safe_browsing |
| OLD | NEW |