| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 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_pausingOnNativeEvent(false) | 109 , m_pausingOnNativeEvent(false) |
| 110 , m_listener(0) | 110 , m_listener(nullptr) |
| 111 , m_skippedStepInCount(0) | 111 , m_skippedStepInCount(0) |
| 112 , m_skipAllPauses(false) | 112 , m_skipAllPauses(false) |
| 113 { | 113 { |
| 114 } | 114 } |
| 115 | 115 |
| 116 InspectorDebuggerAgent::~InspectorDebuggerAgent() | 116 InspectorDebuggerAgent::~InspectorDebuggerAgent() |
| 117 { | 117 { |
| 118 #if !ENABLE(OILPAN) |
| 118 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); | 119 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); |
| 120 #endif |
| 119 } | 121 } |
| 120 | 122 |
| 121 void InspectorDebuggerAgent::init() | 123 void InspectorDebuggerAgent::init() |
| 122 { | 124 { |
| 123 // FIXME: make breakReason optional so that there was no need to init it wit
h "other". | 125 // FIXME: make breakReason optional so that there was no need to init it wit
h "other". |
| 124 clearBreakDetails(); | 126 clearBreakDetails(); |
| 125 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ
er::DontPauseOnExceptions); | 127 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ
er::DontPauseOnExceptions); |
| 126 } | 128 } |
| 127 | 129 |
| 128 void InspectorDebuggerAgent::enable() | 130 void InspectorDebuggerAgent::enable() |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 | 1277 |
| 1276 void InspectorDebuggerAgent::reset() | 1278 void InspectorDebuggerAgent::reset() |
| 1277 { | 1279 { |
| 1278 m_scripts.clear(); | 1280 m_scripts.clear(); |
| 1279 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1281 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1280 m_asyncCallStackTracker.clear(); | 1282 m_asyncCallStackTracker.clear(); |
| 1281 if (m_frontend) | 1283 if (m_frontend) |
| 1282 m_frontend->globalObjectCleared(); | 1284 m_frontend->globalObjectCleared(); |
| 1283 } | 1285 } |
| 1284 | 1286 |
| 1287 void InspectorDebuggerAgent::trace(Visitor* visitor) |
| 1288 { |
| 1289 visitor->trace(m_listener); |
| 1290 InspectorBaseAgent::trace(visitor); |
| 1291 } |
| 1292 |
| 1285 } // namespace WebCore | 1293 } // namespace WebCore |
| 1286 | 1294 |
| OLD | NEW |