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