aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-01-25 10:44:28 -0500
committerJosh Matthews <josh@joshmatthews.net>2015-04-16 11:46:39 -0400
commit1644436557f8252368cc099d8d952d6e3796c989 (patch)
tree2ee7a14d7d14d0ffeaecffd2c2b79e05daef7122 /components/script/script_task.rs
parent7fddf4aa13e3480da16557442768b3125bdbfcb5 (diff)
downloadservo-1644436557f8252368cc099d8d952d6e3796c989.tar.gz
servo-1644436557f8252368cc099d8d952d6e3796c989.zip
Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 877289a27fd..b304a15afda 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -61,7 +61,7 @@ use msg::constellation_msg::{ConstellationChan};
use msg::constellation_msg::{LoadData, PipelineId, SubpageId, MozBrowserEvent, WorkerId};
use msg::constellation_msg::{Failure, WindowSizeData, PipelineExitType};
use msg::constellation_msg::Msg as ConstellationMsg;
-use net_traits::{ResourceTask, ControlMsg, LoadResponse};
+use net_traits::{ResourceTask, ControlMsg, LoadResponse, LoadConsumer};
use net_traits::LoadData as NetLoadData;
use net_traits::image_cache_task::ImageCacheTask;
use net_traits::storage_task::StorageTask;
@@ -1331,8 +1331,7 @@ impl ScriptTask {
preserved_headers: load_data.headers,
data: load_data.data,
cors: None,
- consumer: input_chan,
- })).unwrap();
+ }, LoadConsumer::Channel(input_chan))).unwrap();
let load_response = input_port.recv().unwrap();
script_chan.send(ScriptMsg::PageFetchComplete(id, subpage, load_response)).unwrap();