| Index: android_webview/browser/aw_safe_browsing_blocking_page.h
|
| diff --git a/android_webview/browser/aw_safe_browsing_blocking_page.h b/android_webview/browser/aw_safe_browsing_blocking_page.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..345532526e01126ad5388baaa30ac8f53733316b
|
| --- /dev/null
|
| +++ b/android_webview/browser/aw_safe_browsing_blocking_page.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_
|
| +#define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_
|
| +
|
| +#include "components/safe_browsing/base_blocking_page.h"
|
| +#include "components/security_interstitials/core/safe_browsing_error_ui.h"
|
| +
|
| +namespace security_interstitials {
|
| +struct UnsafeResource;
|
| +} // namespace security_interstitials
|
| +
|
| +namespace android_webview {
|
| +
|
| +class AwSafeBrowsingUIManager;
|
| +
|
| +class AwSafeBrowsingBlockingPage : public safe_browsing::BaseBlockingPage {
|
| + public:
|
| + typedef security_interstitials::UnsafeResource UnsafeResource;
|
| +
|
| + static void ShowBlockingPage(AwSafeBrowsingUIManager* ui_manager,
|
| + const UnsafeResource& unsafe_resource);
|
| +
|
| + protected:
|
| + // Don't instantiate this class directly, use ShowBlockingPage instead.
|
| + AwSafeBrowsingBlockingPage(
|
| + AwSafeBrowsingUIManager* ui_manager,
|
| + content::WebContents* web_contents,
|
| + const GURL& main_frame_url,
|
| + const UnsafeResourceList& unsafe_resources,
|
| + std::unique_ptr<
|
| + security_interstitials::SecurityInterstitialControllerClient>
|
| + controller_client,
|
| + const SafeBrowsingErrorUI::SBErrorDisplayOptions& display_options);
|
| +};
|
| +
|
| +} // namespace android_webview
|
| +
|
| +#endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_BLOCKING_PAGE_H_
|
|
|