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

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: 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 47464ba4cbab4eb561625650be85298021de1d33..1745625b7bd0363b16cdb814a32a366b2a9eab14 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"
@@ -1057,6 +1058,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);
@@ -1391,6 +1394,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