Add blob loader

This commit is contained in:
Zhen Zhang 2016-06-01 10:09:07 +08:00
parent 1bc94c132e
commit 679cf0a5e2
6 changed files with 191 additions and 0 deletions

View file

@ -4,6 +4,7 @@
use ipc_channel::ipc::IpcSender;
use std::path::PathBuf;
use super::{LoadConsumer, LoadData};
use uuid::Uuid;
#[derive(Debug, Deserialize, Serialize)]
@ -29,6 +30,9 @@ pub enum FileManagerThreadMsg {
/// Delete the FileID entry
DeleteFileID(Uuid),
/// Load resource by Blob URL
LoadBlob(LoadData, LoadConsumer),
/// Shut down this thread
Exit,
}