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

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

Issue 2371663002: Introduce an injection point to configure the internal pointer of WeakPtr
Patch Set: fix Created 4 years, 2 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IntersectionObserverController_h 5 #ifndef IntersectionObserverController_h
6 #define IntersectionObserverController_h 6 #define IntersectionObserverController_h
7 7
8 #include "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/dom/IntersectionObserver.h" 9 #include "core/dom/IntersectionObserver.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 24 matching lines...) Expand all
35 DECLARE_TRACE(); 35 DECLARE_TRACE();
36 36
37 private: 37 private:
38 explicit IntersectionObserverController(Document*); 38 explicit IntersectionObserverController(Document*);
39 39
40 private: 40 private:
41 // IntersectionObservers for which this is the tracking document. 41 // IntersectionObservers for which this is the tracking document.
42 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers ; 42 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers ;
43 // IntersectionObservers for which this is the execution context of the call back. 43 // IntersectionObservers for which this is the execution context of the call back.
44 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; 44 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers;
45 WTF::WeakPtrFactory<IntersectionObserverController> m_weakPtrFactory; 45 RevocableWeakMemberFactory<IntersectionObserverController> m_weakPtrFactory;
46 46
47 bool m_callbackFiredWhileSuspended; 47 bool m_callbackFiredWhileSuspended;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // IntersectionObserverController_h 52 #endif // IntersectionObserverController_h
OLDNEW
« no previous file with comments | « base/memory/weak_ptr_unittest.nc ('k') | third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698