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

Side by Side Diff: Source/core/inspector/InspectorBaseAgent.cpp

Issue 327203002: Revert of DevTools: notify backend agents about profiler started/stopped events (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 m_state = inspectorState; 51 m_state = inspectorState;
52 init(); 52 init();
53 } 53 }
54 54
55 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState) 55 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState)
56 : m_instrumentingAgents(instrumentingAgents) 56 : m_instrumentingAgents(instrumentingAgents)
57 , m_inspectorState(inspectorState) 57 , m_inspectorState(inspectorState)
58 { 58 {
59 } 59 }
60 60
61 void InspectorAgentRegistry::profilerStarted()
62 {
63 for (size_t i = 0; i < m_agents.size(); i++)
64 m_agents[i]->profilerStarted();
65 }
66
67 void InspectorAgentRegistry::profilerStopped()
68 {
69 for (size_t i = 0; i < m_agents.size(); i++)
70 m_agents[i]->profilerStopped();
71 }
72
73 void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent) 61 void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent)
74 { 62 {
75 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag ent->name())); 63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag ent->name()));
76 m_agents.append(agent); 64 m_agents.append(agent);
77 } 65 }
78 66
79 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) 67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend)
80 { 68 {
81 for (size_t i = 0; i < m_agents.size(); i++) 69 for (size_t i = 0; i < m_agents.size(); i++)
82 m_agents[i]->setFrontend(frontend); 70 m_agents[i]->setFrontend(frontend);
(...skipping 24 matching lines...) Expand all
107 } 95 }
108 96
109 void InspectorAgentRegistry::flushPendingFrontendMessages() 97 void InspectorAgentRegistry::flushPendingFrontendMessages()
110 { 98 {
111 for (size_t i = 0; i < m_agents.size(); i++) 99 for (size_t i = 0; i < m_agents.size(); i++)
112 m_agents[i]->flushPendingFrontendMessages(); 100 m_agents[i]->flushPendingFrontendMessages();
113 } 101 }
114 102
115 } // namespace WebCore 103 } // namespace WebCore
116 104
OLDNEW
« 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