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

Unified Diff: chrome/browser/ssl/ssl_error_handler.h

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert accidental deletion (fixes failing CaptivePortal tests) Created 5 years, 9 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 | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_error_handler.h
diff --git a/chrome/browser/ssl/ssl_error_handler.h b/chrome/browser/ssl/ssl_error_handler.h
index 4679f4ac1b3cddfa76460d7a767a9bfd26a40a8f..c069b47a55627c86cd31989a81b75e77b4c5de4d 100644
--- a/chrome/browser/ssl/ssl_error_handler.h
+++ b/chrome/browser/ssl/ssl_error_handler.h
@@ -23,6 +23,8 @@ class RenderViewHost;
class WebContents;
}
+class SafeBrowsingUIManager;
+
// This class is responsible for deciding whether to show an SSL warning or a
// captive portal error page. It makes this decision by delaying the display of
// SSL interstitial for a few seconds (2 by default), and waiting for a captive
@@ -51,6 +53,7 @@ class SSLErrorHandler : public content::WebContentsUserData<SSLErrorHandler>,
const net::SSLInfo& ssl_info,
const GURL& request_url,
int options_mask,
+ SafeBrowsingUIManager* safe_browsing_ui_manager,
const base::Callback<void(bool)>& callback);
static void SetInterstitialDelayTypeForTest(InterstitialDelayType delay);
@@ -65,6 +68,7 @@ class SSLErrorHandler : public content::WebContentsUserData<SSLErrorHandler>,
const net::SSLInfo& ssl_info,
const GURL& request_url,
int options_mask,
+ SafeBrowsingUIManager* safe_browsing_ui_manager,
const base::Callback<void(bool)>& callback);
~SSLErrorHandler() override;
@@ -108,6 +112,8 @@ class SSLErrorHandler : public content::WebContentsUserData<SSLErrorHandler>,
content::NotificationRegistrar registrar_;
base::OneShotTimer<SSLErrorHandler> timer_;
+ SafeBrowsingUIManager* safe_browsing_ui_manager_;
+
DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler);
};
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698