| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "core/inspector/InspectorResourceAgent.h" | 63 #include "core/inspector/InspectorResourceAgent.h" |
| 64 #include "core/inspector/InspectorState.h" | 64 #include "core/inspector/InspectorState.h" |
| 65 #include "core/inspector/InspectorTimelineAgent.h" | 65 #include "core/inspector/InspectorTimelineAgent.h" |
| 66 #include "core/inspector/InspectorWorkerAgent.h" | 66 #include "core/inspector/InspectorWorkerAgent.h" |
| 67 #include "core/inspector/InstrumentingAgents.h" | 67 #include "core/inspector/InstrumentingAgents.h" |
| 68 #include "core/inspector/PageConsoleAgent.h" | 68 #include "core/inspector/PageConsoleAgent.h" |
| 69 #include "core/inspector/PageDebuggerAgent.h" | 69 #include "core/inspector/PageDebuggerAgent.h" |
| 70 #include "core/inspector/PageRuntimeAgent.h" | 70 #include "core/inspector/PageRuntimeAgent.h" |
| 71 #include "core/page/Page.h" | 71 #include "core/page/Page.h" |
| 72 #include "core/platform/PlatformMouseEvent.h" | 72 #include "core/platform/PlatformMouseEvent.h" |
| 73 #include <wtf/MemoryInstrumentationVector.h> | 73 #include "wtf/MemoryInstrumentationVector.h" |
| 74 #include <wtf/UnusedParam.h> | |
| 75 | 74 |
| 76 namespace WebCore { | 75 namespace WebCore { |
| 77 | 76 |
| 78 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) | 77 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) |
| 79 : m_instrumentingAgents(InstrumentingAgents::create()) | 78 : m_instrumentingAgents(InstrumentingAgents::create()) |
| 80 , m_injectedScriptManager(InjectedScriptManager::createForPage()) | 79 , m_injectedScriptManager(InjectedScriptManager::createForPage()) |
| 81 , m_state(adoptPtr(new InspectorCompositeState(inspectorClient))) | 80 , m_state(adoptPtr(new InspectorCompositeState(inspectorClient))) |
| 82 , m_overlay(InspectorOverlay::create(page, inspectorClient)) | 81 , m_overlay(InspectorOverlay::create(page, inspectorClient)) |
| 83 , m_page(page) | 82 , m_page(page) |
| 84 , m_inspectorClient(inspectorClient) | 83 , m_inspectorClient(inspectorClient) |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 418 } |
| 420 | 419 |
| 421 HashMap<String, size_t> InspectorController::processMemoryDistribution() const | 420 HashMap<String, size_t> InspectorController::processMemoryDistribution() const |
| 422 { | 421 { |
| 423 HashMap<String, size_t> memoryInfo; | 422 HashMap<String, size_t> memoryInfo; |
| 424 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); | 423 m_memoryAgent->getProcessMemoryDistributionMap(&memoryInfo); |
| 425 return memoryInfo; | 424 return memoryInfo; |
| 426 } | 425 } |
| 427 | 426 |
| 428 } // namespace WebCore | 427 } // namespace WebCore |
| OLD | NEW |