Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

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, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc riptManager) 114 InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedSc riptManager)
115 : InspectorBaseAgent<InspectorDebuggerAgent>("Debugger") 115 : InspectorBaseAgent<InspectorDebuggerAgent>("Debugger")
116 , m_injectedScriptManager(injectedScriptManager) 116 , m_injectedScriptManager(injectedScriptManager)
117 , m_frontend(0) 117 , m_frontend(0)
118 , m_pausedScriptState(nullptr) 118 , m_pausedScriptState(nullptr)
119 , m_javaScriptPauseScheduled(false) 119 , m_javaScriptPauseScheduled(false)
120 , m_debuggerStepScheduled(false) 120 , m_debuggerStepScheduled(false)
121 , m_steppingFromFramework(false) 121 , m_steppingFromFramework(false)
122 , m_pausingOnNativeEvent(false) 122 , m_pausingOnNativeEvent(false)
123 , m_listener(0) 123 , m_listener(nullptr)
124 , m_skippedStepInCount(0) 124 , m_skippedStepInCount(0)
125 , m_skipAllPauses(false) 125 , m_skipAllPauses(false)
126 { 126 {
127 } 127 }
128 128
129 InspectorDebuggerAgent::~InspectorDebuggerAgent() 129 InspectorDebuggerAgent::~InspectorDebuggerAgent()
130 { 130 {
131 #if !ENABLE(OILPAN)
131 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent()); 132 ASSERT(!m_instrumentingAgents->inspectorDebuggerAgent());
133 #endif
132 } 134 }
133 135
134 void InspectorDebuggerAgent::init() 136 void InspectorDebuggerAgent::init()
135 { 137 {
136 // FIXME: make breakReason optional so that there was no need to init it wit h "other". 138 // FIXME: make breakReason optional so that there was no need to init it wit h "other".
137 clearBreakDetails(); 139 clearBreakDetails();
138 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ er::DontPauseOnExceptions); 140 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ er::DontPauseOnExceptions);
139 } 141 }
140 142
141 void InspectorDebuggerAgent::enable() 143 void InspectorDebuggerAgent::enable()
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 1384
1383 void InspectorDebuggerAgent::reset() 1385 void InspectorDebuggerAgent::reset()
1384 { 1386 {
1385 m_scripts.clear(); 1387 m_scripts.clear();
1386 m_breakpointIdToDebugServerBreakpointIds.clear(); 1388 m_breakpointIdToDebugServerBreakpointIds.clear();
1387 m_asyncCallStackTracker.clear(); 1389 m_asyncCallStackTracker.clear();
1388 if (m_frontend) 1390 if (m_frontend)
1389 m_frontend->globalObjectCleared(); 1391 m_frontend->globalObjectCleared();
1390 } 1392 }
1391 1393
1394 void InspectorDebuggerAgent::trace(Visitor* visitor)
1395 {
1396 visitor->trace(m_listener);
1397 InspectorBaseAgent::trace(visitor);
1398 }
1399
1392 } // namespace WebCore 1400 } // namespace WebCore
1393 1401
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698