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

Unified Diff: src/debug/debug.h

Issue 2623313005: [inspector] introduced debug::SetAsyncTaskListener (Closed)
Patch Set: added missing header Created 3 years, 11 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
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index ae3f48efd5e1af6d1374e754fbde7c89c60dc67f..310b4cd6981a5dac5c33a85f8c61a7237e3228b6 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -466,6 +466,8 @@ class Debug {
int NextAsyncTaskId(Handle<JSObject> promise);
+ void SetAsyncTaskListener(debug::AsyncTaskListener listener, void* data);
+
// Returns whether the operation succeeded. Compilation can only be triggered
// if a valid closure is passed as the second argument, otherwise the shared
// function needs to be compiled already.
@@ -661,6 +663,9 @@ class Debug {
v8::Debug::MessageHandler message_handler_;
+ debug::AsyncTaskListener async_task_listener_ = nullptr;
+ void* async_task_listener_data_ = nullptr;
+
static const int kQueueInitialSize = 4;
base::Semaphore command_received_; // Signaled for each command received.
LockingCommandMessageQueue command_queue_;
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698