| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc
riptManager) | 102 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc
riptManager) |
| 103 : InspectorBaseAgent<InspectorDebuggerAgent>("Debugger") | 103 : InspectorBaseAgent<InspectorDebuggerAgent>("Debugger") |
| 104 , m_injectedScriptManager(injectedScriptManager) | 104 , m_injectedScriptManager(injectedScriptManager) |
| 105 , m_frontend(0) | 105 , m_frontend(0) |
| 106 , m_pausedScriptState(nullptr) | 106 , m_pausedScriptState(nullptr) |
| 107 , m_javaScriptPauseScheduled(false) | 107 , m_javaScriptPauseScheduled(false) |
| 108 , m_debuggerStepScheduled(false) | 108 , m_debuggerStepScheduled(false) |
| 109 , m_steppingFromFramework(false) | 109 , m_steppingFromFramework(false) |
| 110 , m_pausingOnNativeEvent(false) | 110 , m_pausingOnNativeEvent(false) |
| 111 , m_listener(0) | 111 , m_listener(nullptr) |
| 112 , m_skippedStepInCount(0) | 112 , m_skippedStepInCount(0) |
| 113 , m_skipAllPauses(false) | 113 , m_skipAllPauses(false) |
| 114 { | 114 { |
| 115 } | 115 } |
| 116 | 116 |
| 117 InspectorDebuggerAgent::~InspectorDebuggerAgent() | 117 InspectorDebuggerAgent::~InspectorDebuggerAgent() |
| 118 { | 118 { |
| 119 #if !ENABLE(OILPAN) |
| 119 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); | 120 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); |
| 121 #endif |
| 120 } | 122 } |
| 121 | 123 |
| 122 void InspectorDebuggerAgent::init() | 124 void InspectorDebuggerAgent::init() |
| 123 { | 125 { |
| 124 // FIXME: make breakReason optional so that there was no need to init it wit
h "other". | 126 // FIXME: make breakReason optional so that there was no need to init it wit
h "other". |
| 125 clearBreakDetails(); | 127 clearBreakDetails(); |
| 126 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ
er::DontPauseOnExceptions); | 128 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ
er::DontPauseOnExceptions); |
| 127 } | 129 } |
| 128 | 130 |
| 129 void InspectorDebuggerAgent::enable() | 131 void InspectorDebuggerAgent::enable() |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 | 1299 |
| 1298 void InspectorDebuggerAgent::reset() | 1300 void InspectorDebuggerAgent::reset() |
| 1299 { | 1301 { |
| 1300 m_scripts.clear(); | 1302 m_scripts.clear(); |
| 1301 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1303 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1302 m_asyncCallStackTracker.clear(); | 1304 m_asyncCallStackTracker.clear(); |
| 1303 if (m_frontend) | 1305 if (m_frontend) |
| 1304 m_frontend->globalObjectCleared(); | 1306 m_frontend->globalObjectCleared(); |
| 1305 } | 1307 } |
| 1306 | 1308 |
| 1309 void InspectorDebuggerAgent::trace(Visitor* visitor) |
| 1310 { |
| 1311 visitor->trace(m_listener); |
| 1312 InspectorBaseAgent::trace(visitor); |
| 1313 } |
| 1314 |
| 1307 } // namespace WebCore | 1315 } // namespace WebCore |
| 1308 | 1316 |
| OLD | NEW |