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