зеркало из https://github.com/mozilla/gecko-dev.git
bug 378637 part 1 - add leak detection macros to http classes r=hurley
--HG-- extra : rebase_source : 00eb3c046ab80f3b00c4ed8790fc1260a286c2ec
This commit is contained in:
Родитель
86232178d1
Коммит
703bf755db
|
@ -2469,10 +2469,9 @@ nsHttpConnectionMgr::OnMsgUpdateParam(int32_t, void *param)
|
|||
// nsHttpConnectionMgr::nsConnectionEntry
|
||||
nsHttpConnectionMgr::nsConnectionEntry::~nsConnectionEntry()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsConnectionEntry);
|
||||
if (mSpdyPreferred)
|
||||
gHttpHandler->ConnMgr()->RemoveSpdyPreferredEnt(mCoalescingKey);
|
||||
|
||||
NS_RELEASE(mConnInfo);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3255,7 +3254,7 @@ nsConnectionEntry::nsConnectionEntry(nsHttpConnectionInfo *ci)
|
|||
, mPreferIPv4(false)
|
||||
, mPreferIPv6(false)
|
||||
{
|
||||
NS_ADDREF(mConnInfo);
|
||||
MOZ_COUNT_CTOR(nsConnectionEntry);
|
||||
if (gHttpHandler->GetPipelineAggressive()) {
|
||||
mGreenDepth = kPipelineUnlimited;
|
||||
mPipelineState = PS_GREEN;
|
||||
|
|
|
@ -265,7 +265,7 @@ private:
|
|||
nsConnectionEntry(nsHttpConnectionInfo *ci);
|
||||
~nsConnectionEntry();
|
||||
|
||||
nsHttpConnectionInfo *mConnInfo;
|
||||
nsRefPtr<nsHttpConnectionInfo> mConnInfo;
|
||||
nsTArray<nsHttpTransaction*> mPendingQ; // pending transaction queue
|
||||
nsTArray<nsHttpConnection*> mActiveConns; // active connections
|
||||
nsTArray<nsHttpConnection*> mIdleConns; // idle persistent connections
|
||||
|
|
|
@ -20,6 +20,12 @@ nsHttpRequestHead::nsHttpRequestHead()
|
|||
, mVersion(NS_HTTP_VERSION_1_1)
|
||||
, mParsedMethod(kMethod_Get)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsHttpRequestHead);
|
||||
}
|
||||
|
||||
nsHttpRequestHead::~nsHttpRequestHead()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsHttpRequestHead);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -21,6 +21,7 @@ class nsHttpRequestHead
|
|||
{
|
||||
public:
|
||||
nsHttpRequestHead();
|
||||
~nsHttpRequestHead();
|
||||
|
||||
void SetMethod(const nsACString &method);
|
||||
void SetVersion(nsHttpVersion version) { mVersion = version; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче