mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
add Blob URL store
This commit is contained in:
parent
4e277d74e8
commit
3d7ed42652
4 changed files with 71 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use app_units::Au;
|
||||
use blob_url_store::BlobURLStore;
|
||||
use devtools_traits::{ScriptToDevtoolsControlMsg, TimelineMarker, TimelineMarkerType, WorkerId};
|
||||
use dom::bindings::callback::ExceptionHandling;
|
||||
use dom::bindings::cell::DOMRefCell;
|
||||
|
@ -165,6 +166,9 @@ pub struct Window {
|
|||
scheduler_chan: IpcSender<TimerEventRequest>,
|
||||
timers: OneshotTimers,
|
||||
|
||||
/// Blob URL store
|
||||
blob_url_store: DOMRefCell<BlobURLStore>,
|
||||
|
||||
next_worker_id: Cell<WorkerId>,
|
||||
|
||||
/// For sending messages to the memory profiler.
|
||||
|
@ -1581,6 +1585,7 @@ impl Window {
|
|||
console: Default::default(),
|
||||
crypto: Default::default(),
|
||||
navigator: Default::default(),
|
||||
blob_url_store: DOMRefCell::new(BlobURLStore::new()),
|
||||
image_cache_thread: image_cache_thread,
|
||||
mem_profiler_chan: mem_profiler_chan,
|
||||
time_profiler_chan: time_profiler_chan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue