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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Pass through FrameReplicationState Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 } 1296 }
1297 1297
1298 bool isInMainFrame() const; 1298 bool isInMainFrame() const;
1299 1299
1300 void maybeRecordLoadReason(WouldLoadReason); 1300 void maybeRecordLoadReason(WouldLoadReason);
1301 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } 1301 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; }
1302 1302
1303 const PropertyRegistry* propertyRegistry() const; 1303 const PropertyRegistry* propertyRegistry() const;
1304 PropertyRegistry* propertyRegistry(); 1304 PropertyRegistry* propertyRegistry();
1305 1305
1306 // Indicates whether the user has interacted with this particular Document.
1307 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
1308 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
1309
1310 // Document maintains a counter of visible non-secure password 1306 // Document maintains a counter of visible non-secure password
1311 // fields in the page. Used to notify the embedder when all visible 1307 // fields in the page. Used to notify the embedder when all visible
1312 // non-secure passwords fields are no longer visible. 1308 // non-secure passwords fields are no longer visible.
1313 void incrementPasswordCount(); 1309 void incrementPasswordCount();
1314 void decrementPasswordCount(); 1310 void decrementPasswordCount();
1315 1311
1316 protected: 1312 protected:
1317 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1313 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1318 1314
1319 void didUpdateSecurityOrigin() final; 1315 void didUpdateSecurityOrigin() final;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 String m_xmlVersion; 1553 String m_xmlVersion;
1558 unsigned m_xmlStandalone : 2; 1554 unsigned m_xmlStandalone : 2;
1559 unsigned m_hasXMLDeclaration : 1; 1555 unsigned m_hasXMLDeclaration : 1;
1560 1556
1561 AtomicString m_contentLanguage; 1557 AtomicString m_contentLanguage;
1562 1558
1563 DocumentEncodingData m_encodingData; 1559 DocumentEncodingData m_encodingData;
1564 1560
1565 bool m_designMode; 1561 bool m_designMode;
1566 bool m_isRunningExecCommand; 1562 bool m_isRunningExecCommand;
1567 bool m_hasReceivedUserGesture;
1568 1563
1569 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; 1564 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument;
1570 // Oilpan keeps track of all registered NodeLists. 1565 // Oilpan keeps track of all registered NodeLists.
1571 // TODO(Oilpan): improve - only need to know if a NodeList 1566 // TODO(Oilpan): improve - only need to know if a NodeList
1572 // is currently alive or not for the different types. 1567 // is currently alive or not for the different types.
1573 HeapHashSet<WeakMember<const LiveNodeListBase>> 1568 HeapHashSet<WeakMember<const LiveNodeListBase>>
1574 m_nodeLists[numNodeListInvalidationTypes]; 1569 m_nodeLists[numNodeListInvalidationTypes];
1575 1570
1576 Member<SVGDocumentExtensions> m_svgExtensions; 1571 Member<SVGDocumentExtensions> m_svgExtensions;
1577 1572
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1718 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1724 1719
1725 } // namespace blink 1720 } // namespace blink
1726 1721
1727 #ifndef NDEBUG 1722 #ifndef NDEBUG
1728 // Outside the WebCore namespace for ease of invocation from gdb. 1723 // Outside the WebCore namespace for ease of invocation from gdb.
1729 CORE_EXPORT void showLiveDocumentInstances(); 1724 CORE_EXPORT void showLiveDocumentInstances();
1730 #endif 1725 #endif
1731 1726
1732 #endif // Document_h 1727 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698