14 Commits

Author SHA1 Message Date
bryner%brianryner.com
2040b1004d Change cache interfaces to use ACString for the key. Bug 277627, r+sr=darin.
git-svn-id: svn://10.0.0.236/trunk@167653 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-13 03:25:28 +00:00
gerv%gerv.net
586f796c2a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
dbaron%dbaron.org
855a1b80fa Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136019 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 22:35:09 +00:00
darin%netscape.com
7f9fc38dbd landing gordon's patch for bug 81724 - disk cache needs stream wrappers
(disk cache phase 3) patch=gordon r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@126569 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 01:13:29 +00:00
gordon%netscape.com
0c5bd606b5 Fix bug 111049 "add attribute to nsICacheSession to detect device availability". sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112609 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:25:25 +00:00
darin%netscape.com
225b5621ea Fixes bug 87710 (part 1) "Image cache does not re-validate images before reusing them"
r=bbaetz, sr=jst


git-svn-id: svn://10.0.0.236/trunk@97932 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 07:06:52 +00:00
gordon%netscape.com
7a7e4f8f3a Fix bug 79585 "need non-blocking OpenCacheEntry() for HTTP", r=pavlov, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@94320 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-09 03:36:00 +00:00
gordon%netscape.com
7f9f297b86 Fix bug 75171 "implement nsCacheSession::EvictEntries", sr = darin.
git-svn-id: svn://10.0.0.236/trunk@91734 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 08:14:08 +00:00
gordon%netscape.com
473ba08356 Land DISKCACHE1_BRANCH, implementing first draft of cache map file for more efficient eviction and cache miss detection. Fixed some problems with overeager setting of lastModified time stamp. Read cache enable prefs on startup. r=beard, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@90752 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:54:58 +00:00
gordon%netscape.com
95787ca5fb [not part of build]
Removed return codes for nsCacheEntryHashtable::RemoveEntry() and nsCacheDevice::DoomEntry().

Added doomEntriesIfExpired flag to nsCacheSession and nsCacheRequest, and check the flag in nsCacheService::ActivateEntry()

Added lastModified attribute to nsCacheEntryDescriptor and mLastModified data member to nsCacheEntry.  mLastModified is updated when data or meta data is changed.

Deque requests if descriptor allocation fails.  Delete requests after calling proxy in async open cache entry path.

Cleaned up the logic of doom.


git-svn-id: svn://10.0.0.236/trunk@88929 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:37:00 +00:00
gordon%netscape.com
057243bb88 [not part of build]
Fix race condition in nsCacheRequest WaitForValidation().

Force !streamBased to set storagePolicy to nsICache:STORE_IN_MEMORY when creating nsCacheSessions.

Fix ProcessRequest() to refrain from creating a descriptor for ACCESS_READ requests when no entry is found (found by pavlov).


git-svn-id: svn://10.0.0.236/trunk@88626 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:26:13 +00:00
gordon%netscape.com
0ea21fde31 [not part of build]
Restructured open cache entry code in preparation for async implementation, to better share code with synchronous version.

Changed nsCacheRequest, nsCacheEntry, nsCacheEntryDescriptor to inherit from PRCList rather than include mListLink member, and removed extraneous GetListNode/GetInstance methods.

Consolidated mAccessRequested, mStreamBased, and mStoragePolicy into a single PRUint32 in nsCacheRequest.  Added PRLock, PRCondVar, and a 'wait for validation' flag, used for synchronously opening cache entries.  Added accessor functions for these "attributes".

Record current event queue for asychronous requests to be used with GetProxyForObject().  Removed mRequestThread.


git-svn-id: svn://10.0.0.236/trunk@88535 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 07:17:58 +00:00
beard%netscape.com
d908473d6c [not part of build] I changed all the declaration of all PRInt32 storagePolicy variables to nsCacheStoragePolicy.
git-svn-id: svn://10.0.0.236/trunk@87994 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 15:53:31 +00:00
gordon%netscape.com
f724c5e169 Adding files for nsCacheSession implementation.
git-svn-id: svn://10.0.0.236/trunk@87979 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 14:40:22 +00:00