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

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

Issue 2538473002: Reland of Post tasks for sensitive input visibility notifications (Closed)
Patch Set: Wait for a script to run before checking for pwd notifications 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 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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 1310
1311 // Indicates whether the user has interacted with this particular Document. 1311 // Indicates whether the user has interacted with this particular Document.
1312 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } 1312 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
1313 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } 1313 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
1314 1314
1315 // Document maintains a counter of visible non-secure password 1315 // Document maintains a counter of visible non-secure password
1316 // fields in the page. Used to notify the embedder when all visible 1316 // fields in the page. Used to notify the embedder when all visible
1317 // non-secure passwords fields are no longer visible. 1317 // non-secure passwords fields are no longer visible.
1318 void incrementPasswordCount(); 1318 void incrementPasswordCount();
1319 void decrementPasswordCount(); 1319 void decrementPasswordCount();
1320 unsigned passwordCount() const;
1321 1320
1322 protected: 1321 protected:
1323 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1322 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1324 1323
1325 void didUpdateSecurityOrigin() final; 1324 void didUpdateSecurityOrigin() final;
1326 1325
1327 void clearXMLVersion() { m_xmlVersion = String(); } 1326 void clearXMLVersion() { m_xmlVersion = String(); }
1328 1327
1329 virtual Document* cloneDocumentWithoutChildren(); 1328 virtual Document* cloneDocumentWithoutChildren();
1330 1329
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>; 1422 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>;
1424 static EventFactorySet& eventFactories(); 1423 static EventFactorySet& eventFactories();
1425 1424
1426 void setNthIndexCache(NthIndexCache* nthIndexCache) { 1425 void setNthIndexCache(NthIndexCache* nthIndexCache) {
1427 DCHECK(!m_nthIndexCache || !nthIndexCache); 1426 DCHECK(!m_nthIndexCache || !nthIndexCache);
1428 m_nthIndexCache = nthIndexCache; 1427 m_nthIndexCache = nthIndexCache;
1429 } 1428 }
1430 1429
1431 const OriginAccessEntry& accessEntryFromURL(); 1430 const OriginAccessEntry& accessEntryFromURL();
1432 1431
1432 void sendSensitiveInputVisibility();
1433 void sendSensitiveInputVisibilityInternal();
1434
1433 DocumentLifecycle m_lifecycle; 1435 DocumentLifecycle m_lifecycle;
1434 1436
1435 bool m_hasNodesWithPlaceholderStyle; 1437 bool m_hasNodesWithPlaceholderStyle;
1436 bool m_evaluateMediaQueriesOnStyleRecalc; 1438 bool m_evaluateMediaQueriesOnStyleRecalc;
1437 1439
1438 // If we do ignore the pending stylesheet count, then we need to add a boolean 1440 // If we do ignore the pending stylesheet count, then we need to add a boolean
1439 // to track that this happened so that we can do a full repaint when the 1441 // to track that this happened so that we can do a full repaint when the
1440 // stylesheets do eventually load. 1442 // stylesheets do eventually load.
1441 PendingSheetLayout m_pendingSheetLayout; 1443 PendingSheetLayout m_pendingSheetLayout;
1442 1444
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 1665
1664 bool m_mayContainV0Shadow = false; 1666 bool m_mayContainV0Shadow = false;
1665 1667
1666 Member<SnapCoordinator> m_snapCoordinator; 1668 Member<SnapCoordinator> m_snapCoordinator;
1667 1669
1668 WouldLoadReason m_wouldLoadReason; 1670 WouldLoadReason m_wouldLoadReason;
1669 1671
1670 Member<PropertyRegistry> m_propertyRegistry; 1672 Member<PropertyRegistry> m_propertyRegistry;
1671 1673
1672 unsigned m_passwordCount; 1674 unsigned m_passwordCount;
1675
1676 TaskHandle m_sensitiveInputVisibilityTask;
1673 }; 1677 };
1674 1678
1675 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1679 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1676 1680
1677 inline bool Document::shouldOverrideLegacyDescription( 1681 inline bool Document::shouldOverrideLegacyDescription(
1678 ViewportDescription::Type origin) const { 1682 ViewportDescription::Type origin) const {
1679 // The different (legacy) meta tags have different priorities based on the 1683 // The different (legacy) meta tags have different priorities based on the
1680 // type regardless of which order they appear in the DOM. The priority is 1684 // type regardless of which order they appear in the DOM. The priority is
1681 // given by the ViewportDescription::Type enum. 1685 // given by the ViewportDescription::Type enum.
1682 return origin >= m_legacyViewportDescription.type; 1686 return origin >= m_legacyViewportDescription.type;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1718 1722
1719 } // namespace blink 1723 } // namespace blink
1720 1724
1721 #ifndef NDEBUG 1725 #ifndef NDEBUG
1722 // Outside the WebCore namespace for ease of invocation from gdb. 1726 // Outside the WebCore namespace for ease of invocation from gdb.
1723 CORE_EXPORT void showLiveDocumentInstances(); 1727 CORE_EXPORT void showLiveDocumentInstances();
1724 #endif 1728 #endif
1725 1729
1726 #endif // Document_h 1730 #endif // Document_h
OLDNEW
« no previous file with comments | « chrome/browser/ssl/security_state_tab_helper_browser_tests.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