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 0844a8866f7e44e8c80e1de6abf56ca11efc538d..b2d8da28af6afee0ced8f17575e26fa1a1e71b16 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.h |
+++ b/third_party/WebKit/Source/core/dom/Document.h |
@@ -1290,6 +1290,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); |
@@ -1534,6 +1542,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. |