| 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| 7 | 7 |
| 8 #include "components/safe_browsing/base_blocking_page.h" | 8 #include "components/safe_browsing/base_blocking_page.h" |
| 9 #include "components/security_interstitials/core/safe_browsing_error_ui.h" | 9 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h" |
| 10 | 10 |
| 11 namespace security_interstitials { | 11 namespace security_interstitials { |
| 12 struct UnsafeResource; | 12 struct UnsafeResource; |
| 13 } // namespace security_interstitials | 13 } // namespace security_interstitials |
| 14 | 14 |
| 15 namespace android_webview { | 15 namespace android_webview { |
| 16 | 16 |
| 17 class AwSafeBrowsingUIManager; | 17 class AwSafeBrowsingUIManager; |
| 18 | 18 |
| 19 class AwSafeBrowsingBlockingPage : public safe_browsing::BaseBlockingPage { | 19 class AwSafeBrowsingBlockingPage : public safe_browsing::BaseBlockingPage { |
| 20 public: | 20 public: |
| 21 typedef security_interstitials::UnsafeResource UnsafeResource; | 21 typedef security_interstitials::UnsafeResource UnsafeResource; |
| 22 | 22 |
| 23 static void ShowBlockingPage(AwSafeBrowsingUIManager* ui_manager, | 23 static void ShowBlockingPage(AwSafeBrowsingUIManager* ui_manager, |
| 24 const UnsafeResource& unsafe_resource); | 24 const UnsafeResource& unsafe_resource); |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 // Don't instantiate this class directly, use ShowBlockingPage instead. | 27 // Don't instantiate this class directly, use ShowBlockingPage instead. |
| 28 AwSafeBrowsingBlockingPage( | 28 AwSafeBrowsingBlockingPage( |
| 29 AwSafeBrowsingUIManager* ui_manager, | 29 AwSafeBrowsingUIManager* ui_manager, |
| 30 content::WebContents* web_contents, | 30 content::WebContents* web_contents, |
| 31 const GURL& main_frame_url, | 31 const GURL& main_frame_url, |
| 32 const UnsafeResourceList& unsafe_resources, | 32 const UnsafeResourceList& unsafe_resources, |
| 33 std::unique_ptr< | 33 std::unique_ptr< |
| 34 security_interstitials::SecurityInterstitialControllerClient> | 34 security_interstitials::SecurityInterstitialControllerClient> |
| 35 controller_client, | 35 controller_client, |
| 36 const SafeBrowsingErrorUI::SBErrorDisplayOptions& display_options); | 36 const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace android_webview | 39 } // namespace android_webview |
| 40 | 40 |
| 41 #endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ | 41 #endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| OLD | NEW |