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

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 review comments + REBASE Created 6 years, 3 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool isTopCallFrameInFramework(); 221 bool isTopCallFrameInFramework();
221 222
222 void cancelPauseOnNextStatement(); 223 void cancelPauseOnNextStatement();
223 void addMessageToConsole(MessageSource, MessageType); 224 void addMessageToConsole(MessageSource, MessageType);
224 225
225 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames(); 226 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames();
226 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); 227 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace();
227 228
228 virtual void didParseSource(const String& scriptId, const Script&, CompileRe sult) OVERRIDE FINAL; 229 virtual void didParseSource(const String& scriptId, const Script&, CompileRe sult) OVERRIDE FINAL;
229 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve ntType, const String& eventName, int id) OVERRIDE FINAL; 230 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve ntType, const String& eventName, int id) OVERRIDE FINAL;
231 virtual void didReceiveV8PromiseEvent(ScriptState*, v8::Handle<v8::Object> p romise, v8::Handle<v8::Value> parentPromise, int status) OVERRIDE FINAL;
230 232
231 void setPauseOnExceptionsImpl(ErrorString*, int); 233 void setPauseOnExceptionsImpl(ErrorString*, int);
232 234
233 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ; 235 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ;
234 void removeBreakpoint(const String& breakpointId); 236 void removeBreakpoint(const String& breakpointId);
235 void clear(); 237 void clear();
236 bool assertPaused(ErrorString*); 238 bool assertPaused(ErrorString*);
237 void clearBreakDetails(); 239 void clearBreakDetails();
238 240
239 String sourceMapURLForScript(const Script&, CompileResult); 241 String sourceMapURLForScript(const Script&, CompileResult);
(...skipping 20 matching lines...) Expand all
260 bool m_debuggerStepScheduled; 262 bool m_debuggerStepScheduled;
261 bool m_steppingFromFramework; 263 bool m_steppingFromFramework;
262 bool m_pausingOnNativeEvent; 264 bool m_pausingOnNativeEvent;
263 RawPtrWillBeMember<Listener> m_listener; 265 RawPtrWillBeMember<Listener> m_listener;
264 266
265 int m_skippedStepInCount; 267 int m_skippedStepInCount;
266 int m_minFrameCountForSkip; 268 int m_minFrameCountForSkip;
267 bool m_skipAllPauses; 269 bool m_skipAllPauses;
268 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 270 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
269 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; 271 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker;
272 PromiseTracker m_promiseTracker;
270 }; 273 };
271 274
272 } // namespace blink 275 } // namespace blink
273 276
274 277
275 #endif // !defined(InspectorDebuggerAgent_h) 278 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698