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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/inspector/InspectorBaseAgent.h
diff --git a/Source/core/inspector/InspectorBaseAgent.h b/Source/core/inspector/InspectorBaseAgent.h
index eae8210979a35633618be2aa14522043f1123730..b77957da175996a6f8f4e5f251e3f77fc10473b8 100644
--- a/Source/core/inspector/InspectorBaseAgent.h
+++ b/Source/core/inspector/InspectorBaseAgent.h
@@ -32,6 +32,8 @@
#define InspectorBaseAgent_h
#include "InspectorBackendDispatcher.h"
+#include "core/inspector/InstrumentingAgents.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -43,10 +45,11 @@ class InspectorCompositeState;
class InspectorState;
class InstrumentingAgents;
-class InspectorAgent {
+class InspectorAgent : public NoBaseWillBeGarbageCollectedFinalized<InspectorAgent> {
public:
explicit InspectorAgent(const String&);
virtual ~InspectorAgent();
+ virtual void trace(Visitor*);
haraken 2014/06/12 05:53:00 Add OVERRIDE.
keishi 2014/06/13 03:37:33 This is the base class.
virtual void init() { }
virtual void setFrontend(InspectorFrontend*) { }
@@ -61,17 +64,17 @@ public:
void appended(InstrumentingAgents*, InspectorState*);
protected:
- InstrumentingAgents* m_instrumentingAgents;
+ RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
InspectorState* m_state;
haraken 2014/06/12 05:53:00 This raw pointer looks safe because InspectorCompo
keishi 2014/06/13 03:37:33 Done.
private:
String m_name;
};
-class InspectorAgentRegistry {
+class InspectorAgentRegistry : public NoBaseWillBeGarbageCollectedFinalized<InspectorAgentRegistry> {
haraken 2014/06/12 05:53:00 Add FINAL.
keishi 2014/06/13 03:37:32 Done.
public:
InspectorAgentRegistry(InstrumentingAgents*, InspectorCompositeState*);
- void append(PassOwnPtr<InspectorAgent>);
+ void append(PassOwnPtrWillBeRawPtr<InspectorAgent>);
void setFrontend(InspectorFrontend*);
void clearFrontend();
@@ -80,10 +83,12 @@ public:
void discardAgents();
void flushPendingFrontendMessages();
+ void trace(Visitor*);
+
private:
- InstrumentingAgents* m_instrumentingAgents;
+ RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
InspectorCompositeState* m_inspectorState;
keishi 2014/06/11 14:10:53 SAFE: InspectorAgentRegistry and InspectorComposit
haraken 2014/06/12 05:53:00 I agree that this is safe, but it would be better
keishi 2014/06/13 03:37:33 Done.
- Vector<OwnPtr<InspectorAgent> > m_agents;
+ WillBeHeapVector<OwnPtrWillBeMember<InspectorAgent> > m_agents;
};
template<typename T>

Powered by Google App Engine
This is Rietveld 408576698