Commit Graph

669 Commits

Author SHA1 Message Date
darin%netscape.com
bb68f622b7 fixes bug 161417 - recent netwerk checkin upped warning count by 4
r=dougt sr=alecf
2002-08-12 14:25:40 +00:00
seawood%netscape.com
322da773fb Removing old nmake build makefiles. Bug #158528 r=pavlov 2002-08-10 07:55:43 +00:00
mkaply%us.ibm.com
f22650c3cf OS/2 bustage 2002-08-07 11:01:59 +00:00
darin%netscape.com
f711dd8a88 fixing planetoid (mach-o) bustage... GCC 2.95.2 seems awfully picky! 2002-08-07 02:17:48 +00:00
darin%netscape.com
41f38a0b78 landing gordon's patch for bug 81724 - disk cache needs stream wrappers
(disk cache phase 3) patch=gordon r=dougt sr=darin
2002-08-07 01:13:29 +00:00
bryner%netscape.com
caa52be426 Remove obsolete _IMPL_NS_NET and NS_NET defines (bug 159887). r=cls, sr=bzbarsky, a=asa. 2002-07-30 02:25:08 +00:00
darin%netscape.com
26c35662cc fixes bug 136210 "cannot view any https urls when memory cache size is set to 0"
r=beard sr=rpotts
2002-06-03 20:05:53 +00:00
dougt%netscape.com
c683a217ab Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2002-05-15 18:55:21 +00:00
bzbarsky%mit.edu
5915792ecd Bug 142135 -- make cacheToken QI to nsICacheEntryInfo. Patch by
Antonio.Xu <antonio.xu@sun.com>, r=bzbarsky, sr=darin
2002-05-13 03:21:07 +00:00
gordon%netscape.com
2f669772d6 fix for bug 91795 "large downloads cause mozilla to consume too much memory".
Changed OnDataSizeChange() to abort when entry size exceeds cache capacity.
r=dougt, sr=darin.
2002-05-10 23:44:53 +00:00
darin%netscape.com
6fd5862e6e fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf
2002-05-07 23:07:19 +00:00
gordon%netscape.com
7f358a48e6 Adding new files for disk cache. These are not part of the build, but will get reviewed before being enabled. 2002-05-01 22:08:07 +00:00
darin%netscape.com
e554d83626 fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf
2002-04-27 05:33:09 +00:00
darin%netscape.com
edab6546f5 fixes bug 116365 (second attempt) "[RFE] Cache partial documents; automatically
issue byte range requests" r=gagan sr=mscott,rpotts,brendan a=asa
2002-03-26 23:33:19 +00:00
darin%netscape.com
171c8b28ee backing out changes (for bug 116365) to fix btek page-loader crash. 2002-03-26 08:47:10 +00:00
darin%netscape.com
f2d3a0287d fixes bug 116365 "[RFE] Cache partial documents; automatically issue byte
range requests" r=gagan sr=mscott,rpotts,brendan a=asa
2002-03-26 06:54:07 +00:00
dbaron%fas.harvard.edu
3f52b082bc Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 21:35:01 +00:00
darin%netscape.com
281c86ec58 b=99165 Freeze nsIInputStream nsIOutputStream (not yet frozen... but close)
r=dougt sr=shaver a=asa
2002-03-12 00:59:06 +00:00
cathleen%netscape.com
a6a1655268 eliminate nsCRT::strlen for char* strings (part 4), bug 124536 r=dp sr=brendan 2002-02-19 16:01:45 +00:00
gordon%netscape.com
2b4b0643ef Fix bug 102921 "Mozilla crashes when Cache in profile dir points
to nonexistent directory". Change to fail nsDiskCacheDevice::Init()
if mCacheDirectory is nsnull.  sr=darin.
2002-02-19 09:08:09 +00:00
gordon%netscape.com
51cf5d0033 Fix bug 107766 "DeactivateEntry: bad cache entry state when quitting". The cache entry state is legitimate on shutdown. Change NS_WARNING to NS_ASSERTION that doesn't fire on shutdown. r=gagan, sr=darin. 2002-02-19 05:32:18 +00:00
gordon%netscape.com
1f32e4f75e Fix bug 116562 "Flash movie is not loaded if disk cache is disabled". Return error from SetCachePolicy() if storage is not currently enabled for policy. r=gagan, sr=darin. 2002-02-19 05:29:49 +00:00
bzbarsky%mit.edu
97aad157b6 Relanding the Compare --> Equals conversion. a=mcafee 2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu
98afc5ee0f Testing performance impact of backout of what's left of the patch from
bug 115289.  See bug 123947 for details. a=mcafee
2002-02-09 20:46:05 +00:00
bzbarsky%mit.edu
40d60f39ec Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag
2002-02-05 02:03:07 +00:00
sfraser%netscape.com
d133d4956f Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson 2002-01-30 21:14:20 +00:00
cathleen%netscape.com
8605704b12 eliminate nsCRT::zero() to use memset to zero instead, bug 118135, r=dp sr=waterson 2002-01-30 02:55:57 +00:00
gordon%netscape.com
7cf5c26933 fix bug 120833 "default value of nsICacheEntryInfo::expirationTime should be PRUint32(-1)". r=gagan, sr=darin. 2002-01-24 03:06:28 +00:00
gordon%netscape.com
0845b71af5 Fix bug 119117 "nsDiskCacheMap.h compiler warning". sr=darin. 2002-01-24 01:27:32 +00:00
gordon%netscape.com
b032cdadb8 Fix bug 111049 "add attribute to nsICacheSession to detect device availability". sr=darin. 2002-01-24 01:25:25 +00:00
gordon%netscape.com
efd43a6ced Fix bug 119085 "cache entries corrupted if size of metadata is zero". sr=darin. 2002-01-24 01:24:20 +00:00
gordon%netscape.com
7ee3cd55f2 Fix bug 114292 (top crash in cache code). Patch prevents cache devices from evicting entries while they are being "bound". r=brendan, sr=darin, a=blizzard. 2002-01-18 22:18:28 +00:00
cathleen%netscape.com
92d4fbf218 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2002-01-12 03:18:55 +00:00
seawood%netscape.com
45bfbf0658 Landing the rest of the win32 gmake changes:
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup

Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
pete%alphanumerica.com
efee7eec18 b=77933, r=ccarlen, sr=jst
nsIFile::CreateUnique() has unused parameter

removed unused parameter
/**
    WARNING commercial tree has one hit for this API change
 */
--pete
2001-12-07 23:06:51 +00:00
gordon%netscape.com
8b769b6c5b Fix bug 110405. Removing anachronistic assertion, added condition to respect STORE_ON_DISK policy. Changed fav icon cache policy to STORE_ANYWHERE. r/sr = darin, hyatt, sfraser. 2001-11-29 23:04:58 +00:00
bzbarsky%mit.edu
edfb3b268f Use <> for system headers, not "". This should help prevent Sun WSU2
compiler bustage.  Bug 111574, patch from Roland Mainz
(<Roland.Mainz@informatik.med.uni-giessen.de>), r=bzbarsky, sr=bienvenu
2001-11-23 22:36:54 +00:00
gordon%netscape.com
87e3bb822d Fix bug 110327 "0775 is bad mask for for cache", checkin patch for timeless@mac.com, r=gordon, sr=darin. 2001-11-19 22:48:30 +00:00
alecf%netscape.com
7088e71886 fix for bug 108684 - cache objects not included in bloat logs
r=gordon, sr=darin
2001-11-06 22:51:58 +00:00
dougt%netscape.com
0a62d4e8d5 99163 - removing nsObserverService.h includes. Also fixing 106090, extra methods on nsObserverService. r=shaver@mozilla.org, sr=jband@netscape.com 2001-10-22 22:01:27 +00:00
bnesse%netscape.com
73c9a1111f Fix for bug 103883. Add weak ref support for prefs observers to help reduce MLK cycles with preferences. r=ccarlen, darin, gordon, hewitt, mstoltz, srilatha, sspitzer. sr=alecf. 2001-10-22 20:54:48 +00:00
dougt%netscape.com
063be9f0fa fixing major regression caused by my change to nsIObserverService 2001-10-20 00:33:02 +00:00
dougt%netscape.com
d18d7e2b17 nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163 2001-10-19 20:52:59 +00:00
gordon%netscape.com
fd5ca0ccc0 Fix bug 92908 and bug 101857. Change nsCacheService::CreateSession() to
return a new session even if there are no cache devices currently enabled.
Also, changed DeactivateEntry() to bind non-doomed entries if necessary to
allow the storage of meta-data-only entries, such as HTTP redirects. 
r=sfraser, sr=darin.
2001-10-19 02:05:12 +00:00
gordon%netscape.com
f990c58b99 Fix for bug 103167, removing old cache interfaces. r=sfraser, sr=darin. 2001-10-19 01:54:42 +00:00
alecf%netscape.com
c5c5c0dfd6 fix for bug 103988 - fix the cache module so it is it's own module, not necko
r=cls, dbaron
2001-10-11 18:33:52 +00:00
gerv%gerv.net
da2c7d7481 CVS removal of obsolete directories. Bug 102787. Goodbyeeeee.... 2001-10-03 18:54:49 +00:00
alecf%netscape.com
01930dfd2c Split necko MODULE into necko and necko2, part of bug 101761, r=cls 2001-10-01 19:53:27 +00:00
jaggernaut%netscape.com
ca6197295f Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc 2001-09-29 08:28:41 +00:00
gerv%gerv.net
4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
gordon%netscape.com
18074a54b4 Fix bug 92348, browser won't start if cache capacities set to 0. Added
check to fail nsCacheService::ActivateEntry() if neither disk or memory
cache devices are enabled, or if the memory cache device is not enabled
and the request if for a non-stream-based entry. r=gagan, sr=dougt.

Also changing pref name for cache parent directory according to suggestion
in bug 78480.  r=gagan, sr=darin.
2001-09-20 01:12:35 +00:00
gordon%netscape.com
1fb8a7d027 Fix bug 100216, top crash on shutdown. Added null pointer check to
nsCacheEntryDescriptor::RequestDataSizeChange(). r=gagan, sr=darin.
2001-09-20 01:09:01 +00:00
jaggernaut%netscape.com
d1a7bfa843 One module per line for REQUIRES. r=/sr=alecf 2001-09-18 22:01:13 +00:00
jaggernaut%netscape.com
dc40187223 Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf 2001-09-18 13:41:47 +00:00
gordon%netscape.com
a1c06d8a2a 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.
2001-09-17 20:47:09 +00:00
alecf%netscape.com
8bf5905937 add REQUIRES support to jpeg, sun-java, db, etc.. b=98371 r=cls 2001-09-10 20:48:38 +00:00
valeski%netscape.com
93959d48cc r=dbaron, sr=dougt. 97667. nsIInterfaceRequestor is now frozen. nsIInterfaceRequestorUtils.h is now required if you want to use do_GetInterface() for convenience. The two were split because the stuff that is now in nsIInterfaceRequestorUtils.h wasn't ready for freezing. Also, .idl files should just contain interface defs anyway. 2001-09-05 21:28:38 +00:00
gordon%netscape.com
872bbb27b3 For bugscape bug 6985. Enabling cache support for dynamically switching profiles. r=ccarlen, sr=darin. 2001-08-17 00:01:01 +00:00
cls%seawood.org
a3c1dd1b09 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org
2001-08-14 07:59:59 +00:00
jaggernaut%netscape.com
e91f8a147e Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
pete%alphanumerica.com
f020dcc1cd Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst
Renamed all Delete methods to Remove.

--pete
2001-07-24 18:38:25 +00:00
bbaetz%cs.mcgill.ca
2b0a7464d0 This fixes two small problems that may cause pages being partially loaded. 82720. The first problem addresses new cache entries being created when access to the entry is readonly. The second fix was to a badly placed assertion.
Patch by gordon, r=bbaetz, sr=dougt.
2001-07-18 23:37:17 +00:00
dbaron%fas.harvard.edu
aa4fec2b67 Header include dependency cleanup. b=64023 r=jag rs=brendan 2001-07-16 02:40:48 +00:00
cls%seawood.org
faa4e8ff84 Remove obsolete --disable-new-cache option & MOZ_NEW_CACHE/OLD_CACHE ifdefs from the tree. We are not turning back now. :)
Bug #89008 r=dougt sr=waterson
2001-07-06 08:07:43 +00:00
cls%seawood.org
cfce8f4dcc Updating .cvsignore files.
Bug #84824 r=jag
2001-07-06 02:36:37 +00:00
timeless%mac.com
2009a34b03 Bugzilla Bug 88769 'nsDiskCacheEntry' : type name first seen using 'class' now seen using 'struct'
r=jtaylor sr=shaver
2001-07-04 07:06:34 +00:00
jaggernaut%netscape.com
5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
darin%netscape.com
f829862401 Fixes bug 85054 "Hard Drive grinds when disk cache set to zero."
patch=gordon, r=gagan, sr=darin
2001-06-28 01:30:26 +00:00
darin%netscape.com
dd9a4f3f1d Fixes bug 82418 "URL makes mozilla totally unresponsive" patch=gordon
r/sr=dougt,darin
2001-06-27 02:30:18 +00:00
darin%netscape.com
e431bed7e5 Fixes bug 87710 (part 1) "Image cache does not re-validate images before reusing them"
r=bbaetz, sr=jst
2001-06-26 07:06:52 +00:00
rpotts%netscape.com
7b882ed807 bug #82458 (r=jst, sr=darin, a=blizzard). THis patch causes STATE_TRANSFERRING notifications to fire when URLs are loaded out of the disk cache or memory cache... 2001-06-25 06:22:44 +00:00
waterson%netscape.com
b74d6e1c8b Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs. 2001-06-20 20:21:49 +00:00
cls%seawood.org
bf5fb48486 Replaced NO_SHARED_LIB & NO_STATIC_LIB with BUILD_SHARED_LIBS, BUILD_STATIC_LIBS, FORCE_STATIC_LIB & FORCE_SHARED_LIB. Added FORCE_USE_PIC.
Changes allow us to have a finer control over which parts of the tree are built with PIC.  Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf
2001-06-18 22:10:38 +00:00
gordon%netscape.com
f4f56f62cd Fix bug 82009 "purify msg: Freeing mismatched memory". Changing FlattenMetaData() semantics to eliminate malloc and buffer copy. r=beard, sr=darin, a=asa. 2001-06-13 23:37:41 +00:00
danm%netscape.com
ebf0feed30 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 2001-06-06 02:30:07 +00:00
gordon%netscape.com
d169ac5e97 Fix bug 82370, leak in disk cache. r=dbaron, sr=darin, a=asa. 2001-05-25 18:47:53 +00:00
scc%mozilla.org
b7b3395bad bug #75220: fixing stragglers, people who checked in uses of |nsLiteralC?String| after it had already been removed from the build 2001-05-23 01:21:04 +00:00
gordon%netscape.com
3f62a152f4 Fix bug 81799 "Infinite loop in disk cache" (handling the disk cache size=0 case), sr=hyatt. 2001-05-21 23:35:37 +00:00
gordon%netscape.com
a4988401c3 Fix for smoketest blocker bug 81799 "Infinite loop in disk cache", sr=darin. 2001-05-21 22:05:10 +00:00
jst%netscape.com
77aeecc056 scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances. 2001-05-19 11:27:30 +00:00
gordon%netscape.com
7b2d93cb0d Fix bug 72507, implementing level 2 disk cache. Modified disk cache to keep
metadata for all entries in a single file, rather than in separate files.
r=gagan, sr=darin.
2001-05-18 23:24:09 +00:00
darin%netscape.com
199c44a737 Http branch landing: changes to netwerk/ (bug 76866) r=gagan,sr=dougt,a=chofmann 2001-05-11 21:04:09 +00:00
gordon%netscape.com
893e8e0225 Fix bug 79585 "need non-blocking OpenCacheEntry() for HTTP", r=pavlov, sr=darin. 2001-05-09 03:36:00 +00:00
gordon%netscape.com
23a6c877af Fix for bug 78479 "frequent hang on quit after long use" and bug 79241 "Crash quiting the app in the cache". sr=darin. 2001-05-08 00:13:21 +00:00
gordon%netscape.com
9e6aeefb08 Fix for bug 74301 "New cache not properly updating object size" and bug 78849 "nsCacheEntryDescriptor needs to be threadsafe". sr=darin. 2001-05-08 00:07:44 +00:00
gordon%netscape.com
4c49dc8df0 fix for bug 78852 "nsDiskCacheEntry needs to be made threadsafe", sr=darin. 2001-05-08 00:05:49 +00:00
gordon%netscape.com
96f47a92dc fix for bug 75183, "separate eviction policy for chrome needed". sr=darin. 2001-05-08 00:04:50 +00:00
kandrot%netscape.com
afdac97c93 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775. 2001-05-05 05:33:37 +00:00
gordon%netscape.com
56d6866699 Fix for bug 76661, "Recursive attempt to lock cache entry". r=dougt, sr=darin. 2001-05-03 02:35:26 +00:00
gordon%netscape.com
0471906e82 For bug 74668. Add cache device ID attribute to nsICacheEntryInfo interface,
and implementing classes.  r=beard, sr=darin.
2001-04-30 01:18:34 +00:00
cls%seawood.org
d62bacf705 Remove unneeded LOST_SYM_LIBS defines. 2001-04-30 01:13:22 +00:00
cls%seawood.org
00f28396a9 Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775 2001-04-28 19:48:12 +00:00
bnesse%netscape.com
000d1011d5 Prefs API refactoring. Bug #46863. r=valeski, sr=alecf. 2001-04-26 18:41:11 +00:00
gordon%netscape.com
15f2920f07 checkin for bug 76293. Moves cache directory aside on startup if disk cache is unable to read or delete files. Cache service disables disk cache device if it fails to initialize, and defaults to using memory cache instead. r=beard, sr=darin. 2001-04-26 05:07:28 +00:00
gordon%netscape.com
cadf9d7836 Approved checking for bug 76372, r=gagan, sr=brendan, a=brendan/chofmann. Added guards against calls to uninitialized nsCacheEntryHashtable. 2001-04-24 02:22:27 +00:00
gordon%netscape.com
a43eb29cb5 Approved checkin for bug 76125, cleanup usage of pldhashtable in nsCacheService.cpp. r=gagan, sr=brendan, a=asa. 2001-04-23 05:15:03 +00:00
bryner%uiuc.edu
97e89fd687 Backing out bnesse's fix for bug 46863 due to numerous types of runtime bustage on linux and windows. a=brendan. 2001-04-20 06:45:56 +00:00
bnesse%netscape.com
b0baaeabc3 Landing PrefAPI refactoring bug 46863. r=valeski, sr=alecf, a=blizzard. 2001-04-19 22:21:39 +00:00
gordon%netscape.com
3d9a817e4b Fix bug 75448 "Clear disk cache from prefs not working properly". Patch by
beard, r=gordon, sr=darin.
2001-04-17 23:20:06 +00:00
dveditz%netscape.com
e8af73b0d8 Fixing build bustage (evil trailing ^M's). 2001-04-17 12:46:17 +00:00
gordon%netscape.com
8db6e2bbfe desperate attempt to fix build bustage on win32. Don't know why it didn't like the !endif, so I'm just nuking the lines I was trying to comment out. 2001-04-17 12:01:58 +00:00
gordon%netscape.com
89b0c9362b bug 72528, remove old cache from build. sr=darin. 2001-04-17 10:47:22 +00:00
gordon%netscape.com
fd4f0027b9 First implementation of "flat files" for cache. 2001-04-17 03:54:48 +00:00
colin%theblakes.com
5fb258f72f Use MOZ_COMPONENT_LIBS and pass via EXTRA_DSO_LDOPTS instead
of EXTRA_LIBS. r=cls b=75876.
2001-04-13 23:21:54 +00:00
darin%netscape.com
00a7e27ee6 Necko API changes, bug 74221. r=valeski, sr=rpotts. 2001-04-10 06:01:08 +00:00
gordon%netscape.com
d04770c91b Fix bug 73441 "New cache needs "Clear" functionality. Changed pref advanced cache panel clear buttons to clear new cache devices, and fixed bug in nsMemoryCacheDevice to avoid calling nsCRT::strlen(nsnull). sr=darin. 2001-04-09 09:52:15 +00:00
gordon%netscape.com
0e2c10a02c Fix bug 75171 "implement nsCacheSession::EvictEntries", sr = darin. 2001-04-09 08:14:08 +00:00
dbaron%fas.harvard.edu
f452edf867 Fix OS/2 tinderbox bustage (PR_CALLBACK). r=disttsc@bart.nl 2001-04-06 00:33:19 +00:00
gordon%netscape.com
e9795367a5 Fix smoketest blocker bug 74766. DISKCACHE2_BRANCH touchdown. r=beard, sr=darin. 2001-04-05 22:28:17 +00:00
dprice%netscape.com
8c0b9eaf97 65845 - new order files 2001-04-05 06:02:32 +00:00
mkaply%us.ibm.com
0fa26403b4 OS/2 TB breakage 2001-04-04 08:25:32 +00:00
gordon%netscape.com
4a0c37aac2 Landing DISKCACHE1_BRANCH (part Deux) which enables dynamic eviction and efficient cache miss detection for the disk cache (bug 72506) r=beard, sr=darin. 2001-04-04 03:30:45 +00:00
scc%mozilla.org
f202d9b832 fix bustage 2001-04-02 23:11:04 +00:00
beard%netscape.com
704f8c8099 Fixes bug #73194, when profile switching occurs, ensure new cache directory is created. r=beard, sr=darin 2001-03-31 07:37:19 +00:00
darin%netscape.com
84a54aae38 Fixes bug 73917 "cache entry data size not updated" patch=beard, r=gagan, sr=darin 2001-03-29 19:58:34 +00:00
gordon%netscape.com
1ea8da52b0 Fix bug 73099. Problems with updating lastModified time stamp. r=beard, sr=darin. 2001-03-29 06:50:38 +00:00
gordon%netscape.com
ae4d1335c4 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. 2001-03-29 05:54:58 +00:00
gordon%netscape.com
14a4326239 Added evictEntries() methods to nsICacheService and nsICacheSession. Removed lastValidated attribute from nsICacheVisitor. r=beard sr=darin. 2001-03-29 05:51:46 +00:00
gordon%netscape.com
d932bd7603 Bug 73491 and bug 73513. Make the disk cache fail (more) gracefully. r=mcafee, sr=waterson. 2001-03-27 23:56:18 +00:00
cls%seawood.org
979c006ff6 Change netwerk/mime to use MODULE=mimetype to remove avoid confusion with mailnews/mime . Update necessary REQUIRES.
Bug #68381 r=jag
2001-03-26 23:40:28 +00:00
mkaply%us.ibm.com
5f5b489750 #73191
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately
2001-03-26 23:21:53 +00:00
disttsc%bart.nl
f595ed19f3 Clean up REQUIRES lines. r=cls 2001-03-25 22:59:27 +00:00
scc%mozilla.org
5993fe2aae remove hidden depencies, sr=shaver 2001-03-25 21:33:50 +00:00
beard%netscape.com
5d31a75095 [not part of build] maintains a compact directory of disk cache entries, for disk cache version 1. 2001-03-25 15:49:31 +00:00
beard%netscape.com
f1e78446c3 [not part of build] nsIInputStream/nsIOutputStream wrappers for ANSI FILE objects. 2001-03-25 15:47:36 +00:00
disttsc%bart.nl
385f89696c Bug 60952: nsMimeTypes.h has wrong type for APPLICATION_HTTP_INDEX, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=blake, sr=darin
Bug 68651, nsFtpConnectionThread should use NS_LITERAL_STRING, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=jag, sr=dougt
2001-03-24 22:57:35 +00:00
pavlov%netscape.com
193f04774f fix for windows crash on profile startup, initalize disk cache lazily. bug 73197. r=beard, gordon sr=sfraser 2001-03-23 21:06:39 +00:00
darin%netscape.com
e73a665e98 nkcacheservice --> nkcache 2001-03-23 09:09:47 +00:00
darin%netscape.com
5a8f968f96 Fixes bug 73042. Make new disk cache recover well from a corrupted disk
entry.  patch=beard; sr=darin
2001-03-23 03:44:55 +00:00
darin%netscape.com
4cd83a6a2f Fixes bug 38260. Use big endian in disk cache. r=beard,pavlov; sr=dougt 2001-03-23 03:35:10 +00:00
darin%netscape.com
d0576b8a58 Fixes bug 73097. No new cache in win32 builds (as in not at all). r=gagan
(These changes should have gone in yesterday when we enabled the new cache,
but were somehow forgotten.)
2001-03-23 03:08:59 +00:00
pinkerton%netscape.com
caca4889fd fix fizzilla bustage. 2001-03-23 02:52:13 +00:00
darin%netscape.com
410a6ccbef Remove stupid printfs. r=pavlov, sr=darin 2001-03-22 08:34:34 +00:00
mkaply%us.ibm.com
ab22754b09 OS/2 TB breakage
Need more CRT_CALL
2001-03-22 07:12:42 +00:00
mkaply%us.ibm.com
c3ec38dba5 fix indentation 2001-03-22 05:27:32 +00:00
mkaply%us.ibm.com
49e7bd880e Stupid mistake - used CRT_CALLBACK instead of CRT_CALL 2001-03-22 05:23:37 +00:00
mkaply%us.ibm.com
abefc37b49 #72075
r=cls
OS/2 TB breakage on new cache
2001-03-22 04:23:20 +00:00
mkaply%us.ibm.com
c4e875553c #72075
r=jag
OS/2 TB breakage on new cache
2001-03-22 04:20:20 +00:00
darin%netscape.com
45914de200 Fixes speedracer bustage. a=mcafee 2001-03-22 02:25:36 +00:00
gordon%netscape.com
3361e48529 Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default. 2001-03-20 22:42:03 +00:00
beard%netscape.com
dea865c7e3 [not part of build] Fix dumb assertion. 2001-03-14 21:16:55 +00:00
darin%netscape.com
763397309e [not part of the build] Changes to make the new cache use PRUint32's for
time instead of PRTime's.  r=gordon
2001-03-14 03:54:05 +00:00
beard%netscape.com
b9c6dbc105 [not part of build] Using nsIPref::AddObserver() instead of krufty old callbacks. Using directory service to obtain profile directory and using a "profile-do-change" observer to regenerate the cache directory. 2001-03-14 03:35:09 +00:00
darin%netscape.com
3f44553e13 [not part of the build] Make nsICacheEntryDescriptor inherit from nsICacheEntryInfo 2001-03-14 01:11:14 +00:00
gordon%netscape.com
a4e0ca3017 [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.
2001-03-13 15:43:17 +00:00
beard%netscape.com
f1394c0f02 [not part of build] Implements poor man's eviction policy. 2001-03-13 04:54:14 +00:00
beard%netscape.com
f1e2d5cd18 [not part of build] Use forward references whenever possible. 2001-03-13 04:53:46 +00:00
beard%netscape.com
2c47dd3f64 [not part of build] Use nsIObserverService to shut down cache before XPCOM is shut down. r=gordon 2001-03-13 01:59:43 +00:00
dougt%netscape.com
c74c36c85e Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com 2001-03-12 22:41:28 +00:00
beard%netscape.com
c9ee65f8a7 [not part of build] scan disk cache directory during initialization, to total cache usage, and implement poor man's eviction policy (once at startup/shutdown). 2001-03-12 19:31:21 +00:00
beard%netscape.com
b10810ae1a [not part of build] Mark entry dirty when data size is changed. 2001-03-12 19:29:34 +00:00
darin%netscape.com
af3ac12f49 [not part of the build] Replaced instances of cache manager with cache service
in comments.
2001-03-12 07:09:24 +00:00
darin%netscape.com
33e7b8edf6 [not part of the build] Replaced -1's in calls to Open{In,Out}putStream with ULONG_MAX. 2001-03-12 06:25:26 +00:00
darin%netscape.com
6a70220c37 [not part of the build] Updated some comments. 2001-03-12 06:23:52 +00:00
beard%netscape.com
666ef60528 [not part of build] Turned off some benign failure assertions. 2001-03-11 19:26:04 +00:00
beard%netscape.com
d89a843595 [not part of build] Update visitEntries to correctly identify metadata files. 2001-03-11 19:18:48 +00:00
beard%netscape.com
a90be5e37b [not part of build] Fix incorrect usage of PR_APPEND_LINK() to keep from corrupting the list of doomed DiskCacheEntry object. (thanks gordon) 2001-03-11 06:51:53 +00:00
dbaron%fas.harvard.edu
79b1bcdc60 Allow new cache to be built with MOZ_TRACK_MODULE_DEPS. r=cls@seawood.org 2001-03-11 02:02:25 +00:00
beard%netscape.com
ff4a87ed33 [not part of build] Stopped reusing nsITransports, seems to improve stability. Implemented collision detection of cache entries, using generations and renaming upon entry deactivation. 2001-03-11 00:19:09 +00:00
gordon%netscape.com
05f414aec2 [not part of build] Header file for disk cache record structures. 2001-03-10 03:51:59 +00:00
beard%netscape.com
644891e9a1 [not part of build] Added simple enumeration mechanism to nsCacheEntryHashtable. 2001-03-10 00:43:20 +00:00
beard%netscape.com
2a7451c0d3 [not part of build] renamed DoomEntry_Internal to DoomEntry_Locked, made public for use by cache devices. 2001-03-10 00:42:19 +00:00
beard%netscape.com
472c0da33e [not part of build] Implemented more of cache visitor support. 2001-03-09 19:01:15 +00:00
beard%netscape.com
1ec94db8a7 [not part of build] Fix cache directory creation logic again. 2001-03-09 17:14:02 +00:00
beard%netscape.com
5b0cff36d7 [not part of build] Initial implementation of cache visitor support. 2001-03-09 00:04:03 +00:00
beard%netscape.com
1f859d742c [not part of build] Implemented nsCacheEntryDescriptor::GetFile(). 2001-03-08 21:22:18 +00:00
beard%netscape.com
22e5a9f6da [not part of build] stub implementation of Visit(). Changed Cache directory creation logic in nsDiskCacheDevice.cpp. 2001-03-08 21:00:02 +00:00
beard%netscape.com
bf4e360443 [not part of build] implement VisitEntries. 2001-03-08 20:58:38 +00:00
beard%netscape.com
252e11c88e [not part of build] Added new interfaces nsICacheDeviceInfo, nsICacheEntryInfo. 2001-03-08 20:58:11 +00:00
gordon%netscape.com
b273b672ac [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.
2001-03-08 05:37:00 +00:00
gordon%netscape.com
dd593b9f58 [not part of build]
Added readonly lastModified attribute to nsICacheEntryDescriptor.  Added PRBool attribute doomEntriesIfExpired to nsICacheSession.
2001-03-08 05:31:52 +00:00
gordon%netscape.com
7504fab80f [not part of build] Fix a couple bugs to get http working. Don't deallocate requests before listener has been notified, and don't re-add entries to active entry hashtable. 2001-03-08 01:02:27 +00:00
beard%netscape.com
c01e2e45a9 [not part of build] when DEBUG is true, always put cache directory next to current process. 2001-03-08 00:35:03 +00:00
darin%netscape.com
7524781db1 [not part of the build] Fixes some bustage under GCC 2.96 2001-03-07 09:55:54 +00:00
gordon%netscape.com
acd18fda01 [not part of build]
Added rough cut of pref code for memory cache device to get cache size, and implemented simple eviction method.

Restructured nsCacheEntryDescriptor to add SecurityInfo attribute.  Created nsTransportWrapper as nested class (and member) that addrefs the descriptor instead of itself (like nsPipe).  Also rename nsCacheOutputStream to nsOutputStreamWrapper and made it a nested class as well.
2001-03-07 09:27:36 +00:00
beard%netscape.com
cfae6db9a8 [not part of build] don't overwrite a NULL pointer. 2001-03-07 04:05:36 +00:00
gordon%netscape.com
246a98a432 [not part of build] Add security info attribute to nsICacheEntryDescriptor. 2001-03-07 02:47:08 +00:00
beard%netscape.com
0fa067b527 [not part of build] Added GetFile() to implement the file attribute. 2001-03-07 01:40:41 +00:00
beard%netscape.com
d4c0c120f1 [not part of build] Added file attribute to nsICacheEntryDescriptor, added STORE_ON_DISK_AS_FILE to nsICache. 2001-03-07 01:37:42 +00:00
darin%netscape.com
17d186f8a7 [not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable. 2001-03-06 22:04:05 +00:00
darin%netscape.com
6d66958fda [not part of the build] Fixes bustage resulting from bryner's nsITransport changes. 2001-03-06 07:35:54 +00:00
bryner%uiuc.edu
8b80c7c363 Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott. 2001-03-06 05:10:33 +00:00
gordon%netscape.com
7cb578dc94 [not part of build...and a good thing too] Fixed a couple of really stupid mistakes. Thanks to Patrick for finding them. Go back to your homes. Nothing to see here. 2001-03-06 04:01:00 +00:00
gordon%netscape.com
a73e430dc1 [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).
2001-03-06 03:26:13 +00:00
darin%netscape.com
1cad1d36cc [not part of the build] Prevent crash in error case. 2001-03-06 03:12:24 +00:00
beard%netscape.com
af28bdfda7 [not part of build] create the cache directory if it doesn't exist already. 2001-03-06 02:10:18 +00:00
darin%netscape.com
ff8da66438 [not part of the build] Fixes sync OpenCacheEntry bustage. 2001-03-06 01:40:20 +00:00
darin%netscape.com
74a90e7466 [not part of the bulid] Fixes GCC 2.95 bustage. 2001-03-05 23:50:26 +00:00
gordon%netscape.com
bcb5168522 [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.
2001-03-05 10:45:33 +00:00
gordon%netscape.com
ade5e1533b [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.
2001-03-05 07:17:58 +00:00
pavlov%netscape.com
14f46fb876 [NOT PART OF BUILD!@#!@#] changing line ending of makefile so it works on windows r=gordon 2001-03-04 20:57:33 +00:00
beard%netscape.com
d272ef683d [not part of build] fix bustage (LL_ZERO is not compatible with PRUint32 type). 2001-03-04 19:27:39 +00:00
gordon%netscape.com
14f776650c [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. 2001-03-04 00:11:30 +00:00
gordon%netscape.com
c281374138 [not part of build] Make MarkDoomed(), MarkActive(), MarkInactive() private, and check for entry before calling MarkInitialized() in nsCacheService::ActivateEntry(). 2001-03-03 04:42:21 +00:00
beard%netscape.com
6388744e26 [not part of build] dooming works during forced write, and explicitly, see TestDiskCache.js for example. 2001-03-03 03:41:38 +00:00
gordon%netscape.com
124ac630d9 [not part of build] Restructured nsCacheService:ActivateEntry() to properly handle a FORCE-WRITE. Cleaned up ownership of key between request and entry. Add deletion of request for synchronous open. Add deletion of unbound entries on deactivation. 2001-03-03 02:27:49 +00:00
darin%netscape.com
94f3bb4242 [not part of the build] updated the module file for the removal of nsMemoryCacheTransport 2001-03-03 02:27:18 +00:00
darin%netscape.com
0bbec193ce [not part of the build] Make mem cache use nsStorageTransport. 2001-03-03 01:59:03 +00:00
beard%netscape.com
19ae2d545a [not part of build] removed dirty flag from DiskCacheEntry, added key comparision to readDiskCacheEntry(). 2001-03-03 00:35:33 +00:00
gordon%netscape.com
55421ff15e [not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure! 2001-03-03 00:00:29 +00:00
gordon%netscape.com
e8fffddcf2 [not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard. 2001-03-02 23:50:53 +00:00
darin%netscape.com
239a60c682 [not part of the build] Added implementation of nsMemoryCacheReadRequest::Available 2001-03-02 22:28:38 +00:00
beard%netscape.com
af49e27bcf [not part of build] slight optimization, check for cache file existence before creating an entry and attempting to open a transport for it. 2001-03-02 20:14:41 +00:00
beard%netscape.com
88c1e43a65 [not part of build] need a way to transfer ownership of key from request to entry. for now just leak and dont' crash. 2001-03-02 20:04:08 +00:00
disttsc%bart.nl
277181c660 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
beard%netscape.com
dfc91d59d9 Now reading/writing all metadata into disk cache. 2001-03-02 04:57:09 +00:00
beard%netscape.com
3a40fad954 [not part of build] Added CalculateSize() to account for null termination of strings. 2001-03-02 04:54:27 +00:00
beard%netscape.com
f2eaa4cceb [not part of build] Added FlattenMetaData()/UnflattenMetaData(). 2001-03-02 04:09:01 +00:00
gordon%netscape.com
94a9fab0c0 Fix casing of SetMetaDataElement method. 2001-03-02 01:52:29 +00:00
gordon%netscape.com
b3ae735e46 [not part of build]
Fixed cache meta data. Implemented eviction list for memory cache device. Worked on entry deactivation, validation, and doom.
2001-03-02 01:51:41 +00:00
dougt%netscape.com
ac8a00dcc3 not part of build. we should init the cache meta data. 2001-03-01 21:27:11 +00:00
gordon%netscape.com
7e1b7ad450 [not part of build]
Mark cache entry meta data dirty when key/value pair added.
2001-03-01 20:06:16 +00:00
gordon%netscape.com
7438155597 [not part of build]
Add utility method to nsCacheEntryDescriptor to change the data size for the associated cache entry.
2001-03-01 19:52:06 +00:00
darin%netscape.com
7ca4379f0e [not part of the build] Removed knowledge of nsCacheEntry from nsMemoryCacheTransport,
and fixed a bug in the blocking output stream (it claimed to be non blocking).
2001-03-01 19:33:00 +00:00
beard%netscape.com
5662ae9036 [not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor. 2001-03-01 19:32:41 +00:00
beard%netscape.com
ea20c70f23 [not part of build] When OpenOutputStream() is called for a descriptor with nsICache::ACCESS_WRITE, set initial cache entry size to 0. 2001-03-01 19:24:10 +00:00
beard%netscape.com
935893d3b2 [not part of build] Use NS_IMPL_THREADSAFE_ISUPPORTS0 to avoid thread-safety asserts in DiskCacheEntry. 2001-03-01 17:48:36 +00:00
beard%netscape.com
389892c9a1 [not part of build] Added DiskCacheEntry to store internal data in nsCacheEntry. Now saving metadata when DiskCacheEntry becomes dirty. 2001-03-01 17:31:06 +00:00
beard%netscape.com
c062803646 [not part of build] Make ~nsCacheOutputStream() virtual 2001-03-01 09:51:22 +00:00
beard%netscape.com
a8e4cbdaa6 [not part of build] Fix LL bustage. 2001-03-01 08:38:50 +00:00
beard%netscape.com
87a8e2fe30 [not part of build] First cut at wrapper nsIOutputStream for tallying total bytes written to a cache entry. 2001-03-01 08:29:43 +00:00
gordon%netscape.com
31f6b6c7a1 [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.
2001-03-01 05:01:43 +00:00
beard%netscape.com
4870b313b0 [not part of build] needed to add nsITransport to QueryInterface. 2001-03-01 02:51:07 +00:00
darin%netscape.com
986ab2ead9 [not part of the build] Added code to update the entry's data size as data is streamed
to the memory cache.
2001-03-01 02:49:26 +00:00
gordon%netscape.com
f032da92f0 [not part of build]
Add finalization code to cache entry hashtables to delete remaining entries.
2001-03-01 02:46:12 +00:00
gordon%netscape.com
47a7b44c2c [not part of build]
Changed nsCacheEntryDescriptor to implement nsITransport as a wrapper that checks access priviledges for the underlying transport provided by the device.

Added code to lazily allocate the underlying transport for the cache descriptor.

Added NS_ENSURE_ARG_POINTER() to all necessary interface methods. r=beard.
2001-03-01 02:25:07 +00:00
darin%netscape.com
5f02f00fa7 [not part of the build] Cleans up ReadRequestCompleted; there was no reason
to be walking the list of read requests!
2001-03-01 02:20:35 +00:00
gordon%netscape.com
40f3bf76de Added error codes for read/write access denied. 2001-03-01 01:56:29 +00:00
gordon%netscape.com
52de7aa8e6 Fix access mode for new entries. Not part of the build. 2001-02-28 22:39:07 +00:00
beard%netscape.com
10a38c5434 [not part of build] truncate files when mode = nsICache::ACCESS_WRITE. 2001-02-28 12:09:41 +00:00
beard%netscape.com
aaddf29c81 [not part of build] create up to 3 different transports for different nsCacheAccessMode values. 2001-02-28 11:30:39 +00:00
beard%netscape.com
46567d8f82 [not part of build] renamed PRUint32 parameters to nsCacheAccessMode. Set initial descriptor mode to be requested as temporary workaround. 2001-02-28 11:29:22 +00:00
beard%netscape.com
317f5fec75 [not part of build] enforce nsCacheAccessMode when creating transports. 2001-02-28 10:04:27 +00:00
gordon%netscape.com
ecb52c437c Begin implementing enumeration of MetaData for cache devices. 2001-02-28 07:13:32 +00:00
gordon%netscape.com
aaa938e5b0 Added check in ReadRequestCompleted() in case aReader paramter is not found in the mReadRequests list. 2001-02-28 05:48:00 +00:00
beard%netscape.com
ff21b4221a [not part of build] successfully creates writeable nsITransport for cache files! 2001-02-28 05:05:29 +00:00
darin%netscape.com
084f574d18 Made nsMemoryCacheDevice::BindEntry return NS_OK 2001-02-28 04:36:51 +00:00
darin%netscape.com
9647d227cc Completed nsCacheService::BindEntry 2001-02-28 04:34:41 +00:00
darin%netscape.com
004b919287 Removed an extraneous QI from nsCacheEntry::Open() 2001-02-28 04:28:15 +00:00
beard%netscape.com
b6d563d650 [not part of build] must call init on hashtable in nsDiskCacheDevice::Init(). 2001-02-28 04:17:56 +00:00
beard%netscape.com
b50591c434 [not part of build] really delegate GetTransport() to the cache service. 2001-02-28 04:17:24 +00:00
gordon%netscape.com
f2290a6cd4 Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods. 2001-02-28 04:10:43 +00:00
beard%netscape.com
c7f88186cd [not part of build] using nsIPref to find cache directory, first cut at creating nsITransport for cache entries. 2001-02-28 04:00:08 +00:00
beard%netscape.com
391a04f744 [not part of build] removed redundant NULL check in MarkValid(). 2001-02-28 03:59:02 +00:00
gordon%netscape.com
510792cb80 Added MarkDoomed(), MarkStreamData(), and set StreamData in constructor. 2001-02-28 03:54:16 +00:00
gordon%netscape.com
13d79d0bf7 Added DoomEntry() to nsCacheDevice. 2001-02-28 03:42:33 +00:00
darin%netscape.com
42cfde7451 [not part of the build] Added code to the descriptor to call GetTransportForEntry() 2001-02-28 02:19:14 +00:00
darin%netscape.com
1ba483bdea [not part of the build] Added hooks to enable streaming to the mem cache! 2001-02-28 01:41:02 +00:00
beard%netscape.com
a2cb1db911 [not part of build] allocate the nsDiskCacheDevice. 2001-02-28 00:36:07 +00:00
gordon%netscape.com
e14fa0b121 Changed 'getters' on nsCacheEntry to simply return values, rather than require out parameters.
Added a PRCList member and accessors for linking entries on eviction and doom lists.

Moved check for IsStreamBased() from nsCacheEntry::GetData() to nsCacheEntryDescriptor::GetData(), to allow cache devices to set the mData member.

Added checks to nsCacheEntryDescriptor methods to return NS_ERROR_NOT_AVAILABLE if the descriptor is already closed.
2001-02-28 00:06:13 +00:00