| Index: Source/core/inspector/InspectorBaseAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorBaseAgent.cpp b/Source/core/inspector/InspectorBaseAgent.cpp
|
| index e1b4e8abba2be36bf385cb664eba49da646358b2..ee65b9669336dd1a3598f73d4f6ba4e67c58a965 100644
|
| --- a/Source/core/inspector/InspectorBaseAgent.cpp
|
| +++ b/Source/core/inspector/InspectorBaseAgent.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "core/inspector/InspectorBaseAgent.h"
|
|
|
| #include "core/inspector/InspectorState.h"
|
| +#include "core/inspector/InstrumentingAgents.h"
|
| #include "wtf/PassOwnPtr.h"
|
|
|
| namespace WebCore {
|
| @@ -45,6 +46,11 @@ InspectorAgent::~InspectorAgent()
|
| {
|
| }
|
|
|
| +void InspectorAgent::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_instrumentingAgents);
|
| +}
|
| +
|
| void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, InspectorState* inspectorState)
|
| {
|
| m_instrumentingAgents = instrumentingAgents;
|
| @@ -58,10 +64,10 @@ 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);
|
| + m_agents.append(agent.get());
|
| }
|
|
|
| void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend)
|
| @@ -100,5 +106,11 @@ void InspectorAgentRegistry::flushPendingFrontendMessages()
|
| m_agents[i]->flushPendingFrontendMessages();
|
| }
|
|
|
| +void InspectorAgentRegistry::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_agents);
|
| + visitor->trace(m_instrumentingAgents);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
|
|