diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-01 14:48:34 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-02 14:49:45 +0200 |
commit | 534de5cc5b76f3f8556b8a5c318cde7a5bb93c3d (patch) | |
tree | 1d0cebb83ce88607d10f7543e9defeeb715d1ccc /netwerk/protocol/http/nsHttpChannel.cpp | |
parent | 023a71c6f2007eb08116ce539920f7cd11d52d8d (diff) | |
download | uxp-534de5cc5b76f3f8556b8a5c318cde7a5bb93c3d.tar.gz |
Issue #21 - Remove remaining telemetry structs, callers and flags.
Diffstat (limited to 'netwerk/protocol/http/nsHttpChannel.cpp')
-rw-r--r-- | netwerk/protocol/http/nsHttpChannel.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index 3a197efe4e..915a80fb68 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* vim:set expandtab ts=4 sw=4 sts=4 cin: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -5829,8 +5828,6 @@ nsHttpChannel::HandleBeginConnectContinue() nsresult nsHttpChannel::BeginConnectContinue() { - nsresult rv; - // Check if request was cancelled during suspend AFTER on-modify-request or // on-useragent. if (mCanceled) { @@ -6592,41 +6589,6 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st } } - // HTTP_CHANNEL_DISPOSITION TELEMETRY - enum ChannelDisposition - { - kHttpCanceled = 0, - kHttpDisk = 1, - kHttpNetOK = 2, - kHttpNetEarlyFail = 3, - kHttpNetLateFail = 4, - kHttpsCanceled = 8, - kHttpsDisk = 9, - kHttpsNetOK = 10, - kHttpsNetEarlyFail = 11, - kHttpsNetLateFail = 12 - } chanDisposition = kHttpCanceled; - - // HTTP 0.9 is more likely to be an error than really 0.9, so count it that way - if (mCanceled) { - chanDisposition = kHttpCanceled; - } else if (!mUsedNetwork) { - chanDisposition = kHttpDisk; - } else if (NS_SUCCEEDED(status) && - mResponseHead && - mResponseHead->Version() != NS_HTTP_VERSION_0_9) { - chanDisposition = kHttpNetOK; - } else if (!mTransferSize) { - chanDisposition = kHttpNetEarlyFail; - } else { - chanDisposition = kHttpNetLateFail; - } - if (IsHTTPS()) { - // shift http to https disposition enums - chanDisposition = static_cast<ChannelDisposition>(chanDisposition + kHttpsCanceled); - } - LOG((" nsHttpChannel::OnStopRequest ChannelDisposition %d\n", chanDisposition)); - // if needed, check cache entry has all data we expect if (mCacheEntry && mCachePump && mConcurrentCacheAccess && contentComplete) { |