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

Unified Diff: Source/core/page/Page.h

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index f74630236d080931219cee940960c534e1482841..58196f59ae8581bd24cc3ffc856e98e9e191e7ee 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -31,6 +31,7 @@
#include "platform/Supplementable.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/geometry/Region.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/HashSet.h"
#include "wtf/Noncopyable.h"
@@ -206,7 +207,7 @@ public:
double timerAlignmentInterval() const;
- class MultisamplingChangedObserver {
+ class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin {
public:
virtual void multisamplingChanged(bool) = 0;
};
@@ -220,7 +221,7 @@ public:
PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier();
virtual void trace(Visitor*);
-
+ void clearWeakMembers(Visitor*);
void willBeDestroyed();
protected:
@@ -289,7 +290,7 @@ private:
bool m_isPainting;
#endif
- HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
+ WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_multisamplingChangedObservers;
// A pointer to all the interfaces provided to in-process Frames for this Page.
// FIXME: Most of the members of Page should move onto FrameHost.

Powered by Google App Engine
This is Rietveld 408576698