aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/methods.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-11-17 12:48:25 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-11-17 15:59:59 -0800
commit1dfb125cc95d37f4d46e5f852639274787684623 (patch)
treec917bd4db40648a3d5f5a61f80b1876896d6fb78 /components/net/fetch/methods.rs
parentb5a205d92e3c78c71598795317d601f39152f314 (diff)
downloadservo-1dfb125cc95d37f4d46e5f852639274787684623.tar.gz
servo-1dfb125cc95d37f4d46e5f852639274787684623.zip
Fetch cancellation: Add cancel_chan to FetchContext
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r--components/net/fetch/methods.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index f43cd591636..789501fa322 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -15,6 +15,7 @@ use hyper::header::{Header, HeaderFormat, HeaderView, Headers, Referer as Refere
use hyper::method::Method;
use hyper::mime::{Mime, SubLevel, TopLevel};
use hyper::status::StatusCode;
+use ipc_channel::ipc::IpcReceiver;
use mime_guess::guess_mime_type;
use net_traits::{FetchTaskTarget, NetworkError, ReferrerPolicy};
use net_traits::request::{CredentialsMode, Destination, Referrer, Request, RequestMode};
@@ -43,6 +44,7 @@ pub struct FetchContext {
pub user_agent: Cow<'static, str>,
pub devtools_chan: Option<Sender<DevtoolsControlMsg>>,
pub filemanager: FileManager,
+ pub cancel_chan: Option<IpcReceiver<()>>,
}
pub type DoneChannel = Option<(Sender<Data>, Receiver<Data>)>;