OLD | NEW |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/inspector/InspectorCanvasAgent.h" | 42 #include "core/inspector/InspectorCanvasAgent.h" |
43 #include "core/inspector/InspectorClient.h" | 43 #include "core/inspector/InspectorClient.h" |
44 #include "core/inspector/InspectorDOMAgent.h" | 44 #include "core/inspector/InspectorDOMAgent.h" |
45 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 45 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
46 #include "core/inspector/InspectorDOMStorageAgent.h" | 46 #include "core/inspector/InspectorDOMStorageAgent.h" |
47 #include "core/inspector/InspectorDatabaseAgent.h" | 47 #include "core/inspector/InspectorDatabaseAgent.h" |
48 #include "core/inspector/InspectorDebuggerAgent.h" | 48 #include "core/inspector/InspectorDebuggerAgent.h" |
49 #include "core/inspector/InspectorFileSystemAgent.h" | 49 #include "core/inspector/InspectorFileSystemAgent.h" |
50 #include "core/inspector/InspectorFrontendClient.h" | 50 #include "core/inspector/InspectorFrontendClient.h" |
51 #include "core/inspector/InspectorHeapProfilerAgent.h" | 51 #include "core/inspector/InspectorHeapProfilerAgent.h" |
52 #include "core/inspector/InspectorIndexedDBAgent.h" | |
53 #include "core/inspector/InspectorInputAgent.h" | 52 #include "core/inspector/InspectorInputAgent.h" |
54 #include "core/inspector/InspectorInspectorAgent.h" | 53 #include "core/inspector/InspectorInspectorAgent.h" |
55 #include "core/inspector/InspectorInstrumentation.h" | 54 #include "core/inspector/InspectorInstrumentation.h" |
56 #include "core/inspector/InspectorLayerTreeAgent.h" | 55 #include "core/inspector/InspectorLayerTreeAgent.h" |
57 #include "core/inspector/InspectorMemoryAgent.h" | 56 #include "core/inspector/InspectorMemoryAgent.h" |
58 #include "core/inspector/InspectorOverlay.h" | 57 #include "core/inspector/InspectorOverlay.h" |
59 #include "core/inspector/InspectorPageAgent.h" | 58 #include "core/inspector/InspectorPageAgent.h" |
60 #include "core/inspector/InspectorProfilerAgent.h" | 59 #include "core/inspector/InspectorProfilerAgent.h" |
61 #include "core/inspector/InspectorResourceAgent.h" | 60 #include "core/inspector/InspectorResourceAgent.h" |
62 #include "core/inspector/InspectorState.h" | 61 #include "core/inspector/InspectorState.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 133 |
135 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get()
; | 134 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get()
; |
136 InspectorOverlay* overlay = m_overlay.get(); | 135 InspectorOverlay* overlay = m_overlay.get(); |
137 | 136 |
138 OwnPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourceAgent::crea
te(m_pageAgent, m_inspectorClient)); | 137 OwnPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourceAgent::crea
te(m_pageAgent, m_inspectorClient)); |
139 InspectorResourceAgent* resourceAgent = resourceAgentPtr.get(); | 138 InspectorResourceAgent* resourceAgent = resourceAgentPtr.get(); |
140 m_agents.append(resourceAgentPtr.release()); | 139 m_agents.append(resourceAgentPtr.release()); |
141 | 140 |
142 m_agents.append(InspectorCSSAgent::create(m_domAgent, m_pageAgent, resourceA
gent)); | 141 m_agents.append(InspectorCSSAgent::create(m_domAgent, m_pageAgent, resourceA
gent)); |
143 | 142 |
144 m_agents.append(InspectorIndexedDBAgent::create(injectedScriptManager, m_pag
eAgent)); | |
145 | |
146 m_agents.append(InspectorFileSystemAgent::create(m_pageAgent)); | 143 m_agents.append(InspectorFileSystemAgent::create(m_pageAgent)); |
147 | 144 |
148 m_agents.append(InspectorDOMStorageAgent::create(m_pageAgent)); | 145 m_agents.append(InspectorDOMStorageAgent::create(m_pageAgent)); |
149 | 146 |
150 m_agents.append(InspectorMemoryAgent::create()); | 147 m_agents.append(InspectorMemoryAgent::create()); |
151 | 148 |
152 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); | 149 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); |
153 | 150 |
154 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); | 151 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); |
155 | 152 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 timelineAgent->processGPUEvent(InspectorTimelineAgent::GPUEvent(timestam
p, phase, foreign, usedGPUMemoryBytes)); | 450 timelineAgent->processGPUEvent(InspectorTimelineAgent::GPUEvent(timestam
p, phase, foreign, usedGPUMemoryBytes)); |
454 } | 451 } |
455 | 452 |
456 void InspectorController::scriptsEnabled(bool enabled) | 453 void InspectorController::scriptsEnabled(bool enabled) |
457 { | 454 { |
458 if (InspectorPageAgent* pageAgent = m_instrumentingAgents->inspectorPageAgen
t()) | 455 if (InspectorPageAgent* pageAgent = m_instrumentingAgents->inspectorPageAgen
t()) |
459 pageAgent->scriptsEnabled(enabled); | 456 pageAgent->scriptsEnabled(enabled); |
460 } | 457 } |
461 | 458 |
462 } // namespace WebCore | 459 } // namespace WebCore |
OLD | NEW |