Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: android_webview/browser/aw_safe_browsing_blocking_page.h

Issue 2863723002: WebView: create AwSafeBrowsingBlockingPage (Closed)
Patch Set: Fixing comment, fixing forward decl. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_safe_browsing_blocking_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698