Chromium Code Reviews

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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...)
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 1124 matching lines...)
1253 1255
1254 void InspectorDebuggerAgent::reset() 1256 void InspectorDebuggerAgent::reset()
1255 { 1257 {
1256 m_scripts.clear(); 1258 m_scripts.clear();
1257 m_breakpointIdToDebugServerBreakpointIds.clear(); 1259 m_breakpointIdToDebugServerBreakpointIds.clear();
1258 m_asyncCallStackTracker.clear(); 1260 m_asyncCallStackTracker.clear();
1259 if (m_frontend) 1261 if (m_frontend)
1260 m_frontend->globalObjectCleared(); 1262 m_frontend->globalObjectCleared();
1261 } 1263 }
1262 1264
1265 void InspectorDebuggerAgent::trace(Visitor* visitor)
1266 {
1267 visitor->trace(m_listener);
1268 InspectorBaseAgent::trace(visitor);
1269 }
1270
1263 } // namespace WebCore 1271 } // namespace WebCore
1264 1272
OLDNEW

Powered by Google App Engine