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

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

Issue 2535483002: Plumb site engagement to the renderer process. (Closed)
Patch Set: Rebase Created 4 years 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 | « content/renderer/render_thread_impl.cc ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4a8a171fd594c7f9618585c1b00e32097c6c241c..3fc2855759264c46b857aa3c9edf3a86c2adf044 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -63,6 +63,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"
@@ -1194,6 +1195,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*);
@@ -1662,6 +1670,8 @@ class CORE_EXPORT Document : public ContainerNode,
unsigned m_passwordCount;
TaskHandle m_sensitiveInputVisibilityTask;
+
+ mojom::EngagementLevel m_engagementLevel;
};
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698