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

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

Issue 323043002: Oilpan: Prepare moving InspectorAgent related classes to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/InspectorState.h ('k') | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorState.cpp
diff --git a/Source/core/inspector/InspectorState.cpp b/Source/core/inspector/InspectorState.cpp
index 775999c04a55d9fdaa762c93e8cf81c77165710f..0b627b194f2b4b9c42c38fe18b498f16e9b090b2 100644
--- a/Source/core/inspector/InspectorState.cpp
+++ b/Source/core/inspector/InspectorState.cpp
@@ -121,13 +121,18 @@ PassRefPtr<JSONObject> InspectorState::getObject(const String& propertyName)
return it->value->asObject();
}
+void InspectorState::trace(Visitor* visitor)
+{
+ visitor->trace(m_listener);
+}
+
InspectorState* InspectorCompositeState::createAgentState(const String& agentName)
{
ASSERT(m_stateObject->find(agentName) == m_stateObject->end());
ASSERT(m_inspectorStateMap.find(agentName) == m_inspectorStateMap.end());
RefPtr<JSONObject> stateProperties = JSONObject::create();
m_stateObject->setObject(agentName, stateProperties);
- OwnPtr<InspectorState> statePtr = adoptPtr(new InspectorState(this, stateProperties));
+ OwnPtrWillBeRawPtr<InspectorState> statePtr = adoptPtrWillBeNoop(new InspectorState(this, stateProperties));
InspectorState* state = statePtr.get();
m_inspectorStateMap.add(agentName, statePtr.release());
return state;
@@ -168,5 +173,12 @@ void InspectorCompositeState::inspectorStateUpdated()
m_client->updateInspectorStateCookie(m_stateObject->toJSONString());
}
+void InspectorCompositeState::trace(Visitor* visitor)
+{
+#if ENABLE(OILPAN)
+ visitor->trace(m_inspectorStateMap);
+#endif
+}
+
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698