2002-06-07  Kenneth Kocienda  <kocienda@apple.com>
2002-06-07  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Darin Adler

        Fix for this bug:

        Radar 2948819 (Disk cache emptying can be cut off by quitting program)

        We kick a thread to delete the disk cache (in order for the cache emptying
        function to return immediately). This involves moving the disk cache
        directory aside and creating a new (empty) disk cache directory. If a user
        quits the apps before the aside directory is completely deleted, it is
        orphaned.

        This patch does a check upon next startup for such orphaned files and
        resumes the delete operation.

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileDatabase open])
        * Misc.subproj/IFNSFileManagerExtensions.h:
        * Misc.subproj/IFNSFileManagerExtensions.m:
        (-[NSFileManager _IF_deleteBackgroundRemoveLeftoverFiles:])


git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@1302 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ondra-novak/blink,modulexcite/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,primiano/blink-gitcs,smishenk/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,nwjs/blink,ondra-novak/blink,ondra-novak/blink,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,primiano/blink-gitcs,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,hgl888/blink-crosswalk-efl,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,hgl888/blink-crosswalk-efl,primiano/blink-gitcs,modulexcite/blink,hgl888/blink-crosswalk-efl,primiano/blink-gitcs,primiano/blink-gitcs,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,primiano/blink-gitcs,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,primiano/blink-gitcs,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,modulexcite/blink,nwjs/blink,nwjs/blink,kurli/blink-crosswalk,primiano/blink-gitcs,PeterWangIntel/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,jtg-gg/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,nwjs/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,nwjs/blink,primiano/blink-gitcs,nwjs/blink,Bysmyyr/blink-crosswalk,ondra-novak/blink,ondra-novak/blink,ondra-novak/blink,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk