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