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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum
breakReason, PassRefPtr<JSONObject> data); | 140 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum
breakReason, PassRefPtr<JSONObject> data); |
141 void didFireTimer(); | 141 void didFireTimer(); |
142 void didHandleEvent(); | 142 void didHandleEvent(); |
143 bool canBreakProgram(); | 143 bool canBreakProgram(); |
144 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); | 144 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); |
145 void scriptExecutionBlockedByCSP(const String& directiveText); | 145 void scriptExecutionBlockedByCSP(const String& directiveText); |
146 void willCallFunction(ExecutionContext*, const DevToolsFunctionInfo&); | 146 void willCallFunction(ExecutionContext*, const DevToolsFunctionInfo&); |
147 void didCallFunction(); | 147 void didCallFunction(); |
148 void willEvaluateScript(LocalFrame*, const String& url, int lineNumber); | 148 void willEvaluateScript(LocalFrame*, const String& url, int lineNumber); |
149 void didEvaluateScript(); | 149 void didEvaluateScript(); |
150 bool getEditedScript(const String& url, String* content); | |
151 | 150 |
152 class CORE_EXPORT Listener : public WillBeGarbageCollectedMixin { | 151 class CORE_EXPORT Listener : public WillBeGarbageCollectedMixin { |
153 public: | 152 public: |
154 virtual ~Listener() { } | 153 virtual ~Listener() { } |
155 virtual void debuggerWasEnabled() = 0; | 154 virtual void debuggerWasEnabled() = 0; |
156 virtual void debuggerWasDisabled() = 0; | 155 virtual void debuggerWasDisabled() = 0; |
157 virtual bool canPauseOnPromiseEvent() = 0; | 156 virtual bool canPauseOnPromiseEvent() = 0; |
158 virtual void didCreatePromise() = 0; | 157 virtual void didCreatePromise() = 0; |
159 virtual void didResolvePromise() = 0; | 158 virtual void didResolvePromise() = 0; |
160 virtual void didRejectPromise() = 0; | 159 virtual void didRejectPromise() = 0; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 virtual void muteConsole() = 0; | 196 virtual void muteConsole() = 0; |
198 virtual void unmuteConsole() = 0; | 197 virtual void unmuteConsole() = 0; |
199 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 198 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
200 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; | 199 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; |
201 | 200 |
202 virtual void enable(); | 201 virtual void enable(); |
203 virtual void disable(); | 202 virtual void disable(); |
204 | 203 |
205 void didContinue() final; | 204 void didContinue() final; |
206 void reset(); | 205 void reset(); |
207 void resetModifiedSources(); | |
208 | 206 |
209 private: | 207 private: |
210 bool checkEnabled(ErrorString*); | 208 bool checkEnabled(ErrorString*); |
211 | 209 |
212 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> callF
rames, v8::Local<v8::Value> exception, const Vector<String>& hitBreakpoints, boo
l isPromiseRejection) final; | 210 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> callF
rames, v8::Local<v8::Value> exception, const Vector<String>& hitBreakpoints, boo
l isPromiseRejection) final; |
213 | 211 |
214 SkipPauseRequest shouldSkipExceptionPause(); | 212 SkipPauseRequest shouldSkipExceptionPause(); |
215 SkipPauseRequest shouldSkipStepPause(); | 213 SkipPauseRequest shouldSkipStepPause(); |
216 | 214 |
217 void schedulePauseOnNextStatementIfSteppingInto(); | 215 void schedulePauseOnNextStatementIfSteppingInto(); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 int m_recursionLevelForStepOut; | 283 int m_recursionLevelForStepOut; |
286 int m_recursionLevelForStepFrame; | 284 int m_recursionLevelForStepFrame; |
287 bool m_skipAllPauses; | 285 bool m_skipAllPauses; |
288 bool m_skipContentScripts; | 286 bool m_skipContentScripts; |
289 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 287 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
290 unsigned m_cachedSkipStackGeneration; | 288 unsigned m_cachedSkipStackGeneration; |
291 WillBeHeapHashSet<RawPtrWillBeWeakMember<AsyncCallTrackingListener>> m_async
CallTrackingListeners; | 289 WillBeHeapHashSet<RawPtrWillBeWeakMember<AsyncCallTrackingListener>> m_async
CallTrackingListeners; |
292 // This field must be destroyed before the listeners set above. | 290 // This field must be destroyed before the listeners set above. |
293 OwnPtrWillBeMember<V8AsyncCallTracker> m_v8AsyncCallTracker; | 291 OwnPtrWillBeMember<V8AsyncCallTracker> m_v8AsyncCallTracker; |
294 OwnPtrWillBeMember<PromiseTracker> m_promiseTracker; | 292 OwnPtrWillBeMember<PromiseTracker> m_promiseTracker; |
295 HashMap<String, String> m_editedScripts; | |
296 | 293 |
297 using AsyncOperationIdToAsyncCallChain = WillBeHeapHashMap<int, RefPtrWillBe
Member<AsyncCallChain>>; | 294 using AsyncOperationIdToAsyncCallChain = WillBeHeapHashMap<int, RefPtrWillBe
Member<AsyncCallChain>>; |
298 AsyncOperationIdToAsyncCallChain m_asyncOperations; | 295 AsyncOperationIdToAsyncCallChain m_asyncOperations; |
299 int m_lastAsyncOperationId; | 296 int m_lastAsyncOperationId; |
300 ListHashSet<int> m_asyncOperationNotifications; | 297 ListHashSet<int> m_asyncOperationNotifications; |
301 HashSet<int> m_asyncOperationBreakpoints; | 298 HashSet<int> m_asyncOperationBreakpoints; |
302 HashSet<int> m_pausingAsyncOperations; | 299 HashSet<int> m_pausingAsyncOperations; |
303 unsigned m_maxAsyncCallStackDepth; | 300 unsigned m_maxAsyncCallStackDepth; |
304 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; | 301 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; |
305 unsigned m_nestedAsyncCallCount; | 302 unsigned m_nestedAsyncCallCount; |
306 int m_currentAsyncOperationId; | 303 int m_currentAsyncOperationId; |
307 bool m_pendingTraceAsyncOperationCompleted; | 304 bool m_pendingTraceAsyncOperationCompleted; |
308 bool m_startingStepIntoAsync; | 305 bool m_startingStepIntoAsync; |
309 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; | 306 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; |
310 }; | 307 }; |
311 | 308 |
312 } // namespace blink | 309 } // namespace blink |
313 | 310 |
314 | 311 |
315 #endif // InspectorDebuggerAgent_h | 312 #endif // InspectorDebuggerAgent_h |
OLD | NEW |