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
cbiesinger%web.de
30746ffb5c
Bug 266051 Remove init and shutdown from interface nsICacheService
...
r=darin sr=bz
git-svn-id: svn://10.0.0.236/trunk@164712 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-31 21:58:51 +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
gordon%netscape.com
e07a0ba8a9
Fix bug 105344 "Memory cache should be based on amount of physical RAM"
...
This allows the cache to use a lot more memory than previously.
r=saari, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@141677 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 05:15:48 +00:00
darin%netscape.com
2b1d90b6ed
modifications for bug 176919 "async streams" r=dougt,gordon sr=sspitzer a=valeski,asa
...
git-svn-id: svn://10.0.0.236/trunk@136572 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 02:15:14 +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
darin%netscape.com
69fdc31f3f
fixes bug 136210 "cannot view any https urls when memory cache size is set to 0"
...
r=beard sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@122574 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:05:53 +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
gordon%netscape.com
38ed8264eb
Fix bug 97620 [r=rpotts, sr=brendan/ben] Added code to doom and clear
...
active cache entries when devices are shutdown.
Fix bug 88768 [a=nisheeth], fixing unary operator usage in nsCacheEntryDescriptor.cpp.
git-svn-id: svn://10.0.0.236/trunk@103015 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-17 20:47:09 +00:00
gordon%netscape.com
8609b55dfc
For bugscape bug 6985. Enabling cache support for dynamically switching profiles. r=ccarlen, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@101242 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 00:01:01 +00:00
darin%netscape.com
59d5a4317d
Fixes bug 85054 "Hard Drive grinds when disk cache set to zero."
...
patch=gordon, r=gagan, sr=darin
git-svn-id: svn://10.0.0.236/trunk@98119 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 01:30:26 +00:00
danm%netscape.com
f62f90cf24
nsCacheEntry now asks nsCacheService to release its data, and therefore no longer holds a strong ref to its event queue. bugscape bug 4890, bugzilla bug 84247 code=gordon,me r=beard,sfraser a=clayton,chofmann
...
git-svn-id: svn://10.0.0.236/trunk@96483 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 02:30:07 +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
26f1643527
Fix for bug 78479 "frequent hang on quit after long use" and bug 79241 "Crash quiting the app in the cache". sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@94171 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 00:13:21 +00:00
gordon%netscape.com
a3fc07f496
Fix for bug 76661, "Recursive attempt to lock cache entry". r=dougt, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@93760 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 02:35:26 +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
1e0c0b4023
Landing DISKCACHE1_BRANCH (part Deux) which enables dynamic eviction and efficient cache miss detection for the disk cache (bug 72506) r=beard, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@91234 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:30:45 +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
mkaply%us.ibm.com
e324a073a6
#73191
...
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately
git-svn-id: svn://10.0.0.236/trunk@90446 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:21:53 +00:00
pavlov%netscape.com
892c7ce230
fix for windows crash on profile startup, initalize disk cache lazily. bug 73197. r=beard, gordon sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@90272 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:06:39 +00:00
mkaply%us.ibm.com
4d20351680
fix indentation
...
git-svn-id: svn://10.0.0.236/trunk@90087 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 05:27:32 +00:00
mkaply%us.ibm.com
a29632f207
Stupid mistake - used CRT_CALLBACK instead of CRT_CALL
...
git-svn-id: svn://10.0.0.236/trunk@90086 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 05:23:37 +00:00
mkaply%us.ibm.com
e224862c37
#72075
...
r=jag
OS/2 TB breakage on new cache
git-svn-id: svn://10.0.0.236/trunk@90078 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:20:20 +00:00
gordon%netscape.com
7b8581452d
Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default.
...
git-svn-id: svn://10.0.0.236/trunk@89933 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 22:42:03 +00:00
gordon%netscape.com
8d57282cf0
[not part of build]
...
Implement simple LRU eviction mechanism for nsMemoryCacheDevice.
Add cleanup code to nsCacheService to fix intermittent crashes on shutdown.
Calculate MetaData size, and update field in nsCacheEntry.
Begin implmentation of nsICacheDeviceInfo in nsMemoryCacheDevice for about:cache.
Added various statistics to nsCacheService and nsMemoryCacheDevice.
git-svn-id: svn://10.0.0.236/trunk@89508 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:43:17 +00:00
beard%netscape.com
0cea9abfef
[not part of build] Use nsIObserverService to shut down cache before XPCOM is shut down. r=gordon
...
git-svn-id: svn://10.0.0.236/trunk@89420 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:59:43 +00:00
beard%netscape.com
ee5b3ba301
[not part of build] renamed DoomEntry_Internal to DoomEntry_Locked, made public for use by cache devices.
...
git-svn-id: svn://10.0.0.236/trunk@89170 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:42:19 +00:00
beard%netscape.com
1c5610f321
[not part of build] Implemented nsCacheEntryDescriptor::GetFile().
...
git-svn-id: svn://10.0.0.236/trunk@88984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:22:18 +00:00
gordon%netscape.com
94bca0664c
[not part of build]
...
Added conditional deletion of mLock and mCondVar to nsCacheRequest destructor.
Added nsCacheServide::NotifyListener() to called cache clients' OnDescriptorAvailable() method for AsyncOpenCacheEntry().
Added ProcessPendingRequests() to process requests on CloseDescriptor, ValidateEntry, and DoomEntry.
Rough cut of AsyncOpenCacheEntry is in place, but needs testing.
git-svn-id: svn://10.0.0.236/trunk@88539 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 10:45:33 +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
gordon%netscape.com
3631c00985
[not part of build] Changed nsCacheEntry data members from PRTime to PRUint32. Changed //** comments to // XXX to make it easier to search for 'to do' items. Added dooming of expired entries.
...
git-svn-id: svn://10.0.0.236/trunk@88499 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-04 00:11:30 +00:00
gordon%netscape.com
383d3db210
[not part of build]
...
Fixed cache meta data. Implemented eviction list for memory cache device. Worked on entry deactivation, validation, and doom.
git-svn-id: svn://10.0.0.236/trunk@88364 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 01:51:41 +00:00
gordon%netscape.com
9bbc213f93
[not part of build]
...
Changed OnDataSizeChanged() to OnDataSizeChange() and added a deltaSize parameter. Added OnDataSizeChange() method on nsCacheService so we can grab the service lock and bind the entry if necessary.
Commented out the implementation of nsCacheEntryDescriptor::AsyncWrite(), since we are not planning to provide it.
git-svn-id: svn://10.0.0.236/trunk@88275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 05:01:43 +00:00
beard%netscape.com
ff1dfa18a0
[not part of build] enforce nsCacheAccessMode when creating transports.
...
git-svn-id: svn://10.0.0.236/trunk@88183 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 10:04:27 +00:00
gordon%netscape.com
19a0033de2
Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods.
...
git-svn-id: svn://10.0.0.236/trunk@88167 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:10:43 +00:00
gordon%netscape.com
8b61a442bc
Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
...
git-svn-id: svn://10.0.0.236/trunk@88063 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:35:53 +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
e1904579fd
Updated methods for addition of nsCacheSession.
...
git-svn-id: svn://10.0.0.236/trunk@87984 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 14:55:58 +00:00
gordon%netscape.com
c1cbcd4c4c
Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin.
...
git-svn-id: svn://10.0.0.236/trunk@87862 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 01:02:37 +00:00
gordon%netscape.com
cfbd099fb3
Rough first cut of cache service and memory object cache. It currently builds on linux.
...
git-svn-id: svn://10.0.0.236/trunk@87809 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 13:18:01 +00:00