Index: Source/core/inspector/InspectorBaseAgent.cpp |
diff --git a/Source/core/inspector/InspectorBaseAgent.cpp b/Source/core/inspector/InspectorBaseAgent.cpp |
index 7d23051b3c21b4eb669091bbe6da5c6068d03604..78a2c19c3d0c77642d598006561463825eae2e98 100644 |
--- a/Source/core/inspector/InspectorBaseAgent.cpp |
+++ b/Source/core/inspector/InspectorBaseAgent.cpp |
@@ -45,6 +45,11 @@ InspectorAgent::~InspectorAgent() |
{ |
} |
+void InspectorAgent::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_instrumentingAgents); |
+} |
+ |
void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, InspectorState* inspectorState) |
{ |
m_instrumentingAgents = instrumentingAgents; |
@@ -58,7 +63,7 @@ InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin |
{ |
} |
-void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent) |
+void InspectorAgentRegistry::append(PassOwnPtrWillBeRawPtr<InspectorAgent> agent) |
{ |
agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(agent->name())); |
m_agents.append(agent); |
@@ -100,6 +105,14 @@ void InspectorAgentRegistry::flushPendingFrontendMessages() |
m_agents[i]->flushPendingFrontendMessages(); |
} |
+void InspectorAgentRegistry::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_instrumentingAgents); |
+#if ENABLE(OILPAN) |
+ visitor->trace(m_agents); |
+#endif |
+} |
+ |
void InspectorAgentRegistry::didCommitLoadForMainFrame() |
{ |
for (size_t i = 0; i < m_agents.size(); i++) |