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

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

Issue 131823003: DevTools: Implement async call stacks for Promises. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 11 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
44 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
45 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
46 #include "wtf/text/StringHash.h" 46 #include "wtf/text/StringHash.h"
47 47
48 namespace WebCore { 48 namespace WebCore {
49 49
50 class Document; 50 class Document;
51 class EventListener; 51 class EventListener;
52 class EventTarget; 52 class EventTarget;
53 class ExecutionContextTask;
53 class FormData; 54 class FormData;
54 class HTTPHeaderMap; 55 class HTTPHeaderMap;
55 class InjectedScriptManager; 56 class InjectedScriptManager;
56 class InspectorFrontend; 57 class InspectorFrontend;
57 class InstrumentingAgents; 58 class InstrumentingAgents;
58 class JSONObject; 59 class JSONObject;
59 class KURL; 60 class KURL;
60 class MutationObserver; 61 class MutationObserver;
61 class ScriptArguments; 62 class ScriptArguments;
62 class ScriptCallStack; 63 class ScriptCallStack;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL istener*, bool useCapture); 150 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL istener*, bool useCapture);
150 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve ntListener*, bool useCapture); 151 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve ntListener*, bool useCapture);
151 void didRemoveAllEventListeners(EventTarget*); 152 void didRemoveAllEventListeners(EventTarget*);
152 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe ner*, bool useCapture); 153 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe ner*, bool useCapture);
153 void didHandleEvent(); 154 void didHandleEvent();
154 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM ap& headers, bool includeCrendentials); 155 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM ap& headers, bool includeCrendentials);
155 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); 156 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*);
156 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); 157 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*);
157 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); 158 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*);
158 void didDeliverMutationRecords(); 159 void didDeliverMutationRecords();
160 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes olved);
161 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*);
162 void didPerformPromiseTask();
159 bool canBreakProgram(); 163 bool canBreakProgram();
160 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<JSONObject> data); 164 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<JSONObject> data);
161 void scriptExecutionBlockedByCSP(const String& directiveText); 165 void scriptExecutionBlockedByCSP(const String& directiveText);
162 166
163 class Listener { 167 class Listener {
164 public: 168 public:
165 virtual ~Listener() { } 169 virtual ~Listener() { }
166 virtual void debuggerWasEnabled() = 0; 170 virtual void debuggerWasEnabled() = 0;
167 virtual void debuggerWasDisabled() = 0; 171 virtual void debuggerWasDisabled() = 0;
168 virtual void stepInto() = 0; 172 virtual void stepInto() = 0;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 int m_skipStepInCount; 246 int m_skipStepInCount;
243 bool m_skipAllPauses; 247 bool m_skipAllPauses;
244 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 248 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
245 AsyncCallStackTracker m_asyncCallStackTracker; 249 AsyncCallStackTracker m_asyncCallStackTracker;
246 }; 250 };
247 251
248 } // namespace WebCore 252 } // namespace WebCore
249 253
250 254
251 #endif // !defined(InspectorDebuggerAgent_h) 255 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698