summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
Commit message (Collapse)AuthorAgeFilesLines
* Disk cache: Make sure we don't overwrite external files when creating new ones.rvargas@google.com2008-08-233-2/+27
| | | | | | | TEST=unit test git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1270 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Delete all files from the cache folder, instead of only thervargas@google.com2008-08-221-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files created by the cache. I changed the code that deletes the cache files from the unit tests to use the same code used by the cache itself to discard old caches. However, said code performs a selective deletion of files, and leave anything that it doesn't know about on the folder, and then attempts to remove the folder (knowing that it will fail if there are extra files or directories there). That causes a problem with the unit tests, because some of the tests create an extra file in that folder, so the folder cannot be deleted. As a result, we start accumulating extra folders until we reach our pre-defined limit, and at that time the tests start to fail. We could modify the code to also delete this extra file, but given that the whole cache lives under a hidden folder, it makes sense to simplify the code and just delete every file when we want to discard an old file. So this means that if a user decides to write a file to that folder, we will delete it whenever we update the cache version, or when the user chooses to "Clear browsing data/ cache". Note that if the foreign object is a directory, we won't delete it and it will be moved aside. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1244 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: add a delay after TruncateData unit test to wait for IO completions.rvargas@google.com2008-08-211-0/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1200 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WaitForPendingIO to actually exit the wait at some point.rvargas@google.com2008-08-214-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1143 0039d316-1c4b-4281-b951-d872f2087c98
* Make the disk cache unit tests use some common code from the disk cache.rvargas@google.com2008-08-211-10/+11
| | | | | | | | In particular, this removes the last piece of code on the disk cache that uses SHFileOperation. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1135 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some more warnings.evanm@google.com2008-08-202-2/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1127 0039d316-1c4b-4281-b951-d872f2087c98
* Remove warnings for the net module.rvargas@google.com2008-08-192-3/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1067 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up warnings in net/avi@google.com2008-08-197-9/+11
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1048 0039d316-1c4b-4281-b951-d872f2087c98
* Second pass move the os dependent code apart on the disk cache.rvargas@google.com2008-08-1512-34/+261
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@960 0039d316-1c4b-4281-b951-d872f2087c98
* Large patch set (159 files total) to cleanup the includes.maruel@google.com2008-08-152-7/+11
| | | | | | | | | | - Slightly reduce the size of the generated .lib files ~3%. - Reduce the number of implicit and explicit atl and windows includes. hooray! - Help incremental build by reducing the number of unnecessary included files. - Split some template class in two, one base class for the common code and the specialization that inherits from the base class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
* Fix utilities that were broken by at_exit changes.rvargas@google.com2008-08-141-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@892 0039d316-1c4b-4281-b951-d872f2087c98
* Use %ls instead of %s in wprintf format strings for wchar_t fields.mmentovai@google.com2008-08-143-4/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
* Move remaining OS dependent bits from the main logic on the disk cache.rvargas@google.com2008-08-1319-150/+535
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@819 0039d316-1c4b-4281-b951-d872f2087c98
* Re submitting the histograms change (735)rvargas@google.com2008-08-124-0/+40
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@763 0039d316-1c4b-4281-b951-d872f2087c98
* Back off the histograms change.rvargas@google.com2008-08-124-40/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@741 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few histograms to the disk cache.rvargas@google.com2008-08-124-0/+40
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@735 0039d316-1c4b-4281-b951-d872f2087c98
* Extend disk cache unit tests to include reuse of internal entries.rvargas@google.com2008-08-081-11/+27
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@591 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using SHFileOperation from the disk cache code.rvargas@google.com2008-08-081-10/+16
| | | | | | | | | | | Using SHFileOperation to delete old cache files has the disadvantage that once in a while somebody decides to perform COM operations assuming STA, and that doesn't work with the worker pool. BUG=1314744 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@590 0039d316-1c4b-4281-b951-d872f2087c98
* If a disk cache entry is stored as an external file, and it is reused ↵rvargas@google.com2008-08-023-2/+43
| | | | | | | | | (open/truncate/write/close), the current cache size should be modified accordingly. I'm also bumping up the version number for the cache files, to force re-creation with this revision. BUG=1305909 TEST=Unit test. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291 0039d316-1c4b-4281-b951-d872f2087c98
* Change the order of functions on the cc file to follow the order of the ↵rvargas@google.com2008-07-313-726/+735
| | | | | | header. No actual code change. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak when simulating failures in unit tests.rvargas@google.com2008-07-301-1/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit tests to the disk cache to verify that a failure during cache ↵rvargas@google.com2008-07-304-39/+86
| | | | | | reinitialization is handled properly. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137 0039d316-1c4b-4281-b951-d872f2087c98
* Replace scoped_ptr with scoped_array.rvargas@google.com2008-07-302-2/+2
| | | | | | BUG=1291138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125 0039d316-1c4b-4281-b951-d872f2087c98
* Do not use RecycleOrDelete since it is not ready for prime-time.darin@google.com2008-07-301-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100 0039d316-1c4b-4281-b951-d872f2087c98
* Add net to the repository.initial.commit2008-07-2645-0/+9955
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14 0039d316-1c4b-4281-b951-d872f2087c98