mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Check in for task 1,4 and 5
Adding pipelineID to httpresponse message, clearner code for task1 Commit for Refactored task Unit tests Removing extra whitespaces. Removing extra whitespaces. Removing tabs whitespaces Making Code tidier. Style issues Fix Test-tidy Fixes
This commit is contained in:
parent
0d15101323
commit
b7de946205
13 changed files with 96 additions and 34 deletions
|
@ -383,10 +383,10 @@ pub enum ProgressMsg {
|
|||
}
|
||||
|
||||
/// Convenience function for synchronously loading a whole resource.
|
||||
pub fn load_whole_resource(resource_task: &ResourceTask, url: Url)
|
||||
pub fn load_whole_resource(resource_task: &ResourceTask, url: Url, pipeline_id: Option<PipelineId>)
|
||||
-> Result<(Metadata, Vec<u8>), String> {
|
||||
let (start_chan, start_port) = ipc::channel().unwrap();
|
||||
resource_task.send(ControlMsg::Load(LoadData::new(url, None),
|
||||
resource_task.send(ControlMsg::Load(LoadData::new(url, pipeline_id),
|
||||
LoadConsumer::Channel(start_chan))).unwrap();
|
||||
let response = start_port.recv().unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue