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

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

Issue 433653003: Support Promises event-based instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments Created 6 years, 4 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
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 19 matching lines...) Expand all
30 #ifndef InspectorDebuggerAgent_h 30 #ifndef InspectorDebuggerAgent_h
31 #define InspectorDebuggerAgent_h 31 #define InspectorDebuggerAgent_h
32 32
33 #include "bindings/core/v8/ScriptState.h" 33 #include "bindings/core/v8/ScriptState.h"
34 #include "core/InspectorFrontend.h" 34 #include "core/InspectorFrontend.h"
35 #include "core/frame/ConsoleTypes.h" 35 #include "core/frame/ConsoleTypes.h"
36 #include "core/inspector/AsyncCallStackTracker.h" 36 #include "core/inspector/AsyncCallStackTracker.h"
37 #include "core/inspector/ConsoleAPITypes.h" 37 #include "core/inspector/ConsoleAPITypes.h"
38 #include "core/inspector/InjectedScript.h" 38 #include "core/inspector/InjectedScript.h"
39 #include "core/inspector/InspectorBaseAgent.h" 39 #include "core/inspector/InspectorBaseAgent.h"
40 #include "core/inspector/PromiseTracker.h"
40 #include "core/inspector/ScriptBreakpoint.h" 41 #include "core/inspector/ScriptBreakpoint.h"
41 #include "core/inspector/ScriptDebugListener.h" 42 #include "core/inspector/ScriptDebugListener.h"
42 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
43 #include "wtf/HashMap.h" 44 #include "wtf/HashMap.h"
44 #include "wtf/PassRefPtr.h" 45 #include "wtf/PassRefPtr.h"
45 #include "wtf/Vector.h" 46 #include "wtf/Vector.h"
46 #include "wtf/text/StringHash.h" 47 #include "wtf/text/StringHash.h"
47 48
48 namespace blink { 49 namespace blink {
49 50
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool isTopCallFrameInFramework(); 219 bool isTopCallFrameInFramework();
219 220
220 void cancelPauseOnNextStatement(); 221 void cancelPauseOnNextStatement();
221 void addMessageToConsole(MessageSource, MessageType); 222 void addMessageToConsole(MessageSource, MessageType);
222 223
223 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames(); 224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames();
224 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); 225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace();
225 226
226 virtual void didParseSource(const String& scriptId, const Script&, CompileRe sult) OVERRIDE FINAL; 227 virtual void didParseSource(const String& scriptId, const Script&, CompileRe sult) OVERRIDE FINAL;
227 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve ntType, const String& eventName, int id) OVERRIDE FINAL; 228 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve ntType, const String& eventName, int id) OVERRIDE FINAL;
229 virtual void didReceiveV8PromiseEvent(ScriptState*, v8::Handle<v8::Object> p romise, v8::Handle<v8::Value> parentPromise, int status) OVERRIDE FINAL;
228 230
229 void setPauseOnExceptionsImpl(ErrorString*, int); 231 void setPauseOnExceptionsImpl(ErrorString*, int);
230 232
231 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ; 233 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ;
232 void removeBreakpoint(const String& breakpointId); 234 void removeBreakpoint(const String& breakpointId);
233 void clear(); 235 void clear();
234 bool assertPaused(ErrorString*); 236 bool assertPaused(ErrorString*);
235 void clearBreakDetails(); 237 void clearBreakDetails();
236 238
237 String sourceMapURLForScript(const Script&, CompileResult); 239 String sourceMapURLForScript(const Script&, CompileResult);
(...skipping 18 matching lines...) Expand all
256 bool m_debuggerStepScheduled; 258 bool m_debuggerStepScheduled;
257 bool m_steppingFromFramework; 259 bool m_steppingFromFramework;
258 bool m_pausingOnNativeEvent; 260 bool m_pausingOnNativeEvent;
259 RawPtrWillBeMember<Listener> m_listener; 261 RawPtrWillBeMember<Listener> m_listener;
260 262
261 int m_skippedStepInCount; 263 int m_skippedStepInCount;
262 int m_minFrameCountForSkip; 264 int m_minFrameCountForSkip;
263 bool m_skipAllPauses; 265 bool m_skipAllPauses;
264 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 266 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
265 AsyncCallStackTracker m_asyncCallStackTracker; 267 AsyncCallStackTracker m_asyncCallStackTracker;
268 PromiseTracker m_promiseTracker;
266 }; 269 };
267 270
268 } // namespace blink 271 } // namespace blink
269 272
270 273
271 #endif // !defined(InspectorDebuggerAgent_h) 274 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698