diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-25 10:44:28 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-04-16 11:46:39 -0400 |
commit | 1644436557f8252368cc099d8d952d6e3796c989 (patch) | |
tree | 2ee7a14d7d14d0ffeaecffd2c2b79e05daef7122 /components/script/script_task.rs | |
parent | 7fddf4aa13e3480da16557442768b3125bdbfcb5 (diff) | |
download | servo-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.rs | 5 |
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(); |