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

Unified Diff: Source/modules/accessibility/AXObjectCacheImpl.h

Issue 1081673003: Oilpan: Prepare to move AXObjectCache to the heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXObjectCacheImpl.h
diff --git a/Source/modules/accessibility/AXObjectCacheImpl.h b/Source/modules/accessibility/AXObjectCacheImpl.h
index ef603ea83e52558309826cf886d0f619201ab68f..4ddc39ae9f07f72bddc1587fc5861bcfbff65d45 100644
--- a/Source/modules/accessibility/AXObjectCacheImpl.h
+++ b/Source/modules/accessibility/AXObjectCacheImpl.h
@@ -55,15 +55,18 @@ struct TextMarkerData {
// This class should only be used from inside the accessibility directory.
class MODULES_EXPORT AXObjectCacheImpl : public AXObjectCache {
- WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl); WTF_MAKE_FAST_ALLOCATED(AXObjectCacheImpl);
+ WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl);
public:
- static AXObjectCache* create(Document&);
+ static PassOwnPtrWillBeRawPtr<AXObjectCache> create(Document&);
explicit AXObjectCacheImpl(Document&);
~AXObjectCacheImpl();
+ DECLARE_VIRTUAL_TRACE();
AXObject* focusedUIElementForPage(const Page*);
+ virtual void dispose() override;
+
virtual void selectionChanged(Node*) override;
virtual void childrenChanged(Node*) override;
virtual void childrenChanged(LayoutObject*) override;
@@ -213,6 +216,11 @@ private:
HashSet<AXID> m_idsInUse;
+#if ENABLE(ASSERT)
+ // Verified when finalizing.
+ bool m_hasBeenDisposed;
+#endif
+
//
// Aria-owns
//
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698