OLD | NEW |
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 Loading... |
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 |
61 void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent) | 73 void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent) |
62 { | 74 { |
63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag
ent->name())); | 75 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag
ent->name())); |
64 m_agents.append(agent); | 76 m_agents.append(agent); |
65 } | 77 } |
66 | 78 |
67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) | 79 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) |
68 { | 80 { |
69 for (size_t i = 0; i < m_agents.size(); i++) | 81 for (size_t i = 0; i < m_agents.size(); i++) |
70 m_agents[i]->setFrontend(frontend); | 82 m_agents[i]->setFrontend(frontend); |
(...skipping 24 matching lines...) Expand all Loading... |
95 } | 107 } |
96 | 108 |
97 void InspectorAgentRegistry::flushPendingFrontendMessages() | 109 void InspectorAgentRegistry::flushPendingFrontendMessages() |
98 { | 110 { |
99 for (size_t i = 0; i < m_agents.size(); i++) | 111 for (size_t i = 0; i < m_agents.size(); i++) |
100 m_agents[i]->flushPendingFrontendMessages(); | 112 m_agents[i]->flushPendingFrontendMessages(); |
101 } | 113 } |
102 | 114 |
103 } // namespace WebCore | 115 } // namespace WebCore |
104 | 116 |
OLD | NEW |