Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug

separate tracker counter API

Differential Revision: https://phabricator.services.mozilla.com/D4490

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Liang-Heng Chen 2018-08-30 20:21:44 +00:00
parent 942e399548
commit 2d642ae078

View File

@ -3555,14 +3555,16 @@ public:
--mIgnoreOpensDuringUnloadCounter;
}
void IncrementTrackerCount(bool aIsTrackerBlocked)
void IncrementTrackerCount()
{
MOZ_ASSERT(!GetSameTypeParentDocument());
++mNumTrackersFound;
if (aIsTrackerBlocked) {
++mNumTrackersBlocked;
}
}
void IncrementTrackerBlockedCount()
{
MOZ_ASSERT(!GetSameTypeParentDocument());
++mNumTrackersBlocked;
}
uint32_t NumTrackersFound()