Skip to content
  • beidson@apple.com's avatar
    Reviewed and landed by Brady Eidson. · c763e4c4
    beidson@apple.com authored
    Source/WebCore: 
    
    Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
    Add WebKit1 API to view and delete local storage
    https://bugs.webkit.org/show_bug.cgi?id=51878
    
    Created StorageTracker as a central point for tracking and deleting LocalStorage per origin.
    StorageTracker maintains its own database of origin identifiers and backing db paths,
    and this allows it to contain more relational data in the future, like variable quotas per origin.
    
    On initialization, StorageTracker syncs its database with LocalStorage files on disk. It adds
    an origin entry when StorageAreaSync performs a first sync for an origin.
    
    All StorageTracker file operations are performed on one background thread with a task queue.
    
    Tests: storage/domstorage/localstorage/storagetracker/storage-tracker-1-prepare.html
           storage/domstorage/localstorage/storagetracker/storage-tracker-2-create.html
           storage/domstorage/localstorage/storagetracker/storage-tracker-3-delete-all.html
           storag...
    c763e4c4