Chromium Code Reviews

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

Issue 323043002: Oilpan: Prepare moving InspectorAgent related classes to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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 73 matching lines...)
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 agents().append(WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_ debugServer.get(), workerGlobalScope)); 100 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 64 matching lines...)
169 void WorkerInspectorController::dispose() 169 void WorkerInspectorController::dispose()
170 { 170 {
171 m_workerDebuggerAgent = nullptr; 171 m_workerDebuggerAgent = nullptr;
172 m_instrumentingAgents->reset(); 172 m_instrumentingAgents->reset();
173 disconnectFrontend(); 173 disconnectFrontend();
174 } 174 }
175 175
176 void WorkerInspectorController::trace(Visitor* visitor) 176 void WorkerInspectorController::trace(Visitor* visitor)
177 { 177 {
178 visitor->trace(m_workerGlobalScope); 178 visitor->trace(m_workerGlobalScope);
179 visitor->trace(m_state);
179 visitor->trace(m_instrumentingAgents); 180 visitor->trace(m_instrumentingAgents);
181 visitor->trace(m_injectedScriptManager);
180 m_agents.trace(visitor); 182 m_agents.trace(visitor);
181 visitor->trace(m_workerDebuggerAgent); 183 visitor->trace(m_workerDebuggerAgent);
182 } 184 }
183 185
184 } 186 }
OLDNEW

Powered by Google App Engine