| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ThreadDebugger_h | 5 #ifndef ThreadDebugger_h |
| 6 #define ThreadDebugger_h | 6 #define ThreadDebugger_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/Timer.h" | 9 #include "platform/Timer.h" |
| 10 #include "platform/UserGestureIndicator.h" | 10 #include "platform/UserGestureIndicator.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static void didExecuteScript(v8::Isolate*); | 32 static void didExecuteScript(v8::Isolate*); |
| 33 static void idleStarted(v8::Isolate*); | 33 static void idleStarted(v8::Isolate*); |
| 34 static void idleFinished(v8::Isolate*); | 34 static void idleFinished(v8::Isolate*); |
| 35 | 35 |
| 36 void asyncTaskScheduled(const String& taskName, void* task, bool recurring); | 36 void asyncTaskScheduled(const String& taskName, void* task, bool recurring); |
| 37 void asyncTaskCanceled(void* task); | 37 void asyncTaskCanceled(void* task); |
| 38 void allAsyncTasksCanceled(); | 38 void allAsyncTasksCanceled(); |
| 39 void asyncTaskStarted(void* task); | 39 void asyncTaskStarted(void* task); |
| 40 void asyncTaskFinished(void* task); | 40 void asyncTaskFinished(void* task); |
| 41 unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessag
e, v8::Local<v8::Value> exception, std::unique_ptr<SourceLocation>); | 41 unsigned promiseRejected(v8::Local<v8::Context>, const String16& errorMessag
e, v8::Local<v8::Value> exception, std::unique_ptr<SourceLocation>); |
| 42 void promiseRejectionRevoked(v8::Local<v8::Context>, unsigned promiseRejecti
onId); |
| 42 | 43 |
| 43 // V8DebuggerClient implementation. | 44 // V8DebuggerClient implementation. |
| 44 void beginUserGesture() override; | 45 void beginUserGesture() override; |
| 45 void endUserGesture() override; | 46 void endUserGesture() override; |
| 46 String16 valueSubtype(v8::Local<v8::Value>) override; | 47 String16 valueSubtype(v8::Local<v8::Value>) override; |
| 47 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; | 48 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; |
| 48 bool isExecutionAllowed() override; | 49 bool isExecutionAllowed() override; |
| 49 double currentTimeMS() override; | 50 double currentTimeMS() override; |
| 50 bool isInspectableHeapObject(v8::Local<v8::Object>) override; | 51 bool isInspectableHeapObject(v8::Local<v8::Object>) override; |
| 51 void enableAsyncInstrumentation() override; | 52 void enableAsyncInstrumentation() override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 79 bool m_asyncInstrumentationEnabled; | 80 bool m_asyncInstrumentationEnabled; |
| 80 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; | 81 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; |
| 81 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; | 82 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; |
| 82 Vector<void*> m_timerData; | 83 Vector<void*> m_timerData; |
| 83 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; | 84 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace blink | 87 } // namespace blink |
| 87 | 88 |
| 88 #endif // ThreadDebugger_h | 89 #endif // ThreadDebugger_h |
| OLD | NEW |