| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 FormData; |
| 54 class HTTPHeaderMap; |
| 53 class InjectedScriptManager; | 55 class InjectedScriptManager; |
| 54 class InspectorFrontend; | 56 class InspectorFrontend; |
| 55 class InstrumentingAgents; | 57 class InstrumentingAgents; |
| 56 class JSONObject; | 58 class JSONObject; |
| 59 class KURL; |
| 57 class ScriptArguments; | 60 class ScriptArguments; |
| 58 class ScriptCallStack; | 61 class ScriptCallStack; |
| 59 class ScriptDebugServer; | 62 class ScriptDebugServer; |
| 60 class ScriptRegexp; | 63 class ScriptRegexp; |
| 61 class ScriptSourceCode; | 64 class ScriptSourceCode; |
| 62 class ScriptValue; | 65 class ScriptValue; |
| 66 class ThreadableLoaderClient; |
| 67 class XMLHttpRequest; |
| 63 | 68 |
| 64 typedef String ErrorString; | 69 typedef String ErrorString; |
| 65 | 70 |
| 66 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>
, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand
Handler { | 71 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>
, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand
Handler { |
| 67 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; | 72 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; |
| 68 public: | 73 public: |
| 69 enum BreakpointSource { | 74 enum BreakpointSource { |
| 70 UserBreakpointSource, | 75 UserBreakpointSource, |
| 71 DebugCommandBreakpointSource, | 76 DebugCommandBreakpointSource, |
| 72 MonitorCommandBreakpointSource | 77 MonitorCommandBreakpointSource |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void didFireTimer(); | 143 void didFireTimer(); |
| 139 void didRequestAnimationFrame(Document*, int callbackId); | 144 void didRequestAnimationFrame(Document*, int callbackId); |
| 140 void didCancelAnimationFrame(Document*, int callbackId); | 145 void didCancelAnimationFrame(Document*, int callbackId); |
| 141 bool willFireAnimationFrame(Document*, int callbackId); | 146 bool willFireAnimationFrame(Document*, int callbackId); |
| 142 void didFireAnimationFrame(); | 147 void didFireAnimationFrame(); |
| 143 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL
istener*, bool useCapture); | 148 void didAddEventListener(EventTarget*, const AtomicString& eventType, EventL
istener*, bool useCapture); |
| 144 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve
ntListener*, bool useCapture); | 149 void didRemoveEventListener(EventTarget*, const AtomicString& eventType, Eve
ntListener*, bool useCapture); |
| 145 void didRemoveAllEventListeners(EventTarget*); | 150 void didRemoveAllEventListeners(EventTarget*); |
| 146 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); | 151 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); |
| 147 void didHandleEvent(); | 152 void didHandleEvent(); |
| 153 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); |
| 148 bool canBreakProgram(); | 154 bool canBreakProgram(); |
| 149 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); | 155 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); |
| 150 virtual void scriptExecutionBlockedByCSP(const String& directiveText); | 156 virtual void scriptExecutionBlockedByCSP(const String& directiveText); |
| 151 | 157 |
| 152 class Listener { | 158 class Listener { |
| 153 public: | 159 public: |
| 154 virtual ~Listener() { } | 160 virtual ~Listener() { } |
| 155 virtual void debuggerWasEnabled() = 0; | 161 virtual void debuggerWasEnabled() = 0; |
| 156 virtual void debuggerWasDisabled() = 0; | 162 virtual void debuggerWasDisabled() = 0; |
| 157 virtual void stepInto() = 0; | 163 virtual void stepInto() = 0; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 int m_skipStepInCount; | 237 int m_skipStepInCount; |
| 232 bool m_skipAllPauses; | 238 bool m_skipAllPauses; |
| 233 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 239 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
| 234 AsyncCallStackTracker m_asyncCallStackTracker; | 240 AsyncCallStackTracker m_asyncCallStackTracker; |
| 235 }; | 241 }; |
| 236 | 242 |
| 237 } // namespace WebCore | 243 } // namespace WebCore |
| 238 | 244 |
| 239 | 245 |
| 240 #endif // !defined(InspectorDebuggerAgent_h) | 246 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |