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

Unified Diff: Source/core/editing/UndoStack.h

Issue 333313002: Oilpan: move a page's UndoStack to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove redundant semicolon Created 6 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 | « no previous file | Source/core/editing/UndoStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/UndoStack.h
diff --git a/Source/core/editing/UndoStack.h b/Source/core/editing/UndoStack.h
index 588e98c32eb3fb6eb2b6e8fd8aa189be70951348..212e98af8e6649783a2e17e3cbc31e9135670994 100644
--- a/Source/core/editing/UndoStack.h
+++ b/Source/core/editing/UndoStack.h
@@ -40,11 +40,10 @@ namespace WebCore {
class LocalFrame;
class UndoStep;
-class UndoStack {
+class UndoStack FINAL : public NoBaseWillBeGarbageCollected<UndoStack> {
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(UndoStack)
public:
- static PassOwnPtr<UndoStack> create();
-
- ~UndoStack();
+ static PassOwnPtrWillBeRawPtr<UndoStack> create();
void registerUndoStep(PassRefPtrWillBeRawPtr<UndoStep>);
void registerRedoStep(PassRefPtrWillBeRawPtr<UndoStep>);
@@ -54,17 +53,18 @@ public:
void undo();
void redo();
+ void trace(Visitor*);
+
private:
UndoStack();
typedef WillBeHeapDeque<RefPtrWillBeMember<UndoStep> > UndoStepStack;
- typedef WillBePersistentHeapDeque<RefPtrWillBeMember<UndoStep> > WillBePersistentUndoStepStack;
- void filterOutUndoSteps(WillBePersistentUndoStepStack&, const LocalFrame&);
+ void filterOutUndoSteps(UndoStepStack&, const LocalFrame&);
bool m_inRedo;
- WillBePersistentUndoStepStack m_undoStack;
- WillBePersistentUndoStepStack m_redoStack;
+ UndoStepStack m_undoStack;
+ UndoStepStack m_redoStack;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/editing/UndoStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698