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

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

Issue 327203002: Revert of DevTools: notify backend agents about profiler started/stopped events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(adoptPtr(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 OwnPtr<InspectorTimelineAgent> timelineAgent = InspectorTimelineAgent::creat e(0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0, &m_agents); 102 OwnPtr<InspectorTimelineAgent> timelineAgent = InspectorTimelineAgent::creat e(0, 0, 0, InspectorTimelineAgent::WorkerInspector, 0);
103 m_agents.append(WorkerDebuggerAgent::create(m_debugServer.get(), workerGloba lScope, m_injectedScriptManager.get())); 103 m_agents.append(WorkerDebuggerAgent::create(m_debugServer.get(), workerGloba lScope, m_injectedScriptManager.get()));
104 104
105 m_agents.append(InspectorProfilerAgent::create(m_injectedScriptManager.get() , 0, &m_agents)); 105 m_agents.append(InspectorProfilerAgent::create(m_injectedScriptManager.get() , 0));
106 m_agents.append(InspectorHeapProfilerAgent::create(m_injectedScriptManager.g et())); 106 m_agents.append(InspectorHeapProfilerAgent::create(m_injectedScriptManager.g et()));
107 m_agents.append(WorkerConsoleAgent::create(timelineAgent.get(), m_injectedSc riptManager.get())); 107 m_agents.append(WorkerConsoleAgent::create(timelineAgent.get(), m_injectedSc riptManager.get()));
108 m_agents.append(timelineAgent.release()); 108 m_agents.append(timelineAgent.release());
109 109
110 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge t(), m_debugServer.get()); 110 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge t(), m_debugServer.get());
111 } 111 }
112 112
113 WorkerInspectorController::~WorkerInspectorController() 113 WorkerInspectorController::~WorkerInspectorController()
114 { 114 {
115 m_instrumentingAgents->reset(); 115 m_instrumentingAgents->reset();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 void WorkerInspectorController::resume() 161 void WorkerInspectorController::resume()
162 { 162 {
163 if (WorkerRuntimeAgent* runtimeAgent = m_instrumentingAgents->workerRuntimeA gent()) { 163 if (WorkerRuntimeAgent* runtimeAgent = m_instrumentingAgents->workerRuntimeA gent()) {
164 ErrorString unused; 164 ErrorString unused;
165 runtimeAgent->run(&unused); 165 runtimeAgent->run(&unused);
166 } 166 }
167 } 167 }
168 168
169 } 169 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698