Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/Source/core/loader/SinkDocument.cpp

Issue 1866343002: Measure usage of image/media/plugin/text documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/TextDocument.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/SinkDocument.cpp
diff --git a/third_party/WebKit/Source/core/loader/SinkDocument.cpp b/third_party/WebKit/Source/core/loader/SinkDocument.cpp
index e96d3593e94bb0a3028ec7f8baff73128a2a7aa5..41e3d8586531d71b1702494def901ecf4707740a 100644
--- a/third_party/WebKit/Source/core/loader/SinkDocument.cpp
+++ b/third_party/WebKit/Source/core/loader/SinkDocument.cpp
@@ -26,6 +26,7 @@
#include "core/loader/SinkDocument.h"
#include "core/dom/RawDataDocumentParser.h"
+#include "core/frame/UseCounter.h"
namespace blink {
@@ -51,6 +52,9 @@ SinkDocument::SinkDocument(const DocumentInit& initializer)
{
setCompatibilityMode(QuirksMode);
lockCompatibilityMode();
+ UseCounter::count(*this, UseCounter::SinkDocument);
+ if (ownerElement())
+ UseCounter::count(*this, UseCounter::SinkDocumentInFrame);
}
DocumentParser* SinkDocument::createParser()
« no previous file with comments | « third_party/WebKit/Source/core/html/TextDocument.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698