mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Add a dummy reconfigure reply in the thread actor
This commit is contained in:
parent
dbfa4f06b7
commit
04e085a4e5
2 changed files with 25 additions and 0 deletions
|
@ -77,6 +77,12 @@ struct EvaluateJSReply {
|
||||||
helperResult: Json,
|
helperResult: Json,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(RustcEncodable)]
|
||||||
|
struct SetPreferencesReply {
|
||||||
|
from: String,
|
||||||
|
updated: Vec<String>,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct ConsoleActor {
|
pub struct ConsoleActor {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub pipeline: PipelineId,
|
pub pipeline: PipelineId,
|
||||||
|
@ -237,6 +243,15 @@ impl Actor for ConsoleActor {
|
||||||
ActorMessageStatus::Processed
|
ActorMessageStatus::Processed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"setPreferences" => {
|
||||||
|
let msg = SetPreferencesReply {
|
||||||
|
from: self.name(),
|
||||||
|
updated: vec![],
|
||||||
|
};
|
||||||
|
stream.write_json_packet(&msg);
|
||||||
|
ActorMessageStatus::Processed
|
||||||
|
}
|
||||||
|
|
||||||
_ => ActorMessageStatus::Ignored
|
_ => ActorMessageStatus::Ignored
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,11 @@ struct ThreadResumedReply {
|
||||||
__type__: String,
|
__type__: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(RustcEncodable)]
|
||||||
|
struct ReconfigureReply {
|
||||||
|
from: String
|
||||||
|
}
|
||||||
|
|
||||||
pub struct ThreadActor {
|
pub struct ThreadActor {
|
||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
@ -74,6 +79,11 @@ impl Actor for ThreadActor {
|
||||||
ActorMessageStatus::Processed
|
ActorMessageStatus::Processed
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"reconfigure" => {
|
||||||
|
stream.write_json_packet(&ReconfigureReply { from: self.name() });
|
||||||
|
ActorMessageStatus::Processed
|
||||||
|
}
|
||||||
|
|
||||||
_ => ActorMessageStatus::Ignored,
|
_ => ActorMessageStatus::Ignored,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue