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

Unified Diff: src/debug/debug.h

Issue 2622253004: [inspector] introduced debug::SetBreakEventListener,SetExceptionEventListener (Closed)
Patch Set: ready for review 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') | src/inspector/v8-debugger.cc » ('J')
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 e136eb821bddc44285b6f688550023aee6478bc9..bbc6929a524eead07318e4880a69a2b940ff4fb2 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -286,7 +286,7 @@ class MessageImpl : public v8::Debug::Message {
};
// Details of the debug event delivered to the debug event listener.
-class EventDetailsImpl : public debug::EventDetails {
+class EventDetailsImpl : public v8::Debug::EventDetails {
public:
EventDetailsImpl(DebugEvent event,
Handle<JSObject> exec_state,
@@ -469,6 +469,9 @@ class Debug {
void SetAsyncTaskListener(debug::AsyncTaskListener listener, void* data);
void SetCompileEventListener(debug::CompileEventListener listener,
void* data);
+ void SetBreakEventListener(debug::BreakEventListener listener, void* data);
+ void SetExceptionEventListener(debug::ExceptionEventListener 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
@@ -683,6 +686,10 @@ class Debug {
void* async_task_listener_data_ = nullptr;
debug::CompileEventListener compile_event_listener_ = nullptr;
void* compile_event_listener_data_ = nullptr;
+ debug::BreakEventListener break_event_listener_ = nullptr;
+ void* break_event_listener_data_ = nullptr;
+ debug::ExceptionEventListener exception_event_listener_ = nullptr;
+ void* exception_event_listener_data_ = nullptr;
static const int kQueueInitialSize = 4;
base::Semaphore command_received_; // Signaled for each command received.
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | src/inspector/v8-debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698