summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_script_fetcher_impl.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 16:39:00 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 16:39:00 +0000
commit41a8669d04f762fe62a68b74425133b3c91f9ff6 (patch)
tree7289381e127c4e9ede8e2550da91a1325516b60f /net/proxy/proxy_script_fetcher_impl.h
parent46bcd237ebf1d597de0f0f974c7adb3ede6ba621 (diff)
downloadchromium_src-41a8669d04f762fe62a68b74425133b3c91f9ff6.zip
chromium_src-41a8669d04f762fe62a68b74425133b3c91f9ff6.tar.gz
chromium_src-41a8669d04f762fe62a68b74425133b3c91f9ff6.tar.bz2
net: make HSTS hosts use the normal SSL interstitials
SSL interstitials have better translations for the error messages and this returns us to the point where we have only a single UI for SSL errors, which will make some future changes easier. First, this change changes the SSL error callbacks to take an SSLInfo& rather than a X509Certificate* (which was already a TODO(wtc) in the code). Most of this change is the resulting plumbing. It also adds a |is_hsts_host| flag to the callbacks to denote an HSTS host. Finally, in ssl_policy.cc the |is_hsts_host| flag causes any error to be fatal. BUG=93527 http://codereview.chromium.org/7976036/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_script_fetcher_impl.h')
-rw-r--r--net/proxy/proxy_script_fetcher_impl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/proxy/proxy_script_fetcher_impl.h b/net/proxy/proxy_script_fetcher_impl.h
index ff57a28..0236559 100644
--- a/net/proxy/proxy_script_fetcher_impl.h
+++ b/net/proxy/proxy_script_fetcher_impl.h
@@ -53,8 +53,9 @@ class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher,
// URLRequest::Delegate methods:
virtual void OnAuthRequired(URLRequest* request,
AuthChallengeInfo* auth_info) OVERRIDE;
- virtual void OnSSLCertificateError(URLRequest* request, int cert_error,
- X509Certificate* cert) OVERRIDE;
+ virtual void OnSSLCertificateError(URLRequest* request,
+ const SSLInfo& ssl_info,
+ bool is_hsts_ok) OVERRIDE;
virtual void OnResponseStarted(URLRequest* request) OVERRIDE;
virtual void OnReadCompleted(URLRequest* request, int num_bytes) OVERRIDE;