| OLD | NEW |
| 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 Loading... |
| 30 #ifndef InspectorDebuggerAgent_h | 30 #ifndef InspectorDebuggerAgent_h |
| 31 #define InspectorDebuggerAgent_h | 31 #define InspectorDebuggerAgent_h |
| 32 | 32 |
| 33 #include "InspectorFrontend.h" | 33 #include "InspectorFrontend.h" |
| 34 #include "bindings/v8/ScriptState.h" | 34 #include "bindings/v8/ScriptState.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" | |
| 41 #include "core/inspector/ScriptBreakpoint.h" | 40 #include "core/inspector/ScriptBreakpoint.h" |
| 42 #include "core/inspector/ScriptDebugListener.h" | 41 #include "core/inspector/ScriptDebugListener.h" |
| 43 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 44 #include "wtf/HashMap.h" | 43 #include "wtf/HashMap.h" |
| 45 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
| 46 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
| 47 #include "wtf/text/StringHash.h" | 46 #include "wtf/text/StringHash.h" |
| 48 | 47 |
| 49 namespace WebCore { | 48 namespace WebCore { |
| 50 | 49 |
| 51 class Document; | 50 class Document; |
| 52 class EventListener; | 51 class EventListener; |
| 53 class EventTarget; | 52 class EventTarget; |
| 54 class ExecutionContextTask; | |
| 55 class FormData; | 53 class FormData; |
| 56 class HTTPHeaderMap; | 54 class HTTPHeaderMap; |
| 57 class InjectedScriptManager; | 55 class InjectedScriptManager; |
| 58 class InspectorFrontend; | 56 class InspectorFrontend; |
| 59 class InstrumentingAgents; | 57 class InstrumentingAgents; |
| 60 class JavaScriptCallFrame; | 58 class JavaScriptCallFrame; |
| 61 class JSONObject; | 59 class JSONObject; |
| 62 class KURL; | 60 class KURL; |
| 63 class MutationObserver; | 61 class MutationObserver; |
| 64 class ScriptArguments; | 62 class ScriptArguments; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL
istener*, bool useCapture); | 151 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL
istener*, bool useCapture); |
| 154 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve
ntListener*, bool useCapture); | 152 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve
ntListener*, bool useCapture); |
| 155 void didRemoveAllEventListeners(EventTarget*); | 153 void didRemoveAllEventListeners(EventTarget*); |
| 156 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); | 154 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); |
| 157 void didHandleEvent(); | 155 void didHandleEvent(); |
| 158 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, FormData* body, const HTTPHeaderMap& headers
, bool includeCrendentials); | 156 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, FormData* body, const HTTPHeaderMap& headers
, bool includeCrendentials); |
| 159 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); | 157 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); |
| 160 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); | 158 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); |
| 161 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); | 159 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); |
| 162 void didDeliverMutationRecords(); | 160 void didDeliverMutationRecords(); |
| 163 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes
olved); | |
| 164 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*); | |
| 165 void didPerformPromiseTask(); | |
| 166 bool isPromiseTrackerEnabled(); | |
| 167 void didCreatePromise(const ScriptObject& promise); | |
| 168 void didUpdatePromiseParent(const ScriptObject& promise, const ScriptObject&
parentPromise); | |
| 169 void didUpdatePromiseState(const ScriptObject& promise, V8PromiseCustom::Pro
miseState, const ScriptValue& result); | |
| 170 bool canBreakProgram(); | 161 bool canBreakProgram(); |
| 171 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); | 162 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); |
| 172 void scriptExecutionBlockedByCSP(const String& directiveText); | 163 void scriptExecutionBlockedByCSP(const String& directiveText); |
| 173 | 164 |
| 174 class Listener { | 165 class Listener { |
| 175 public: | 166 public: |
| 176 virtual ~Listener() { } | 167 virtual ~Listener() { } |
| 177 virtual void debuggerWasEnabled() = 0; | 168 virtual void debuggerWasEnabled() = 0; |
| 178 virtual void debuggerWasDisabled() = 0; | 169 virtual void debuggerWasDisabled() = 0; |
| 179 virtual void stepInto() = 0; | 170 virtual void stepInto() = 0; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 String m_continueToLocationBreakpointId; | 238 String m_continueToLocationBreakpointId; |
| 248 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 239 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
| 249 RefPtr<JSONObject> m_breakAuxData; | 240 RefPtr<JSONObject> m_breakAuxData; |
| 250 bool m_javaScriptPauseScheduled; | 241 bool m_javaScriptPauseScheduled; |
| 251 Listener* m_listener; | 242 Listener* m_listener; |
| 252 | 243 |
| 253 int m_skipStepInCount; | 244 int m_skipStepInCount; |
| 254 bool m_skipAllPauses; | 245 bool m_skipAllPauses; |
| 255 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 246 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
| 256 AsyncCallStackTracker m_asyncCallStackTracker; | 247 AsyncCallStackTracker m_asyncCallStackTracker; |
| 257 PromiseTracker m_promiseTracker; | |
| 258 }; | 248 }; |
| 259 | 249 |
| 260 } // namespace WebCore | 250 } // namespace WebCore |
| 261 | 251 |
| 262 | 252 |
| 263 #endif // !defined(InspectorDebuggerAgent_h) | 253 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |