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

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

Issue 2535483002: Plumb site engagement to the renderer process. (Closed)
Patch Set: Rebase. Fix Win compile Created 4 years, 1 month 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: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index d31b73c2933e9eba7c572af82fd298f97f0d90e6..da89477ab31157cd7047cd280cd19c079ed0b950 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -64,6 +64,7 @@
#include "platform/weborigin/ReferrerPolicy.h"
#include "public/platform/WebFocusType.h"
#include "public/platform/WebInsecureRequestPolicy.h"
+#include "public/platform/site_engagement.mojom-blink.h"
#include "wtf/Compiler.h"
#include "wtf/HashSet.h"
#include "wtf/PassRefPtr.h"
@@ -1205,6 +1206,13 @@ class CORE_EXPORT Document : public ContainerNode,
Document& ensureTemplateDocument();
Document* templateDocumentHost() { return m_templateDocumentHost; }
+ mojom::blink::EngagementLevel getEngagementLevel() const {
+ return m_engagementLevel;
+ }
+ void setEngagementLevel(mojom::blink::EngagementLevel level) {
+ m_engagementLevel = level;
+ }
+
// TODO(thestig): Rename these and related functions, since we can call them
// for controls outside of forms as well.
void didAssociateFormControl(Element*);
@@ -1670,6 +1678,8 @@ class CORE_EXPORT Document : public ContainerNode,
Member<PropertyRegistry> m_propertyRegistry;
unsigned m_passwordCount;
+
+ mojom::EngagementLevel m_engagementLevel;
};
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;

Powered by Google App Engine
This is Rietveld 408576698