mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix FileAPI's refcount implementation
This commit is contained in:
parent
81a1e28da1
commit
49ed453a59
3 changed files with 119 additions and 90 deletions
|
@ -139,18 +139,15 @@ pub enum FileManagerThreadMsg {
|
|||
/// as part of a valid Blob URL
|
||||
AddSlicedURLEntry(SelectedFileId, RelativePos, IpcSender<Result<SelectedFileId, BlobURLStoreError>>, FileOrigin),
|
||||
|
||||
/// Revoke Blob URL and send back the acknowledgement
|
||||
RevokeBlobURL(SelectedFileId, FileOrigin, IpcSender<Result<(), BlobURLStoreError>>),
|
||||
|
||||
/// Decrease reference count and send back the acknowledgement
|
||||
DecRef(SelectedFileId, FileOrigin, IpcSender<Result<(), BlobURLStoreError>>),
|
||||
|
||||
/// Increase reference count
|
||||
IncRef(SelectedFileId, FileOrigin),
|
||||
|
||||
/// Activate an internal FileID so it becomes valid as part of a Blob URL
|
||||
ActivateBlobURL(SelectedFileId, IpcSender<Result<(), BlobURLStoreError>>, FileOrigin),
|
||||
|
||||
/// Revoke Blob URL and send back the acknowledgement
|
||||
RevokeBlobURL(SelectedFileId, FileOrigin, IpcSender<Result<(), BlobURLStoreError>>),
|
||||
|
||||
/// Shut down this thread
|
||||
Exit,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue