Dummy handler for getAvailableEventBreakpoints in thread actor

Co-authored-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2025-06-24 19:13:50 +10:00
parent 5f105f69e8
commit d58912cbdf

View file

@ -93,6 +93,12 @@ pub enum Location {
},
}
#[derive(Serialize)]
struct GetAvailableEventBreakpointsReply {
from: String,
value: Vec<()>,
}
impl Actor for ThreadActor {
fn name(&self) -> String {
self.name.clone()
@ -160,6 +166,18 @@ impl Actor for ThreadActor {
let _ = stream.write_json_packet(&msg);
ActorMessageStatus::Processed
},
// Client wants to know what Event Listener Breakpoints are available for this thread.
"getAvailableEventBreakpoints" => {
let msg = GetAvailableEventBreakpointsReply {
from: self.name(),
// TODO: populate this.
value: vec![],
};
let _ = stream.write_json_packet(&msg);
ActorMessageStatus::Processed
},
_ => ActorMessageStatus::Ignored,
})
}