mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use net_traits::{LoadData, Metadata, ResponseSenders};
|
||||
use net_traits::{LoadData, Metadata, LoadConsumer};
|
||||
use net_traits::ProgressMsg::{Payload, Done};
|
||||
use mime_classifier::MIMEClassifier;
|
||||
use resource_task::{start_sending, start_sending_sniffed, ProgressSender};
|
||||
|
@ -43,7 +43,7 @@ fn read_all(reader: &mut File, progress_chan: &ProgressSender)
|
|||
}
|
||||
}
|
||||
|
||||
pub fn factory(load_data: LoadData, senders: ResponseSenders, classifier: Arc<MIMEClassifier>) {
|
||||
pub fn factory(load_data: LoadData, senders: LoadConsumer, classifier: Arc<MIMEClassifier>) {
|
||||
let url = load_data.url;
|
||||
assert!(&*url.scheme == "file");
|
||||
spawn_named("file_loader".to_owned(), move || {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue