mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
parent
e958d92be6
commit
4cf46bff2d
51 changed files with 97 additions and 137 deletions
|
@ -11,8 +11,7 @@ use net_traits::{Metadata, load_whole_resource, ResourceTask, PendingAsyncLoad};
|
|||
use net_traits::AsyncResponseTarget;
|
||||
use url::Url;
|
||||
|
||||
#[jstraceable]
|
||||
#[derive(PartialEq, Clone, Debug)]
|
||||
#[derive(JSTraceable, PartialEq, Clone, Debug)]
|
||||
pub enum LoadType {
|
||||
Image(Url),
|
||||
Script(Url),
|
||||
|
@ -33,14 +32,14 @@ impl LoadType {
|
|||
}
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable)]
|
||||
pub struct DocumentLoader {
|
||||
pub resource_task: ResourceTask,
|
||||
notifier_data: Option<NotifierData>,
|
||||
blocking_loads: Vec<LoadType>,
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable)]
|
||||
pub struct NotifierData {
|
||||
pub script_chan: Box<ScriptChan + Send>,
|
||||
pub pipeline: PipelineId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue