| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 WorkerGlobalScope* m_workerGlobalScope; | 86 WorkerGlobalScope* m_workerGlobalScope; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } | 89 } |
| 90 | 90 |
| 91 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl
obalScope) | 91 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl
obalScope) |
| 92 : m_workerGlobalScope(workerGlobalScope) | 92 : m_workerGlobalScope(workerGlobalScope) |
| 93 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope))) | 93 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope))) |
| 94 , m_state(adoptPtr(new InspectorCompositeState(m_stateClient.get()))) | 94 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(m_stateClient.get()
))) |
| 95 , m_instrumentingAgents(InstrumentingAgents::create()) | 95 , m_instrumentingAgents(InstrumentingAgents::create()) |
| 96 , m_injectedScriptManager(InjectedScriptManager::createForWorker()) | 96 , m_injectedScriptManager(InjectedScriptManager::createForWorker()) |
| 97 , m_debugServer(adoptPtr(new WorkerScriptDebugServer(workerGlobalScope))) | 97 , m_debugServer(adoptPtr(new WorkerScriptDebugServer(workerGlobalScope))) |
| 98 , m_agents(m_instrumentingAgents.get(), m_state.get()) | 98 , m_agents(m_instrumentingAgents.get(), m_state.get()) |
| 99 { | 99 { |
| 100 m_agents.append(WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_
debugServer.get(), workerGlobalScope)); | 100 m_agents.append(WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_
debugServer.get(), workerGlobalScope)); |
| 101 | 101 |
| 102 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgent = InspectorTimeline
Agent::create(0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0); | 102 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgent = InspectorTimeline
Agent::create(0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0); |
| 103 OwnPtrWillBeRawPtr<WorkerDebuggerAgent> workerDebuggerAgent = WorkerDebugger
Agent::create(m_debugServer.get(), workerGlobalScope, m_injectedScriptManager.ge
t()); | 103 OwnPtrWillBeRawPtr<WorkerDebuggerAgent> workerDebuggerAgent = WorkerDebugger
Agent::create(m_debugServer.get(), workerGlobalScope, m_injectedScriptManager.ge
t()); |
| 104 m_workerDebuggerAgent = workerDebuggerAgent.get(); | 104 m_workerDebuggerAgent = workerDebuggerAgent.get(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 173 } |
| 174 | 174 |
| 175 void WorkerInspectorController::interruptAndDispatchInspectorCommands() | 175 void WorkerInspectorController::interruptAndDispatchInspectorCommands() |
| 176 { | 176 { |
| 177 m_workerDebuggerAgent->interruptAndDispatchInspectorCommands(); | 177 m_workerDebuggerAgent->interruptAndDispatchInspectorCommands(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void WorkerInspectorController::trace(Visitor* visitor) | 180 void WorkerInspectorController::trace(Visitor* visitor) |
| 181 { | 181 { |
| 182 visitor->trace(m_workerGlobalScope); | 182 visitor->trace(m_workerGlobalScope); |
| 183 visitor->trace(m_state); |
| 183 visitor->trace(m_instrumentingAgents); | 184 visitor->trace(m_instrumentingAgents); |
| 185 visitor->trace(m_injectedScriptManager); |
| 184 m_agents.trace(visitor); | 186 m_agents.trace(visitor); |
| 185 visitor->trace(m_workerDebuggerAgent); | 187 visitor->trace(m_workerDebuggerAgent); |
| 186 } | 188 } |
| 187 | 189 |
| 188 } | 190 } |
| OLD | NEW |