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

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: use SecurityInterstitialMetricsHelper for extended reporting events 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
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 fb6fd7039c2f6212088db5fd6597ceb57e60fcbf..7f7d1f3d1e80b01cbaeb9ce67c0b8ffcec37584b 100644
--- a/chrome/browser/ssl/ssl_error_handler.h
+++ b/chrome/browser/ssl/ssl_error_handler.h
@@ -22,6 +22,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
@@ -49,6 +51,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);
@@ -63,6 +66,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;
@@ -101,6 +105,8 @@ class SSLErrorHandler : public content::WebContentsUserData<SSLErrorHandler>,
content::NotificationRegistrar registrar_;
base::OneShotTimer<SSLErrorHandler> timer_;
+ SafeBrowsingUIManager* safe_browsing_ui_manager_;
+
DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler);
};

Powered by Google App Engine
This is Rietveld 408576698