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

Unified Diff: Source/core/frame/LocalFrame.h

Issue 427673008: Move FrameDestructionObserver into LocalFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/frame/Frame.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.h
diff --git a/Source/core/frame/LocalFrame.h b/Source/core/frame/LocalFrame.h
index d7b207c156e4b2c7617a4796b014563b9bd69d47..6a3e0d0471d93cd0af097ab388a79e57ceba02c9 100644
--- a/Source/core/frame/LocalFrame.h
+++ b/Source/core/frame/LocalFrame.h
@@ -35,6 +35,7 @@
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollTypes.h"
+#include "wtf/HashSet.h"
namespace blink {
@@ -47,6 +48,7 @@ namespace blink {
class FloatSize;
class FloatRect;
class FrameConsole;
+ class FrameDestructionObserver;
class FrameSelection;
class FrameView;
class InputMethodController;
@@ -75,8 +77,11 @@ namespace blink {
virtual ~LocalFrame();
- virtual void willDetachFrameHost() OVERRIDE;
- virtual void detachFromFrameHost() OVERRIDE;
+ void addDestructionObserver(FrameDestructionObserver*);
+ void removeDestructionObserver(FrameDestructionObserver*);
+
+ void willDetachFrameHost();
+ void detachFromFrameHost();
virtual void disconnectOwnerElement() OVERRIDE;
@@ -150,6 +155,7 @@ namespace blink {
String localLayerTreeAsText(unsigned flags) const;
+ HashSet<FrameDestructionObserver*> m_destructionObservers;
mutable FrameLoader m_loader;
mutable NavigationScheduler m_navigationScheduler;
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698