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

Unified Diff: Source/core/dom/Document.h

Issue 986583002: Collect host of Web Component usage to send to RAPPOR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move to Platform to align with other histogram/UMA methods Created 5 years, 9 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 279333d77ef15ad2d85627ab9b857f577b172707..2fdabb6e3d6b1b34f15c4dd92b973ca7ab387327 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -49,6 +49,7 @@
#include "core/dom/custom/CustomElement.h"
#include "core/frame/DOMTimerCoordinator.h"
#include "core/frame/LocalDOMWindow.h"
+#include "core/frame/UseByOriginCounter.h"
#include "core/html/CollectionType.h"
#include "core/html/parser/ParserSynchronizationPolicy.h"
#include "core/page/PageVisibilityState.h"
@@ -1061,6 +1062,8 @@ public:
virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper) override;
+ UseByOriginCounter::Value& useByOriginCounterValue() { return m_useByOriginCounterValue; }
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
@@ -1395,6 +1398,8 @@ private:
int m_styleRecalcElementCounter;
ParserSynchronizationPolicy m_parserSyncPolicy;
+
+ UseByOriginCounter::Value m_useByOriginCounterValue;
};
inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)

Powered by Google App Engine
This is Rietveld 408576698