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 689ee02c0a7bb76f715799464e55dd211e201927..7094eac0359be99f4d39e60f696bf348c6085e84 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.h |
+++ b/third_party/WebKit/Source/core/dom/Document.h |
@@ -1289,6 +1289,14 @@ class CORE_EXPORT Document : public ContainerNode, |
PropertyRegistry* propertyRegistry(); |
+ // Indicates whether the user has interacted with this particular Document. |
+ void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } |
+ // Consume user interaction state. Used for an experiment that restricts |
+ // adding history entries to Documents that have had a user gesture since |
+ // last history state change. |
+ void clearHasReceivedUserGesture() { m_hasReceivedUserGesture = false; } |
+ bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } |
+ |
protected: |
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
@@ -1533,6 +1541,7 @@ class CORE_EXPORT Document : public ContainerNode, |
bool m_designMode; |
bool m_isRunningExecCommand; |
+ bool m_hasReceivedUserGesture; |
HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; |
// Oilpan keeps track of all registered NodeLists. |