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::Object> call
Frames, v8::Local<v8::Value> exception, const Vector<String>& hitBreakpoints, bo
ol isPromiseRejection) final; | 210 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Object> call
Frames, v8::Local<v8::Value> exception, const Vector<String>& hitBreakpoints, bo
ol 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 int m_recursionLevelForStepOut; | 284 int m_recursionLevelForStepOut; |
287 int m_recursionLevelForStepFrame; | 285 int m_recursionLevelForStepFrame; |
288 bool m_skipAllPauses; | 286 bool m_skipAllPauses; |
289 bool m_skipContentScripts; | 287 bool m_skipContentScripts; |
290 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 288 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
291 unsigned m_cachedSkipStackGeneration; | 289 unsigned m_cachedSkipStackGeneration; |
292 WillBeHeapHashSet<RawPtrWillBeWeakMember<AsyncCallTrackingListener>> m_async
CallTrackingListeners; | 290 WillBeHeapHashSet<RawPtrWillBeWeakMember<AsyncCallTrackingListener>> m_async
CallTrackingListeners; |
293 // This field must be destroyed before the listeners set above. | 291 // This field must be destroyed before the listeners set above. |
294 OwnPtrWillBeMember<V8AsyncCallTracker> m_v8AsyncCallTracker; | 292 OwnPtrWillBeMember<V8AsyncCallTracker> m_v8AsyncCallTracker; |
295 OwnPtrWillBeMember<PromiseTracker> m_promiseTracker; | 293 OwnPtrWillBeMember<PromiseTracker> m_promiseTracker; |
296 HashMap<String, String> m_editedScripts; | |
297 | 294 |
298 using AsyncOperationIdToAsyncCallChain = WillBeHeapHashMap<int, RefPtrWillBe
Member<AsyncCallChain>>; | 295 using AsyncOperationIdToAsyncCallChain = WillBeHeapHashMap<int, RefPtrWillBe
Member<AsyncCallChain>>; |
299 AsyncOperationIdToAsyncCallChain m_asyncOperations; | 296 AsyncOperationIdToAsyncCallChain m_asyncOperations; |
300 int m_lastAsyncOperationId; | 297 int m_lastAsyncOperationId; |
301 ListHashSet<int> m_asyncOperationNotifications; | 298 ListHashSet<int> m_asyncOperationNotifications; |
302 HashSet<int> m_asyncOperationBreakpoints; | 299 HashSet<int> m_asyncOperationBreakpoints; |
303 HashSet<int> m_pausingAsyncOperations; | 300 HashSet<int> m_pausingAsyncOperations; |
304 unsigned m_maxAsyncCallStackDepth; | 301 unsigned m_maxAsyncCallStackDepth; |
305 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; | 302 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; |
306 unsigned m_nestedAsyncCallCount; | 303 unsigned m_nestedAsyncCallCount; |
307 int m_currentAsyncOperationId; | 304 int m_currentAsyncOperationId; |
308 bool m_pendingTraceAsyncOperationCompleted; | 305 bool m_pendingTraceAsyncOperationCompleted; |
309 bool m_startingStepIntoAsync; | 306 bool m_startingStepIntoAsync; |
310 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; | 307 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; |
311 }; | 308 }; |
312 | 309 |
313 } // namespace blink | 310 } // namespace blink |
314 | 311 |
315 | 312 |
316 #endif // InspectorDebuggerAgent_h | 313 #endif // InspectorDebuggerAgent_h |
OLD | NEW |