| 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/PromiseOfficer.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 WebCore { | 49 namespace WebCore { |
| 49 | 50 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); | 155 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); |
| 155 void didHandleEvent(); | 156 void didHandleEvent(); |
| 156 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); | 157 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); |
| 157 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); | 158 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); |
| 158 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); | 159 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); |
| 159 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); | 160 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); |
| 160 void didDeliverMutationRecords(); | 161 void didDeliverMutationRecords(); |
| 161 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes
olved); | 162 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes
olved); |
| 162 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*); | 163 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*); |
| 163 void didPerformPromiseTask(); | 164 void didPerformPromiseTask(); |
| 165 void addPromise(ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handl
e<v8::Object> parentPromise, V8PromiseCustom::PromiseState state = V8PromiseCust
om::Pending); |
| 166 void setPromiseParent(ExecutionContext*, v8::Handle<v8::Object> promise, v8:
:Handle<v8::Object> parentPromise); |
| 167 void setPromiseStateAndResult(ExecutionContext*, v8::Handle<v8::Object> prom
ise, v8::Handle<v8::Value> result, V8PromiseCustom::PromiseState state); |
| 164 bool canBreakProgram(); | 168 bool canBreakProgram(); |
| 165 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); | 169 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); |
| 166 void scriptExecutionBlockedByCSP(const String& directiveText); | 170 void scriptExecutionBlockedByCSP(const String& directiveText); |
| 167 | 171 |
| 168 class Listener { | 172 class Listener { |
| 169 public: | 173 public: |
| 170 virtual ~Listener() { } | 174 virtual ~Listener() { } |
| 171 virtual void debuggerWasEnabled() = 0; | 175 virtual void debuggerWasEnabled() = 0; |
| 172 virtual void debuggerWasDisabled() = 0; | 176 virtual void debuggerWasDisabled() = 0; |
| 173 virtual void stepInto() = 0; | 177 virtual void stepInto() = 0; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 String m_continueToLocationBreakpointId; | 245 String m_continueToLocationBreakpointId; |
| 242 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 246 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
| 243 RefPtr<JSONObject> m_breakAuxData; | 247 RefPtr<JSONObject> m_breakAuxData; |
| 244 bool m_javaScriptPauseScheduled; | 248 bool m_javaScriptPauseScheduled; |
| 245 Listener* m_listener; | 249 Listener* m_listener; |
| 246 | 250 |
| 247 int m_skipStepInCount; | 251 int m_skipStepInCount; |
| 248 bool m_skipAllPauses; | 252 bool m_skipAllPauses; |
| 249 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 253 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
| 250 AsyncCallStackTracker m_asyncCallStackTracker; | 254 AsyncCallStackTracker m_asyncCallStackTracker; |
| 255 PromiseOfficer m_promiseOfficer; |
| 251 }; | 256 }; |
| 252 | 257 |
| 253 } // namespace WebCore | 258 } // namespace WebCore |
| 254 | 259 |
| 255 | 260 |
| 256 #endif // !defined(InspectorDebuggerAgent_h) | 261 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |