| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 virtual ScriptDebugServer& scriptDebugServer() = 0; | 169 virtual ScriptDebugServer& scriptDebugServer() = 0; |
| 170 | 170 |
| 171 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource, const String& condition = String()); | 171 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource, const String& condition = String()); |
| 172 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); | 172 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); |
| 173 | 173 |
| 174 // Async call stacks implementation | 174 // Async call stacks implementation |
| 175 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> currentAsyncStackTraceForConsol
e(); | 175 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> currentAsyncStackTraceForConsol
e(); |
| 176 static const int unknownAsyncOperationId; | 176 static const int unknownAsyncOperationId; |
| 177 int traceAsyncOperationStarting(const String& description); | 177 int traceAsyncOperationStarting(const String& description); |
| 178 void traceAsyncCallbackStarting(v8::Isolate*, int operationId); | 178 void traceAsyncCallbackStarting(int operationId); |
| 179 const AsyncCallChain* currentAsyncCallChain() const; | 179 const AsyncCallChain* currentAsyncCallChain() const; |
| 180 void traceAsyncCallbackCompleted(); | 180 void traceAsyncCallbackCompleted(); |
| 181 void traceAsyncOperationCompleted(int operationId); | 181 void traceAsyncOperationCompleted(int operationId); |
| 182 bool trackingAsyncCalls() const { return m_maxAsyncCallStackDepth; } | 182 bool trackingAsyncCalls() const { return m_maxAsyncCallStackDepth; } |
| 183 | 183 |
| 184 class AsyncCallTrackingListener : public WillBeGarbageCollectedMixin { | 184 class AsyncCallTrackingListener : public WillBeGarbageCollectedMixin { |
| 185 public: | 185 public: |
| 186 virtual ~AsyncCallTrackingListener() { } | 186 virtual ~AsyncCallTrackingListener() { } |
| 187 virtual void trace(Visitor*) { } | 187 virtual void trace(Visitor*) { } |
| 188 virtual void asyncCallTrackingStateChanged(bool tracking) = 0; | 188 virtual void asyncCallTrackingStateChanged(bool tracking) = 0; |
| 189 virtual void resetAsyncCallChains() = 0; | 189 virtual void resetAsyncOperations() = 0; |
| 190 }; | 190 }; |
| 191 void addAsyncCallTrackingListener(AsyncCallTrackingListener*); | 191 void addAsyncCallTrackingListener(AsyncCallTrackingListener*); |
| 192 void removeAsyncCallTrackingListener(AsyncCallTrackingListener*); | 192 void removeAsyncCallTrackingListener(AsyncCallTrackingListener*); |
| 193 | 193 |
| 194 protected: | 194 protected: |
| 195 explicit InspectorDebuggerAgent(InjectedScriptManager*); | 195 explicit InspectorDebuggerAgent(InjectedScriptManager*); |
| 196 | 196 |
| 197 virtual void startListeningScriptDebugServer() = 0; | 197 virtual void startListeningScriptDebugServer() = 0; |
| 198 virtual void stopListeningScriptDebugServer() = 0; | 198 virtual void stopListeningScriptDebugServer() = 0; |
| 199 virtual void muteConsole() = 0; | 199 virtual void muteConsole() = 0; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; | 295 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; |
| 296 unsigned m_nestedAsyncCallCount; | 296 unsigned m_nestedAsyncCallCount; |
| 297 bool m_performingAsyncStepIn; | 297 bool m_performingAsyncStepIn; |
| 298 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT
rackingListeners; | 298 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT
rackingListeners; |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace blink | 301 } // namespace blink |
| 302 | 302 |
| 303 | 303 |
| 304 #endif // InspectorDebuggerAgent_h | 304 #endif // InspectorDebuggerAgent_h |
| OLD | NEW |