| 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::append(PassOwnPtr<InspectorAgent> agent) | 61 void InspectorAgentRegistry::append(PassOwnPtrWillBeRawPtr<InspectorAgent> agent
) |
| 62 { | 62 { |
| 63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag
ent->name())); | 63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag
ent->name())); |
| 64 m_agents.append(agent); | 64 m_agents.append(agent); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) | 67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) |
| 68 { | 68 { |
| 69 for (size_t i = 0; i < m_agents.size(); i++) | 69 for (size_t i = 0; i < m_agents.size(); i++) |
| 70 m_agents[i]->setFrontend(frontend); | 70 m_agents[i]->setFrontend(frontend); |
| 71 } | 71 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 93 for (size_t i = 0; i < m_agents.size(); i++) | 93 for (size_t i = 0; i < m_agents.size(); i++) |
| 94 m_agents[i]->discardAgent(); | 94 m_agents[i]->discardAgent(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void InspectorAgentRegistry::flushPendingFrontendMessages() | 97 void InspectorAgentRegistry::flushPendingFrontendMessages() |
| 98 { | 98 { |
| 99 for (size_t i = 0; i < m_agents.size(); i++) | 99 for (size_t i = 0; i < m_agents.size(); i++) |
| 100 m_agents[i]->flushPendingFrontendMessages(); | 100 m_agents[i]->flushPendingFrontendMessages(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void InspectorAgentRegistry::trace(Visitor* visitor) |
| 104 { |
| 105 #if ENABLE(OILPAN) |
| 106 visitor->trace(m_agents); |
| 107 #endif |
| 108 } |
| 109 |
| 103 } // namespace WebCore | 110 } // namespace WebCore |
| 104 | 111 |
| OLD | NEW |