mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replace usage of ResponseSenders by LoadConsumer
This commit is contained in:
parent
40ee41ca92
commit
c1f25bbfe4
8 changed files with 28 additions and 43 deletions
|
@ -203,20 +203,6 @@ pub enum CookieSource {
|
|||
NonHTTP,
|
||||
}
|
||||
|
||||
pub enum ResponseSenders {
|
||||
Channel(Sender<LoadResponse>),
|
||||
Listener(Box<AsyncResponseTarget+ Send>),
|
||||
}
|
||||
|
||||
impl ResponseSenders {
|
||||
pub fn from_consumer(consumer: LoadConsumer) -> ResponseSenders {
|
||||
match consumer {
|
||||
LoadConsumer::Channel(c) => ResponseSenders::Channel(c),
|
||||
LoadConsumer::Listener(l) => ResponseSenders::Listener(l),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Messages sent in response to a `Load` message
|
||||
#[derive(PartialEq,Debug)]
|
||||
pub enum ProgressMsg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue