diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-09 14:09:15 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-09 14:09:29 +0530 |
commit | ad16c52a6b9b29867518beea161a5bb876086df5 (patch) | |
tree | fe7f79fe078d2964e2f3a3ddbb2fa2c78825fb99 /components/script_traits/lib.rs | |
parent | 15b508ac10d0e98ba10474b6ab091017ae95804e (diff) | |
download | servo-ad16c52a6b9b29867518beea161a5bb876086df5.tar.gz servo-ad16c52a6b9b29867518beea161a5bb876086df5.zip |
Allow passing a method, request body, and headers to the pipeline in LoadUrlMsg
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index d5efa73af0f..2960fb7ea74 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -21,12 +21,11 @@ extern crate serialize; use devtools_traits::DevtoolsControlChan; use servo_msg::constellation_msg::{ConstellationChan, PipelineId, Failure, WindowSizeData}; -use servo_msg::constellation_msg::SubpageId; +use servo_msg::constellation_msg::{LoadData, SubpageId}; use servo_msg::compositor_msg::ScriptListener; use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::ResourceTask; use std::any::Any; -use url::Url; use geom::point::Point2D; @@ -42,7 +41,7 @@ pub struct NewLayoutInfo { /// Messages sent from the constellation to the script task pub enum ConstellationControlMsg { /// Loads a new URL on the specified pipeline. - LoadMsg(PipelineId, Url), + LoadMsg(PipelineId, LoadData), /// Gives a channel and ID to a layout task, as well as the ID of that layout's parent AttachLayoutMsg(NewLayoutInfo), /// Window resized. Sends a DOM event eventually, but first we combine events. |