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); |
}; |