diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-03 00:30:50 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-03 00:30:50 +0000 |
commit | 3ce7df0f4d45cf53692d3b393984b9153db1682c (patch) | |
tree | 27aa699c434c356c1180870fb86dfd0fd7dc44e9 /net/http/http_network_transaction.h | |
parent | 918efd45e6af4dfadbea8e3d862e79032be3d014 (diff) | |
download | chromium_src-3ce7df0f4d45cf53692d3b393984b9153db1682c.zip chromium_src-3ce7df0f4d45cf53692d3b393984b9153db1682c.tar.gz chromium_src-3ce7df0f4d45cf53692d3b393984b9153db1682c.tar.bz2 |
Don't ignore certificate errors with SPDY.
For benchmarking and testing, we still want to be able to ignore the
certificate errors, so I added a flag to the use-spdy option to do so:
--ignore-certificate-errors
BUG=32020
TEST=none
Review URL: http://codereview.chromium.org/661375
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r-- | net/http/http_network_transaction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h index 756a413..e4eef52 100644 --- a/net/http/http_network_transaction.h +++ b/net/http/http_network_transaction.h @@ -42,6 +42,10 @@ class HttpNetworkTransaction : public HttpTransaction { // Sets the next protocol negotiation value used during the SSL handshake. static void SetNextProtos(const std::string& next_protos); + // Sets the HttpNetworkTransaction into a mode where it can ignore + // certificate errors. This is for testing. + static void IgnoreCertificateErrors(bool enabled); + // HttpTransaction methods: virtual int Start(const HttpRequestInfo* request_info, CompletionCallback* callback, @@ -258,6 +262,8 @@ class HttpNetworkTransaction : public HttpTransaction { static std::string* g_next_protos; + static bool g_ignore_certificate_errors; + // The following three auth members are arrays of size two -- index 0 is // for the proxy server, and index 1 is for the origin server. // Use the enum HttpAuth::Target to index into them. |