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

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

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.cpp
diff --git a/Source/core/inspector/InspectorBaseAgent.cpp b/Source/core/inspector/InspectorBaseAgent.cpp
index e1b4e8abba2be36bf385cb664eba49da646358b2..24f485886687d2b3e67cf50203ee5c4097c590e9 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,5 +105,13 @@ void InspectorAgentRegistry::flushPendingFrontendMessages()
m_agents[i]->flushPendingFrontendMessages();
}
+void InspectorAgentRegistry::trace(Visitor* visitor)
+{
+ visitor->trace(m_instrumentingAgents);
+#if ENABLE(OILPAN)
+ visitor->trace(m_agents);
+#endif
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698