| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2010-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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "web/WebDevToolsAgentImpl.h" | 32 #include "web/WebDevToolsAgentImpl.h" |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptController.h" | 34 #include "bindings/core/v8/ScriptController.h" |
| 35 #include "bindings/core/v8/V8Binding.h" | 35 #include "bindings/core/v8/V8Binding.h" |
| 36 #include "core/InspectorBackendDispatcher.h" | 36 #include "core/InspectorBackendDispatcher.h" |
| 37 #include "core/InspectorFrontend.h" | 37 #include "core/InspectorFrontend.h" |
| 38 #include "core/frame/FrameConsole.h" | 38 #include "core/frame/FrameConsole.h" |
| 39 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/inspector/AsyncCallTracker.h" | |
| 42 #include "core/inspector/IdentifiersFactory.h" | 41 #include "core/inspector/IdentifiersFactory.h" |
| 43 #include "core/inspector/InjectedScriptHost.h" | 42 #include "core/inspector/InjectedScriptHost.h" |
| 44 #include "core/inspector/InjectedScriptManager.h" | 43 #include "core/inspector/InjectedScriptManager.h" |
| 45 #include "core/inspector/InspectorAnimationAgent.h" | 44 #include "core/inspector/InspectorAnimationAgent.h" |
| 46 #include "core/inspector/InspectorApplicationCacheAgent.h" | 45 #include "core/inspector/InspectorApplicationCacheAgent.h" |
| 47 #include "core/inspector/InspectorCSSAgent.h" | 46 #include "core/inspector/InspectorCSSAgent.h" |
| 48 #include "core/inspector/InspectorDOMAgent.h" | 47 #include "core/inspector/InspectorDOMAgent.h" |
| 49 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 48 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
| 50 #include "core/inspector/InspectorDebuggerAgent.h" | 49 #include "core/inspector/InspectorDebuggerAgent.h" |
| 51 #include "core/inspector/InspectorHeapProfilerAgent.h" | 50 #include "core/inspector/InspectorHeapProfilerAgent.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 } | 402 } |
| 404 | 403 |
| 405 DEFINE_TRACE(WebDevToolsAgentImpl) | 404 DEFINE_TRACE(WebDevToolsAgentImpl) |
| 406 { | 405 { |
| 407 visitor->trace(m_webLocalFrameImpl); | 406 visitor->trace(m_webLocalFrameImpl); |
| 408 visitor->trace(m_instrumentingAgents); | 407 visitor->trace(m_instrumentingAgents); |
| 409 visitor->trace(m_injectedScriptManager); | 408 visitor->trace(m_injectedScriptManager); |
| 410 visitor->trace(m_resourceContentLoader); | 409 visitor->trace(m_resourceContentLoader); |
| 411 visitor->trace(m_state); | 410 visitor->trace(m_state); |
| 412 visitor->trace(m_overlay); | 411 visitor->trace(m_overlay); |
| 413 visitor->trace(m_asyncCallTracker); | |
| 414 visitor->trace(m_inspectorAgent); | 412 visitor->trace(m_inspectorAgent); |
| 415 visitor->trace(m_domAgent); | 413 visitor->trace(m_domAgent); |
| 416 visitor->trace(m_pageAgent); | 414 visitor->trace(m_pageAgent); |
| 417 visitor->trace(m_cssAgent); | 415 visitor->trace(m_cssAgent); |
| 418 visitor->trace(m_resourceAgent); | 416 visitor->trace(m_resourceAgent); |
| 419 visitor->trace(m_layerTreeAgent); | 417 visitor->trace(m_layerTreeAgent); |
| 420 visitor->trace(m_tracingAgent); | 418 visitor->trace(m_tracingAgent); |
| 421 visitor->trace(m_pageRuntimeAgent); | 419 visitor->trace(m_pageRuntimeAgent); |
| 422 visitor->trace(m_pageConsoleAgent); | 420 visitor->trace(m_pageConsoleAgent); |
| 423 visitor->trace(m_inspectorBackendDispatcher); | 421 visitor->trace(m_inspectorBackendDispatcher); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 455 |
| 458 m_agents.append(InspectorAnimationAgent::create(m_pageAgent, m_domAgent)); | 456 m_agents.append(InspectorAnimationAgent::create(m_pageAgent, m_domAgent)); |
| 459 | 457 |
| 460 m_agents.append(InspectorMemoryAgent::create()); | 458 m_agents.append(InspectorMemoryAgent::create()); |
| 461 | 459 |
| 462 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); | 460 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); |
| 463 | 461 |
| 464 OwnPtrWillBeRawPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgen
t::create(MainThreadDebugger::instance(), m_pageAgent, injectedScriptManager)); | 462 OwnPtrWillBeRawPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgen
t::create(MainThreadDebugger::instance(), m_pageAgent, injectedScriptManager)); |
| 465 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get(); | 463 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get(); |
| 466 m_agents.append(debuggerAgentPtr.release()); | 464 m_agents.append(debuggerAgentPtr.release()); |
| 467 m_asyncCallTracker = adoptPtrWillBeNoop(new AsyncCallTracker(debuggerAgent->
v8DebuggerAgent(), m_instrumentingAgents.get())); | |
| 468 | 465 |
| 469 m_agents.append(InspectorDOMDebuggerAgent::create(injectedScriptManager, m_d
omAgent, debuggerAgent->v8DebuggerAgent())); | 466 m_agents.append(InspectorDOMDebuggerAgent::create(injectedScriptManager, m_d
omAgent, debuggerAgent->v8DebuggerAgent())); |
| 470 | 467 |
| 471 m_agents.append(InspectorInputAgent::create(m_pageAgent)); | 468 m_agents.append(InspectorInputAgent::create(m_pageAgent)); |
| 472 | 469 |
| 473 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); | 470 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
| 474 m_agents.append(InspectorProfilerAgent::create(isolate, injectedScriptManage
r, m_overlay.get())); | 471 m_agents.append(InspectorProfilerAgent::create(isolate, injectedScriptManage
r, m_overlay.get())); |
| 475 | 472 |
| 476 m_agents.append(InspectorHeapProfilerAgent::create(isolate, injectedScriptMa
nager)); | 473 m_agents.append(InspectorHeapProfilerAgent::create(isolate, injectedScriptMa
nager)); |
| 477 | 474 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) | 705 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) |
| 709 return false; | 706 return false; |
| 710 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) | 707 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) |
| 711 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) | 708 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) |
| 712 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) | 709 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) |
| 713 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 710 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
| 714 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 711 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
| 715 } | 712 } |
| 716 | 713 |
| 717 } // namespace blink | 714 } // namespace blink |
| OLD | NEW |