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

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

Issue 24027002: DevTools: implement console.timeline/timelineEnd. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments addressed. Created 7 years, 3 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_timelineAgent = timelineAgentPtr.get(); 110 m_timelineAgent = timelineAgentPtr.get();
111 m_agents.append(timelineAgentPtr.release()); 111 m_agents.append(timelineAgentPtr.release());
112 112
113 m_agents.append(InspectorApplicationCacheAgent::create(m_instrumentingAgents .get(), m_state.get(), pageAgent)); 113 m_agents.append(InspectorApplicationCacheAgent::create(m_instrumentingAgents .get(), m_state.get(), pageAgent));
114 m_agents.append(InspectorResourceAgent::create(m_instrumentingAgents.get(), pageAgent, inspectorClient, m_state.get(), m_overlay.get())); 114 m_agents.append(InspectorResourceAgent::create(m_instrumentingAgents.get(), pageAgent, inspectorClient, m_state.get(), m_overlay.get()));
115 115
116 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share d(); 116 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share d();
117 117
118 m_agents.append(PageRuntimeAgent::create(m_instrumentingAgents.get(), m_stat e.get(), m_injectedScriptManager.get(), pageScriptDebugServer, page, pageAgent)) ; 118 m_agents.append(PageRuntimeAgent::create(m_instrumentingAgents.get(), m_stat e.get(), m_injectedScriptManager.get(), pageScriptDebugServer, page, pageAgent)) ;
119 119
120 OwnPtr<InspectorConsoleAgent> consoleAgentPtr(PageConsoleAgent::create(m_ins trumentingAgents.get(), m_state.get(), m_injectedScriptManager.get(), domAgent)) ; 120 OwnPtr<InspectorConsoleAgent> consoleAgentPtr(PageConsoleAgent::create(m_ins trumentingAgents.get(), m_state.get(), m_injectedScriptManager.get(), domAgent, m_timelineAgent));
121 InspectorConsoleAgent* consoleAgent = consoleAgentPtr.get(); 121 InspectorConsoleAgent* consoleAgent = consoleAgentPtr.get();
122 m_agents.append(consoleAgentPtr.release()); 122 m_agents.append(consoleAgentPtr.release());
123 123
124 OwnPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgent::create(m_ instrumentingAgents.get(), m_state.get(), pageScriptDebugServer, pageAgent, m_in jectedScriptManager.get(), m_overlay.get())); 124 OwnPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgent::create(m_ instrumentingAgents.get(), m_state.get(), pageScriptDebugServer, pageAgent, m_in jectedScriptManager.get(), m_overlay.get()));
125 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get(); 125 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get();
126 m_agents.append(debuggerAgentPtr.release()); 126 m_agents.append(debuggerAgentPtr.release());
127 127
128 m_agents.append(InspectorDOMDebuggerAgent::create(m_instrumentingAgents.get( ), m_state.get(), domAgent, debuggerAgent)); 128 m_agents.append(InspectorDOMDebuggerAgent::create(m_instrumentingAgents.get( ), m_state.get(), domAgent, debuggerAgent));
129 129
130 m_agents.append(InspectorProfilerAgent::create(m_instrumentingAgents.get(), consoleAgent, m_state.get(), m_injectedScriptManager.get())); 130 m_agents.append(InspectorProfilerAgent::create(m_instrumentingAgents.get(), consoleAgent, m_state.get(), m_injectedScriptManager.get()));
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 timelineAgent->willComposite(); 409 timelineAgent->willComposite();
410 } 410 }
411 411
412 void InspectorController::didComposite() 412 void InspectorController::didComposite()
413 { 413 {
414 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent()) 414 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent())
415 timelineAgent->didComposite(); 415 timelineAgent->didComposite();
416 } 416 }
417 417
418 } // namespace WebCore 418 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698