summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-12 19:08:36 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-12 19:08:36 +0000
commit5d0153c51cd317bc38673fb70c5d59314aff7b69 (patch)
treee6f028c1c727c2c74ca23932a7ce0ca2b5c61d76 /net/http
parent70aa77609a881545064e3df7ffa580d933c4f76f (diff)
downloadchromium_src-5d0153c51cd317bc38673fb70c5d59314aff7b69.zip
chromium_src-5d0153c51cd317bc38673fb70c5d59314aff7b69.tar.gz
chromium_src-5d0153c51cd317bc38673fb70c5d59314aff7b69.tar.bz2
Measure how often the users are encountering MD5
certificates. R=jar BUG=6102 Review URL: http://codereview.chromium.org/17471 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 0ba3d1e..45a9a5e 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -10,6 +10,7 @@
#include "base/trace_event.h"
#include "build/build_config.h"
#include "net/base/client_socket_factory.h"
+#include "net/base/connection_type_histograms.h"
#include "net/base/dns_resolution_observer.h"
#include "net/base/host_resolver.h"
#include "net/base/load_flags.h"
@@ -62,6 +63,8 @@ HttpNetworkTransaction::HttpNetworkTransaction(HttpNetworkSession* session,
int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,
CompletionCallback* callback) {
+ UpdateConnectionTypeHistograms(CONNECTION_ANY);
+
request_ = request_info;
next_state_ = STATE_RESOLVE_PROXY;
@@ -1054,7 +1057,7 @@ int HttpNetworkTransaction::ReconsiderProxyAfterError(int error) {
void HttpNetworkTransaction::AddAuthorizationHeader(HttpAuth::Target target) {
// If we have no authentication information, check if we can select
// a cache entry preemptively (based on the path).
- if(!HaveAuth(target) && !SelectPreemptiveAuth(target))
+ if (!HaveAuth(target) && !SelectPreemptiveAuth(target))
return;
DCHECK(HaveAuth(target));
@@ -1114,7 +1117,7 @@ void HttpNetworkTransaction::InvalidateRejectedAuthFromCache(
// Note: we require the username/password to match before invalidating
// since the entry in the cache may be newer than what we used last time.
session_->auth_cache()->Remove(AuthOrigin(target),
- auth_handler_[target]->realm(),
+ auth_handler_[target]->realm(),
auth_identity_[target].username,
auth_identity_[target].password);
}