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

Unified Diff: android_webview/browser/aw_safe_browsing_ui_manager.h

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rebase, fix merge conflicts 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
Index: android_webview/browser/aw_safe_browsing_ui_manager.h
diff --git a/android_webview/browser/aw_safe_browsing_ui_manager.h b/android_webview/browser/aw_safe_browsing_ui_manager.h
index f1fc5357c6b6864d9ad748c4874fceace3a4b902..79873c600ac10dc8b23ad22deac5bff6063e0b99 100644
--- a/android_webview/browser/aw_safe_browsing_ui_manager.h
+++ b/android_webview/browser/aw_safe_browsing_ui_manager.h
@@ -20,8 +20,11 @@ class AwSafeBrowsingUIManager : public safe_browsing::BaseUIManager {
public:
static UIManagerClient* FromWebContents(content::WebContents* web_contents);
- // Whether this web contents can show an interstitial
- virtual bool CanShowBigInterstitial() = 0;
+ // Whether this web contents can show any sort of interstitial
+ virtual bool CanShowInterstitial() = 0;
+
+ // Returns the appropriate BaseBlockingPage::ErrorUiType
+ virtual int GetErrorUiType() = 0;
};
// Construction needs to happen on the UI thread.
@@ -29,6 +32,9 @@ class AwSafeBrowsingUIManager : public safe_browsing::BaseUIManager {
void DisplayBlockingPage(const UnsafeResource& resource) override;
+ // Gets the correct ErrorUiType for the web contents
+ int GetErrorUiType(const UnsafeResource& resource) const;
+
protected:
~AwSafeBrowsingUIManager() override;
« no previous file with comments | « android_webview/browser/aw_safe_browsing_blocking_page.cc ('k') | android_webview/browser/aw_safe_browsing_ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698