summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 20:31:32 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 20:31:32 +0000
commit93983a938f6b5f31ba792f5fa28a62822015eddf (patch)
tree83a74247a7e440bb226630d442a6e95afa25a934 /net
parentb1d8c25b97a98dbde3d4e8c8c298b8f46a3ddb29 (diff)
downloadchromium_src-93983a938f6b5f31ba792f5fa28a62822015eddf.zip
chromium_src-93983a938f6b5f31ba792f5fa28a62822015eddf.tar.gz
chromium_src-93983a938f6b5f31ba792f5fa28a62822015eddf.tar.bz2
Revert r71331 - it should never have been committed.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/socket/ssl_host_info.cc22
-rw-r--r--net/socket/ssl_host_info.h7
2 files changed, 1 insertions, 28 deletions
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc
index bd7a4ad..1fcc053 100644
--- a/net/socket/ssl_host_info.cc
+++ b/net/socket/ssl_host_info.cc
@@ -76,20 +76,6 @@ SSLHostInfo::State* SSLHostInfo::mutable_state() {
return &state_;
}
-void SSLHostInfo::set_cert_verification_finished_time() {
-#if defined(OS_LINUX)
- if (dnsrr_resolver_ && dns_handle_ == DnsRRResolver::kInvalidHandle) {
- // We have completed the DNS lookup already. Therefore, waiting for the DNS
- // lookup would cause no delay.
- UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookupDelayMs", base::TimeDelta());
- } else {
- // The actual delay will be calculated when the DNS lookup finishes, in
- // DnsComplete.
- cert_verification_finished_time_ = base::TimeTicks::Now();
- }
-#endif
-}
-
bool SSLHostInfo::Parse(const std::string& data) {
State* state = mutable_state();
@@ -238,16 +224,10 @@ void SSLHostInfo::DnsComplete(int rv) {
dns_callback_ = NULL;
const base::TimeTicks now = base::TimeTicks::Now();
- base::TimeDelta elapsed = now - dns_lookup_start_time_;
+ const base::TimeDelta elapsed = now - dns_lookup_start_time_;
UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookup", elapsed);
-
- if (!cert_verification_finished_time_.is_null()) {
- elapsed = now - cert_verification_finished_time_;
- UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookupDelayMs", elapsed);
- }
}
-
SSLHostInfoFactory::~SSLHostInfoFactory() {}
} // namespace net
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h
index 276888b..c384e2e 100644
--- a/net/socket/ssl_host_info.h
+++ b/net/socket/ssl_host_info.h
@@ -106,12 +106,6 @@ class SSLHostInfo {
return verification_end_time_;
}
- // set_cert_verification_finished_time allows the SSL socket to tell us when
- // it finished verifing the certificate. If the DNS request hasn't finished
- // by this time then we record how long we would have had to have waited for
- // it.
- void set_cert_verification_finished_time();
-
protected:
// Parse parses an opaque blob of data and fills out the public member fields
// of this object. It returns true iff the parse was successful. The public
@@ -152,7 +146,6 @@ class SSLHostInfo {
DnsRRResolver::Handle dns_handle_;
RRResponse dns_response_;
base::TimeTicks dns_lookup_start_time_;
- base::TimeTicks cert_verification_finished_time_;
};
class SSLHostInfoFactory {