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

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

Issue 104433004: Enable VM service inside Dartium Renderer processes (Closed) Base URL: svn://svn.chromium.org/multivm/branches/1650/blink
Patch Set: Created 7 years 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 28 matching lines...) Expand all
39 #include "core/inspector/InjectedScriptManager.h" 39 #include "core/inspector/InjectedScriptManager.h"
40 #include "core/inspector/InspectorAgent.h" 40 #include "core/inspector/InspectorAgent.h"
41 #include "core/inspector/InspectorApplicationCacheAgent.h" 41 #include "core/inspector/InspectorApplicationCacheAgent.h"
42 #include "core/inspector/InspectorBaseAgent.h" 42 #include "core/inspector/InspectorBaseAgent.h"
43 #include "core/inspector/InspectorCSSAgent.h" 43 #include "core/inspector/InspectorCSSAgent.h"
44 #include "core/inspector/InspectorCanvasAgent.h" 44 #include "core/inspector/InspectorCanvasAgent.h"
45 #include "core/inspector/InspectorClient.h" 45 #include "core/inspector/InspectorClient.h"
46 #include "core/inspector/InspectorDOMAgent.h" 46 #include "core/inspector/InspectorDOMAgent.h"
47 #include "core/inspector/InspectorDOMDebuggerAgent.h" 47 #include "core/inspector/InspectorDOMDebuggerAgent.h"
48 #include "core/inspector/InspectorDOMStorageAgent.h" 48 #include "core/inspector/InspectorDOMStorageAgent.h"
49 #include "core/inspector/InspectorDartAgent.h"
49 #include "core/inspector/InspectorDatabaseAgent.h" 50 #include "core/inspector/InspectorDatabaseAgent.h"
50 #include "core/inspector/InspectorDebuggerAgent.h" 51 #include "core/inspector/InspectorDebuggerAgent.h"
51 #include "core/inspector/InspectorFileSystemAgent.h" 52 #include "core/inspector/InspectorFileSystemAgent.h"
52 #include "core/inspector/InspectorFrontendClient.h" 53 #include "core/inspector/InspectorFrontendClient.h"
53 #include "core/inspector/InspectorHeapProfilerAgent.h" 54 #include "core/inspector/InspectorHeapProfilerAgent.h"
54 #include "core/inspector/InspectorIndexedDBAgent.h" 55 #include "core/inspector/InspectorIndexedDBAgent.h"
55 #include "core/inspector/InspectorInputAgent.h" 56 #include "core/inspector/InspectorInputAgent.h"
56 #include "core/inspector/InspectorInstrumentation.h" 57 #include "core/inspector/InspectorInstrumentation.h"
57 #include "core/inspector/InspectorLayerTreeAgent.h" 58 #include "core/inspector/InspectorLayerTreeAgent.h"
58 #include "core/inspector/InspectorMemoryAgent.h" 59 #include "core/inspector/InspectorMemoryAgent.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 m_agents.append(InspectorCSSAgent::create(m_instrumentingAgents.get(), m_sta te.get(), domAgent, pageAgent, resourceAgent)); 99 m_agents.append(InspectorCSSAgent::create(m_instrumentingAgents.get(), m_sta te.get(), domAgent, pageAgent, resourceAgent));
99 100
100 m_agents.append(InspectorDatabaseAgent::create(m_instrumentingAgents.get(), m_state.get())); 101 m_agents.append(InspectorDatabaseAgent::create(m_instrumentingAgents.get(), m_state.get()));
101 102
102 m_agents.append(InspectorIndexedDBAgent::create(m_instrumentingAgents.get(), m_state.get(), m_injectedScriptManager.get(), pageAgent)); 103 m_agents.append(InspectorIndexedDBAgent::create(m_instrumentingAgents.get(), m_state.get(), m_injectedScriptManager.get(), pageAgent));
103 104
104 m_agents.append(InspectorFileSystemAgent::create(m_instrumentingAgents.get() , pageAgent, m_state.get())); 105 m_agents.append(InspectorFileSystemAgent::create(m_instrumentingAgents.get() , pageAgent, m_state.get()));
105 106
106 m_agents.append(InspectorDOMStorageAgent::create(m_instrumentingAgents.get() , pageAgent, m_state.get())); 107 m_agents.append(InspectorDOMStorageAgent::create(m_instrumentingAgents.get() , pageAgent, m_state.get()));
107 108
109 OwnPtr<InspectorDartAgent> dartAgentPtr(InspectorDartAgent::create(m_instrum entingAgents.get(), pageAgent, m_state.get()));
110 m_dartAgent = dartAgentPtr.get();
111 m_agents.append(dartAgentPtr.release());
112
108 OwnPtr<InspectorMemoryAgent> memoryAgentPtr(InspectorMemoryAgent::create(m_i nstrumentingAgents.get(), m_state.get())); 113 OwnPtr<InspectorMemoryAgent> memoryAgentPtr(InspectorMemoryAgent::create(m_i nstrumentingAgents.get(), m_state.get()));
109 m_memoryAgent = memoryAgentPtr.get(); 114 m_memoryAgent = memoryAgentPtr.get();
110 m_agents.append(memoryAgentPtr.release()); 115 m_agents.append(memoryAgentPtr.release());
111 116
117
112 OwnPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelineAgent::crea te(m_instrumentingAgents.get(), pageAgent, m_memoryAgent, domAgent, m_state.get( ), 118 OwnPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelineAgent::crea te(m_instrumentingAgents.get(), pageAgent, m_memoryAgent, domAgent, m_state.get( ),
113 InspectorTimelineAgent::PageInspector, inspectorClient)); 119 InspectorTimelineAgent::PageInspector, inspectorClient));
114 m_timelineAgent = timelineAgentPtr.get(); 120 m_timelineAgent = timelineAgentPtr.get();
115 m_agents.append(timelineAgentPtr.release()); 121 m_agents.append(timelineAgentPtr.release());
116 122
117 m_agents.append(InspectorApplicationCacheAgent::create(m_instrumentingAgents .get(), m_state.get(), pageAgent)); 123 m_agents.append(InspectorApplicationCacheAgent::create(m_instrumentingAgents .get(), m_state.get(), pageAgent));
118 124
119 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share d(); 125 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share d();
120 126
121 m_agents.append(PageRuntimeAgent::create(m_instrumentingAgents.get(), m_stat e.get(), m_injectedScriptManager.get(), pageScriptDebugServer, page, pageAgent)) ; 127 m_agents.append(PageRuntimeAgent::create(m_instrumentingAgents.get(), m_stat e.get(), m_injectedScriptManager.get(), pageScriptDebugServer, page, pageAgent)) ;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 timelineAgent->willComposite(); 418 timelineAgent->willComposite();
413 } 419 }
414 420
415 void InspectorController::didComposite() 421 void InspectorController::didComposite()
416 { 422 {
417 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent()) 423 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent())
418 timelineAgent->didComposite(); 424 timelineAgent->didComposite();
419 } 425 }
420 426
421 } // namespace WebCore 427 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698