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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/inspector/InspectorController.h" | 32 #include "core/inspector/InspectorController.h" |
33 | 33 |
34 #include "InspectorBackendDispatcher.h" | 34 #include "InspectorBackendDispatcher.h" |
35 #include "InspectorFrontend.h" | 35 #include "InspectorFrontend.h" |
36 #include "bindings/v8/DOMWrapperWorld.h" | 36 #include "bindings/v8/DOMWrapperWorld.h" |
37 #include "bindings/v8/ScriptObject.h" | |
38 #include "core/dom/WebCoreMemoryInstrumentation.h" | 37 #include "core/dom/WebCoreMemoryInstrumentation.h" |
39 #include "core/inspector/IdentifiersFactory.h" | 38 #include "core/inspector/IdentifiersFactory.h" |
40 #include "core/inspector/InjectedScriptHost.h" | 39 #include "core/inspector/InjectedScriptHost.h" |
41 #include "core/inspector/InjectedScriptManager.h" | 40 #include "core/inspector/InjectedScriptManager.h" |
42 #include "core/inspector/InspectorAgent.h" | 41 #include "core/inspector/InspectorAgent.h" |
43 #include "core/inspector/InspectorApplicationCacheAgent.h" | 42 #include "core/inspector/InspectorApplicationCacheAgent.h" |
44 #include "core/inspector/InspectorBaseAgent.h" | 43 #include "core/inspector/InspectorBaseAgent.h" |
45 #include "core/inspector/InspectorCSSAgent.h" | 44 #include "core/inspector/InspectorCSSAgent.h" |
46 #include "core/inspector/InspectorCanvasAgent.h" | 45 #include "core/inspector/InspectorCanvasAgent.h" |
47 #include "core/inspector/InspectorClient.h" | 46 #include "core/inspector/InspectorClient.h" |
(...skipping 14 matching lines...) Expand all Loading... |
62 #include "core/inspector/InspectorPageAgent.h" | 61 #include "core/inspector/InspectorPageAgent.h" |
63 #include "core/inspector/InspectorProfilerAgent.h" | 62 #include "core/inspector/InspectorProfilerAgent.h" |
64 #include "core/inspector/InspectorResourceAgent.h" | 63 #include "core/inspector/InspectorResourceAgent.h" |
65 #include "core/inspector/InspectorState.h" | 64 #include "core/inspector/InspectorState.h" |
66 #include "core/inspector/InspectorTimelineAgent.h" | 65 #include "core/inspector/InspectorTimelineAgent.h" |
67 #include "core/inspector/InspectorWorkerAgent.h" | 66 #include "core/inspector/InspectorWorkerAgent.h" |
68 #include "core/inspector/InstrumentingAgents.h" | 67 #include "core/inspector/InstrumentingAgents.h" |
69 #include "core/inspector/PageConsoleAgent.h" | 68 #include "core/inspector/PageConsoleAgent.h" |
70 #include "core/inspector/PageDebuggerAgent.h" | 69 #include "core/inspector/PageDebuggerAgent.h" |
71 #include "core/inspector/PageRuntimeAgent.h" | 70 #include "core/inspector/PageRuntimeAgent.h" |
72 #include "core/page/Frame.h" | |
73 #include "core/page/Page.h" | 71 #include "core/page/Page.h" |
74 #include "core/platform/PlatformMouseEvent.h" | 72 #include "core/platform/PlatformMouseEvent.h" |
75 #include "core/platform/PlatformTouchEvent.h" | |
76 #include "core/platform/graphics/GraphicsContext.h" | |
77 #include <wtf/MemoryInstrumentationVector.h> | 73 #include <wtf/MemoryInstrumentationVector.h> |
78 #include <wtf/UnusedParam.h> | 74 #include <wtf/UnusedParam.h> |
79 | 75 |
80 namespace WebCore { | 76 namespace WebCore { |
81 | 77 |
82 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) | 78 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) |
83 : m_instrumentingAgents(InstrumentingAgents::create()) | 79 : m_instrumentingAgents(InstrumentingAgents::create()) |
84 , m_injectedScriptManager(InjectedScriptManager::createForPage()) | 80 , m_injectedScriptManager(InjectedScriptManager::createForPage()) |
85 , m_state(adoptPtr(new InspectorCompositeState(inspectorClient))) | 81 , m_state(adoptPtr(new InspectorCompositeState(inspectorClient))) |
86 , m_overlay(InspectorOverlay::create(page, inspectorClient)) | 82 , m_overlay(InspectorOverlay::create(page, inspectorClient)) |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 } | 427 } |
432 | 428 |
433 HashMap<String, size_t> InspectorController::processMemoryDistribution() const | 429 HashMap<String, size_t> InspectorController::processMemoryDistribution() const |
434 { | 430 { |
435 HashMap<String, size_t> memoryInfo; | 431 HashMap<String, size_t> memoryInfo; |
436 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); | 432 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); |
437 return memoryInfo; | 433 return memoryInfo; |
438 } | 434 } |
439 | 435 |
440 } // namespace WebCore | 436 } // namespace WebCore |
OLD | NEW |