mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
continue messageport, transferable, postmessage options
This commit is contained in:
parent
c3b17c1201
commit
2f8932a6a1
100 changed files with 2456 additions and 1171 deletions
|
@ -4,8 +4,9 @@
|
|||
|
||||
use crate::dom::bindings::refcounted::Trusted;
|
||||
use crate::dom::bindings::reflector::DomObject;
|
||||
use crate::dom::bindings::structuredclone::StructuredCloneData;
|
||||
use crate::script_runtime::CommonScriptMsg;
|
||||
use script_traits::StructuredSerializedData;
|
||||
use servo_url::ImmutableOrigin;
|
||||
|
||||
/// Messages used to control the worker event loops
|
||||
pub enum WorkerScriptMsg {
|
||||
|
@ -13,9 +14,9 @@ pub enum WorkerScriptMsg {
|
|||
Common(CommonScriptMsg),
|
||||
/// Message sent through Worker.postMessage
|
||||
DOMMessage {
|
||||
origin: String,
|
||||
data: StructuredCloneData,
|
||||
}
|
||||
origin: ImmutableOrigin,
|
||||
data: StructuredSerializedData,
|
||||
},
|
||||
}
|
||||
|
||||
pub struct SimpleWorkerErrorHandler<T: DomObject> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue