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

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

Issue 321173002: DevTools: notify backend agents about profiler started/stopped events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed 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
« no previous file with comments | « Source/core/inspector/InspectorBaseAgent.h ('k') | Source/core/inspector/InspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorBaseAgent.cpp
diff --git a/Source/core/inspector/InspectorBaseAgent.cpp b/Source/core/inspector/InspectorBaseAgent.cpp
index e1b4e8abba2be36bf385cb664eba49da646358b2..b90610196fa4a623d3bc9b6d8b864a314c3e150a 100644
--- a/Source/core/inspector/InspectorBaseAgent.cpp
+++ b/Source/core/inspector/InspectorBaseAgent.cpp
@@ -58,6 +58,18 @@ InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin
{
}
+void InspectorAgentRegistry::profilerStarted()
+{
+ for (size_t i = 0; i < m_agents.size(); i++)
+ m_agents[i]->profilerStarted();
+}
+
+void InspectorAgentRegistry::profilerStopped()
+{
+ for (size_t i = 0; i < m_agents.size(); i++)
+ m_agents[i]->profilerStopped();
+}
+
void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent)
{
agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(agent->name()));
« no previous file with comments | « Source/core/inspector/InspectorBaseAgent.h ('k') | Source/core/inspector/InspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698