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

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

Issue 1224553008: [DevTools] Move Script and enums from ScriptDebugListener to V8Debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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) 2010-2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2011 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 virtual void startListeningV8Debugger() = 0; 200 virtual void startListeningV8Debugger() = 0;
201 virtual void stopListeningV8Debugger() = 0; 201 virtual void stopListeningV8Debugger() = 0;
202 virtual void muteConsole() = 0; 202 virtual void muteConsole() = 0;
203 virtual void unmuteConsole() = 0; 203 virtual void unmuteConsole() = 0;
204 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger; } 204 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger; }
205 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0; 205 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0;
206 206
207 virtual void enable(); 207 virtual void enable();
208 virtual void disable(); 208 virtual void disable();
209 SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRej ection) final; 209 V8Debugger::SkipPauseRequest didPause(ScriptState*, const ScriptValue& callF rames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRejection) final;
210 void didContinue() final; 210 void didContinue() final;
211 void reset(); 211 void reset();
212 void resetModifiedSources(); 212 void resetModifiedSources();
213 213
214 private: 214 private:
215 bool checkEnabled(ErrorString*); 215 bool checkEnabled(ErrorString*);
216 216
217 SkipPauseRequest shouldSkipExceptionPause(); 217 V8Debugger::SkipPauseRequest shouldSkipExceptionPause();
218 SkipPauseRequest shouldSkipStepPause(); 218 V8Debugger::SkipPauseRequest shouldSkipStepPause();
219 219
220 void schedulePauseOnNextStatementIfSteppingInto(); 220 void schedulePauseOnNextStatementIfSteppingInto();
221 void cancelPauseOnNextStatement(); 221 void cancelPauseOnNextStatement();
222 void addMessageToConsole(MessageSource, MessageType); 222 void addMessageToConsole(MessageSource, MessageType);
223 223
224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames(); 224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames();
225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); 225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace();
226 226
227 void clearCurrentAsyncOperation(); 227 void clearCurrentAsyncOperation();
228 void resetAsyncCallTracker(); 228 void resetAsyncCallTracker();
229 229
230 void changeJavaScriptRecursionLevel(int step); 230 void changeJavaScriptRecursionLevel(int step);
231 231
232 void didParseSource(const ParsedScript&) final; 232 void didParseSource(const V8Debugger::ParsedScript&) final;
233 bool v8AsyncTaskEventsEnabled() const final; 233 bool v8AsyncTaskEventsEnabled() const final;
234 void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id) final; 234 void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id) final;
235 bool v8PromiseEventsEnabled() const final; 235 bool v8PromiseEventsEnabled() const final;
236 void didReceiveV8PromiseEvent(ScriptState*, v8::Local<v8::Object> promise, v 8::Local<v8::Value> parentPromise, int status) final; 236 void didReceiveV8PromiseEvent(ScriptState*, v8::Local<v8::Object> promise, v 8::Local<v8::Value> parentPromise, int status) final;
237 237
238 void setPauseOnExceptionsImpl(ErrorString*, int); 238 void setPauseOnExceptionsImpl(ErrorString*, int);
239 239
240 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ; 240 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ;
241 void removeBreakpoint(const String& breakpointId); 241 void removeBreakpoint(const String& breakpointId);
242 void clear(); 242 void clear();
243 void clearStepIntoAsync(); 243 void clearStepIntoAsync();
244 bool assertPaused(ErrorString*); 244 bool assertPaused(ErrorString*);
245 void clearBreakDetails(); 245 void clearBreakDetails();
246 246
247 String sourceMapURLForScript(const Script&, CompileResult); 247 String sourceMapURLForScript(const V8Debugger::Script&, V8Debugger::CompileR esult);
248 248
249 bool isCallStackEmptyOrBlackboxed(); 249 bool isCallStackEmptyOrBlackboxed();
250 bool isTopCallFrameBlackboxed(); 250 bool isTopCallFrameBlackboxed();
251 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame >); 251 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame >);
252 PromiseTracker& promiseTracker() const { return *m_promiseTracker; } 252 PromiseTracker& promiseTracker() const { return *m_promiseTracker; }
253 253
254 void internalSetAsyncCallStackDepth(int); 254 void internalSetAsyncCallStackDepth(int);
255 void increaseCachedSkipStackGeneration(); 255 void increaseCachedSkipStackGeneration();
256 PassRefPtr<TypeBuilder::Debugger::ExceptionDetails> createExceptionDetails(v 8::Isolate*, v8::Local<v8::Message>); 256 PassRefPtr<TypeBuilder::Debugger::ExceptionDetails> createExceptionDetails(v 8::Isolate*, v8::Local<v8::Message>);
257 257
258 typedef HashMap<String, Script> ScriptsMap; 258 typedef HashMap<String, V8Debugger::Script> ScriptsMap;
259 typedef HashMap<String, Vector<String>> BreakpointIdToDebuggerBreakpointIdsM ap; 259 typedef HashMap<String, Vector<String>> BreakpointIdToDebuggerBreakpointIdsM ap;
260 typedef HashMap<String, std::pair<String, BreakpointSource>> DebugServerBrea kpointToBreakpointIdAndSourceMap; 260 typedef HashMap<String, std::pair<String, BreakpointSource>> DebugServerBrea kpointToBreakpointIdAndSourceMap;
261 261
262 enum DebuggerStep { 262 enum DebuggerStep {
263 NoStep = 0, 263 NoStep = 0,
264 StepInto, 264 StepInto,
265 StepOver, 265 StepOver,
266 StepOut 266 StepOut
267 }; 267 };
268 268
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool m_pendingTraceAsyncOperationCompleted; 307 bool m_pendingTraceAsyncOperationCompleted;
308 bool m_startingStepIntoAsync; 308 bool m_startingStepIntoAsync;
309 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners; 309 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT rackingListeners;
310 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; 310 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts;
311 }; 311 };
312 312
313 } // namespace blink 313 } // namespace blink
314 314
315 315
316 #endif // InspectorDebuggerAgent_h 316 #endif // InspectorDebuggerAgent_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | Source/core/inspector/V8Debugger.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698