bug 848360 - telemetry for ssl ratios of http transactions and page loads r=jduell

This commit is contained in:
Patrick McManus 2013-03-07 16:52:52 -05:00
parent f7506474e5
commit 1f8686901d
2 changed files with 17 additions and 0 deletions

View File

@ -1163,6 +1163,15 @@ nsHttpChannel::ProcessResponse()
nsresult rv;
uint32_t httpStatus = mResponseHead->Status();
// Gather data on whether the transaction and page (if this is
// the initial page load) is being loaded with SSL.
Telemetry::Accumulate(Telemetry::HTTP_TRANSACTION_IS_SSL,
mConnectionInfo->UsingSSL());
if (mLoadFlags & LOAD_INITIAL_DOCUMENT_URI) {
Telemetry::Accumulate(Telemetry::HTTP_PAGELOAD_IS_SSL,
mConnectionInfo->UsingSSL());
}
LOG(("nsHttpChannel::ProcessResponse [this=%p httpStatus=%u]\n",
this, httpStatus));

View File

@ -815,6 +815,14 @@
"n_values": 8,
"description": "HTTP Proxy Type (none, http, socks)"
},
"HTTP_TRANSACTION_IS_SSL": {
"kind": "boolean",
"description": "Whether a HTTP transaction was over SSL or not."
},
"HTTP_PAGELOAD_IS_SSL": {
"kind": "boolean",
"description": "Whether a HTTP base page load was over SSL or not."
},
"SSL_HANDSHAKE_VERSION": {
"kind": "enumerated",
"n_values": 16,