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

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

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 6 years, 8 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 : m_workerGlobalScope(workerGlobalScope) 91 : m_workerGlobalScope(workerGlobalScope)
92 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope))) 92 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope)))
93 , m_state(adoptPtr(new InspectorCompositeState(m_stateClient.get()))) 93 , m_state(adoptPtr(new InspectorCompositeState(m_stateClient.get())))
94 , m_instrumentingAgents(InstrumentingAgents::create()) 94 , m_instrumentingAgents(InstrumentingAgents::create())
95 , m_injectedScriptManager(InjectedScriptManager::createForWorker()) 95 , m_injectedScriptManager(InjectedScriptManager::createForWorker())
96 , m_debugServer(adoptPtr(new WorkerScriptDebugServer(workerGlobalScope))) 96 , m_debugServer(adoptPtr(new WorkerScriptDebugServer(workerGlobalScope)))
97 , m_agents(m_instrumentingAgents.get(), m_state.get()) 97 , m_agents(m_instrumentingAgents.get(), m_state.get())
98 { 98 {
99 m_agents.append(WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_ debugServer.get(), workerGlobalScope)); 99 m_agents.append(WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_ debugServer.get(), workerGlobalScope));
100 100
101 OwnPtr<InspectorTimelineAgent> timelineAgent = InspectorTimelineAgent::creat e(0, 0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0); 101 OwnPtr<InspectorTimelineAgent> timelineAgent = InspectorTimelineAgent::creat e(0, 0, 0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0);
102 m_agents.append(WorkerDebuggerAgent::create(m_debugServer.get(), workerGloba lScope, m_injectedScriptManager.get())); 102 m_agents.append(WorkerDebuggerAgent::create(m_debugServer.get(), workerGloba lScope, m_injectedScriptManager.get()));
103 103
104 m_agents.append(InspectorProfilerAgent::create(m_injectedScriptManager.get() , 0)); 104 m_agents.append(InspectorProfilerAgent::create(m_injectedScriptManager.get() , 0));
105 m_agents.append(InspectorHeapProfilerAgent::create(m_injectedScriptManager.g et())); 105 m_agents.append(InspectorHeapProfilerAgent::create(m_injectedScriptManager.g et()));
106 m_agents.append(WorkerConsoleAgent::create(timelineAgent.get(), m_injectedSc riptManager.get())); 106 m_agents.append(WorkerConsoleAgent::create(timelineAgent.get(), m_injectedSc riptManager.get()));
107 m_agents.append(timelineAgent.release()); 107 m_agents.append(timelineAgent.release());
108 108
109 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge t(), m_debugServer.get()); 109 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge t(), m_debugServer.get());
110 } 110 }
111 111
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 void WorkerInspectorController::resume() 158 void WorkerInspectorController::resume()
159 { 159 {
160 if (WorkerRuntimeAgent* runtimeAgent = m_instrumentingAgents->workerRuntimeA gent()) { 160 if (WorkerRuntimeAgent* runtimeAgent = m_instrumentingAgents->workerRuntimeA gent()) {
161 ErrorString unused; 161 ErrorString unused;
162 runtimeAgent->run(&unused); 162 runtimeAgent->run(&unused);
163 } 163 }
164 } 164 }
165 165
166 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698