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

Unified Diff: Source/core/inspector/InspectorHistory.h

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/inspector/InspectorHeapProfilerAgent.cpp ('k') | Source/core/inspector/InspectorHistory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorHistory.h
diff --git a/Source/core/inspector/InspectorHistory.h b/Source/core/inspector/InspectorHistory.h
index d0e70c78079dec4d4768215a1b8ba33c4736c92b..1b8961c21c47c498387ae84dc6afbb8af1a3005d 100644
--- a/Source/core/inspector/InspectorHistory.h
+++ b/Source/core/inspector/InspectorHistory.h
@@ -31,6 +31,7 @@
#ifndef InspectorHistory_h
#define InspectorHistory_h
+#include "platform/heap/Handle.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -39,18 +40,20 @@ namespace WebCore {
class ExceptionState;
-class InspectorHistory FINAL {
- WTF_MAKE_NONCOPYABLE(InspectorHistory); WTF_MAKE_FAST_ALLOCATED;
+class InspectorHistory FINAL : public NoBaseWillBeGarbageCollected<InspectorHistory> {
+ WTF_MAKE_NONCOPYABLE(InspectorHistory);
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- class Action : public RefCounted<Action> {
- WTF_MAKE_FAST_ALLOCATED;
+ class Action : public RefCountedWillBeGarbageCollectedFinalized<Action> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- Action(const String& name);
+ explicit Action(const String& name);
virtual ~Action();
+ virtual void trace(Visitor*);
virtual String toString();
virtual String mergeId();
- virtual void merge(PassRefPtr<Action>);
+ virtual void merge(PassRefPtrWillBeRawPtr<Action>);
virtual bool perform(ExceptionState&) = 0;
@@ -63,8 +66,9 @@ public:
};
InspectorHistory();
+ void trace(Visitor*);
- bool perform(PassRefPtr<Action>, ExceptionState&);
+ bool perform(PassRefPtrWillBeRawPtr<Action>, ExceptionState&);
void markUndoableState();
bool undo(ExceptionState&);
@@ -72,7 +76,7 @@ public:
void reset();
private:
- Vector<RefPtr<Action> > m_history;
+ WillBeHeapVector<RefPtrWillBeMember<Action> > m_history;
size_t m_afterLastActionIndex;
};
« no previous file with comments | « Source/core/inspector/InspectorHeapProfilerAgent.cpp ('k') | Source/core/inspector/InspectorHistory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698