Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.h

Issue 2873713002: [DevTools] added creation stack for event listeners without scheduled stack
Patch Set: added a test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/ThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.h b/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
index 7b1cf23a985a0b9dc240544697736bbac9765cc4..1d0dd7ce07e01cb2004ae6ad8515764bf7c9764e 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.h
@@ -45,6 +45,7 @@ class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient,
void AllAsyncTasksCanceled();
void AsyncTaskStarted(void* task);
void AsyncTaskFinished(void* task);
+ bool IsRunningAsyncTask() const { return current_async_tasks_; }
unsigned PromiseRejected(v8::Local<v8::Context>,
const String& error_message,
v8::Local<v8::Value> exception,
@@ -110,6 +111,8 @@ class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient,
Vector<v8_inspector::V8InspectorClient::TimerCallback> timer_callbacks_;
Vector<void*> timer_data_;
std::unique_ptr<UserGestureIndicator> user_gesture_indicator_;
+
+ int current_async_tasks_ = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698