| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "core/inspector/InspectorDebuggerAgent.h" | 31 #include "core/inspector/InspectorDebuggerAgent.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/V8Binding.h" | 33 #include "bindings/core/v8/V8Binding.h" |
| 34 #include "core/inspector/ScriptAsyncCallStack.h" | 34 #include "core/inspector/ScriptAsyncCallStack.h" |
| 35 #include "core/inspector/v8/V8Debugger.h" | 35 #include "core/inspector/v8/V8Debugger.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc
riptManager, V8Debugger* debugger, int contextGroupId) | 39 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc
riptManager, V8Debugger* debugger, int contextGroupId) |
| 40 : InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debugger>("D
ebugger") | 40 : InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debugger>("D
ebugger") |
| 41 , m_v8DebuggerAgent(adoptPtr(new V8DebuggerAgent(injectedScriptManager, debu
gger, this, contextGroupId))) | 41 , m_v8DebuggerAgent(adoptPtrWillBeNoop(new V8DebuggerAgent(injectedScriptMan
ager, debugger, this, contextGroupId))) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 InspectorDebuggerAgent::~InspectorDebuggerAgent() | 45 InspectorDebuggerAgent::~InspectorDebuggerAgent() |
| 46 { | 46 { |
| 47 #if !ENABLE(OILPAN) | 47 #if !ENABLE(OILPAN) |
| 48 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); | 48 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); |
| 49 #endif | 49 #endif |
| 50 } | 50 } |
| 51 | 51 |
| 52 DEFINE_TRACE(InspectorDebuggerAgent) |
| 53 { |
| 54 visitor->trace(m_v8DebuggerAgent); |
| 55 InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debugger>::tra
ce(visitor); |
| 56 } |
| 57 |
| 52 // Protocol implementation. | 58 // Protocol implementation. |
| 53 void InspectorDebuggerAgent::enable(ErrorString* errorString) | 59 void InspectorDebuggerAgent::enable(ErrorString* errorString) |
| 54 { | 60 { |
| 55 m_v8DebuggerAgent->enable(errorString); | 61 m_v8DebuggerAgent->enable(errorString); |
| 56 } | 62 } |
| 57 | 63 |
| 58 void InspectorDebuggerAgent::disable(ErrorString* errorString) | 64 void InspectorDebuggerAgent::disable(ErrorString* errorString) |
| 59 { | 65 { |
| 60 m_v8DebuggerAgent->disable(errorString); | 66 m_v8DebuggerAgent->disable(errorString); |
| 61 } | 67 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 { | 316 { |
| 311 m_v8DebuggerAgent->clearFrontend(); | 317 m_v8DebuggerAgent->clearFrontend(); |
| 312 } | 318 } |
| 313 | 319 |
| 314 void InspectorDebuggerAgent::restore() | 320 void InspectorDebuggerAgent::restore() |
| 315 { | 321 { |
| 316 m_v8DebuggerAgent->restore(); | 322 m_v8DebuggerAgent->restore(); |
| 317 } | 323 } |
| 318 | 324 |
| 319 } // namespace blink | 325 } // namespace blink |
| OLD | NEW |