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

Unified Diff: content/browser/ssl/ssl_cert_error_handler.h

Issue 7976036: net: make HSTS hosts use the normal SSL interstitials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 3 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: content/browser/ssl/ssl_cert_error_handler.h
diff --git a/content/browser/ssl/ssl_cert_error_handler.h b/content/browser/ssl/ssl_cert_error_handler.h
index 6dcbe0ffe41ca3a27532e6ba4b98b0b2ebfcfed8..750bd5be4495f42df6f32f35b587e4f95106734e 100644
--- a/content/browser/ssl/ssl_cert_error_handler.h
+++ b/content/browser/ssl/ssl_cert_error_handler.h
@@ -24,14 +24,15 @@ class SSLCertErrorHandler : public SSLErrorHandler {
SSLCertErrorHandler(ResourceDispatcherHost* rdh,
net::URLRequest* request,
ResourceType::Type resource_type,
- int cert_error,
- net::X509Certificate* cert);
+ const net::SSLInfo& ssl_info,
+ bool is_hsts_host);
virtual SSLCertErrorHandler* AsSSLCertErrorHandler();
// These accessors are available on either thread
const net::SSLInfo& ssl_info() const { return ssl_info_; }
int cert_error() const { return cert_error_; }
+ bool is_hsts_host() const { return is_hsts_host_; }
protected:
// SSLErrorHandler methods
@@ -42,8 +43,9 @@ class SSLCertErrorHandler : public SSLErrorHandler {
virtual ~SSLCertErrorHandler();
// These read-only members may be accessed on any thread.
- net::SSLInfo ssl_info_;
+ const net::SSLInfo ssl_info_;
const int cert_error_; // The error we represent.
+ const bool is_hsts_host_; // true if the error is from an HSTS host.
DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler);
};
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/browser/ssl/ssl_cert_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698