Граф коммитов

1096 Коммитов

Автор SHA1 Сообщение Дата
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
darin%netscape.com 218da462f7 [not part of the build] Forgot to update the WIN32 makefile after adding the
CID for the memory cache transport.
2001-02-27 23:15:57 +00:00
darin%netscape.com ae2d382ff8 [not part of the build] Added a debug-only CID for nsMemoryCacheTransport
to allow this class to be independently tested.
2001-02-27 09:06:11 +00:00
dveditz%netscape.com 17034612db fix for topcrash bug 65798, r=neeti, sr=rpotts 2001-02-27 07:41:55 +00:00
beard%netscape.com b38a2785a4 Gordon has much more to say about the last few checkins... But we forgot to wire up nsCacheEntryDescriptor::MarkValid() to nsCacheEntry::MarkValid(). Enjoy the ride. 2001-02-27 05:43:16 +00:00
gordon%netscape.com da22074c6d Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy. 2001-02-27 05:35:53 +00:00
gordon%netscape.com 41f6ec1758 Add virtual methods for desctructor and Init(). Changed ActivateEntryIfFound() to FindEntry(). 2001-02-27 05:33:34 +00:00
gordon%netscape.com db0eae7ff6 Add explicit close() method to decouple descriptor state from cache entry. Close() is an idempotent operation, and will be called by default from the descriptor's destructor. This allows Javascript to release the cache entry earlier than the descriptor may be garbage collected. 2001-02-27 05:29:25 +00:00
darin%netscape.com 8d0d0b8f05 [not part of the build] Added AsyncRead support to nsMemoryCacheTransport. 2001-02-27 04:29:24 +00:00
dougt%netscape.com 4e26add3c6 conditionally compiling new cache. r=dougt/a=gagan 2001-02-27 03:16:59 +00:00
dougt%netscape.com 8518edb494 Conditionally compiling new cache. r=dougt/a=gagan 2001-02-27 02:27:21 +00:00
dougt%netscape.com 9c636b1448 NOT PART OF BUILD. Updating new cache windows makefile to produce a dll. Removing the empty virtual destructor in nsCacheDevice.h 2001-02-26 23:51:03 +00:00
beard%netscape.com 30bb9bbe9a [not part of build] I changed all the declaration of all PRInt32 storagePolicy variables to nsCacheStoragePolicy. 2001-02-26 15:53:31 +00:00
gordon%netscape.com 1849fd2f14 Update Makefile.in to build cache service as separate module. 2001-02-26 14:58:58 +00:00
gordon%netscape.com 7aca7c5812 Begin implementing eviction of memory cache entries. 2001-02-26 14:57:40 +00:00
gordon%netscape.com 4c47d10d3e Updated methods for addition of nsCacheSession. 2001-02-26 14:55:58 +00:00
gordon%netscape.com bf694b72f9 Add the session's storagePolicy to nsCacheRequest, and changed type of mAccessRequested to nsCacheAccessMode. 2001-02-26 14:53:28 +00:00
gordon%netscape.com fadc2c609d Fix HashKey method. 2001-02-26 14:46:54 +00:00
gordon%netscape.com 974bd79339 Add stub methods for getting/setting data size, and getting the transport for a cache entry descriptor. Update for change to Substring parameters. 2001-02-26 14:45:45 +00:00
gordon%netscape.com 55f28b0eba Add code for removing requests and descriptors from cache entries. 2001-02-26 14:42:50 +00:00
gordon%netscape.com e3db681306 Adding files for nsCacheSession implementation. 2001-02-26 14:40:22 +00:00
gordon%netscape.com 1f40874791 Add constants to indicate whether a cache session is streamBased or not. This interface file is not part of the build yet. 2001-02-26 14:27:16 +00:00
darin%netscape.com a012624af4 Initial memory cache nsITransport implementation (not part of the build). 2001-02-26 07:40:34 +00:00
blakeross%telocity.com bbe999182d Backing out doug to fix win bustage. 2001-02-26 00:55:18 +00:00
dougt%netscape.com e52b19822a Adding New Cache interfaces to build 2001-02-26 00:02:44 +00:00
pavlov%netscape.com 07b05160ea fixing unix makefile 2001-02-25 23:13:51 +00:00
dougt%netscape.com e047ff2c94 Fixing return type: 2001-02-25 07:31:13 +00:00
dougt%netscape.com 806ef186c2 NOT PART OF BUILD!!
This is the windows makefile for the new cache.
2001-02-25 07:18:36 +00:00
beard%netscape.com c637de1de1 [not part of build] changes to build correctly on Mac, and link correctly on all platforms. 2001-02-24 04:22:19 +00:00
gordon%netscape.com 58aeb43790 Include nsNetCID.h for cache service contract id. 2001-02-24 02:47:37 +00:00
darin%netscape.com d22de88f0f Made accessGranted be of type nsCacheAccessMode. This is not part of the mozilla build. 2001-02-24 01:36:11 +00:00
darin%netscape.com a19e03ee92 Updating cache IDL documentation. This is not part of the mozilla build. 2001-02-24 01:27:49 +00:00
gordon%netscape.com cb127e5457 Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin. 2001-02-24 01:02:37 +00:00
beard%netscape.com 67f04722d0 [not part of build] stand-alone cache module. 2001-02-24 00:19:43 +00:00
gordon%netscape.com e41f5dd4d8 Remove inheritance from interface, and provide transport as an attribute. This change is not part of the build. 2001-02-23 23:55:42 +00:00
gordon%netscape.com 8706317ae2 Add nsICache.idl for common typedefs and constants. These changes are not part of the build. r = beard, darin. 2001-02-23 23:20:15 +00:00
gordon%netscape.com d13aaaff49 New interfaces for cache service. These are not part of the build. r=beard, darin, gagan. 2001-02-23 22:23:55 +00:00
gordon%netscape.com 0abd1aae6c Adding Makefile.in for new cache service. 2001-02-23 21:05:32 +00:00
gordon%netscape.com 619c6dc8ae Rough first cut of cache service and memory object cache. It currently builds on linux. 2001-02-23 13:18:01 +00:00
gordon%netscape.com 2952a120cd Adding interface files for new cache service. 2001-02-23 00:11:10 +00:00
disttsc%bart.nl a6f2f5861a Mass REQUIRES update to synch up with string lib and xul changes in an attempt to fix senna bustage. r=jst, sr=cls 2001-02-22 09:35:51 +00:00
dougt%netscape.com 128f95aa9b Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-21 20:38:08 +00:00
pinkerton%netscape.com d465909997 carbon changes. r=pink/sdagley/beard. a=sfraser. 2001-02-13 21:48:26 +00:00
disttsc%bart.nl 3d2d80d536 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com 1b9ca82439 Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-10 00:16:26 +00:00
colin%theblakes.com 32c1a5ba47 VMS specific fix; tagFile name needs a case blind compare. b=55950 r=rpotts 2001-02-06 15:28:11 +00:00
darin%netscape.com 6a7567992b Bug 62566. nsIChannel::AsyncWrite interface revision and related cleanup.
r=dougt@netcape.com, sr=mscott@netscape.com.
2001-01-23 22:10:34 +00:00
ccarlen%netscape.com b771c31c26 Fix for #56127 - Was not handling pref changed callback when dir changed. r=gagan, sr=mscott 2001-01-08 15:45:18 +00:00
rpotts%netscape.com f7304a8b71 Fix for assert when loading content from the memory cache (ie. hitting Back). r=jst 2000-12-13 23:11:32 +00:00
vidur%netscape.com 0a4eedc07d Implementation of ReadSegments to support less copying in the parser. r=rpotts, sr=jst 2000-12-12 21:57:47 +00:00
cls%seawood.org 434edd6f33 Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454 2000-11-21 00:18:46 +00:00
cls%seawood.org 66a18fcbbf Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org 2000-11-20 07:16:06 +00:00
alecf%netscape.com fea851d3d1 #45797 - fix consumers of NS_IMPL_ISUPPORTS
r=dveditz a=self
2000-11-17 03:45:13 +00:00
darin%netscape.com 2578f4f795 Fixes bug 59661. Occurances of uninitialized variables... r=gagan, sr=mscott. 2000-11-15 22:21:46 +00:00
dougt%netscape.com cdde07228c Fixes uninitililzed variable. b58510. r=rpotts@netscape.com sr=waterson@netscape.com 2000-10-31 01:05:28 +00:00
dbaron%fas.harvard.edu e339d4bddd Fix refcount logging for nsCachedNetData objects so they don't appear to leak by indicating a refcount of 0 (for deletion) when the RECYCLED flag is set or when the arena is destroyed. r=rpotts@netscape.com sr=scc@mozilla.org b=31367 2000-10-29 21:24:39 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
neeti%netscape.com 74330e429c fix for rtm++ bug 57746 crashes [@ nsDBAccessor::EnumEntry],r=gagan, sr=buster 2000-10-26 19:41:07 +00:00
neeti%netscape.com 8e953029ea fix for rtm++ bug 57326, Crash trying to use the save link as context menu, r=gagan, sr=mscott. 2000-10-25 13:28:39 +00:00
neeti%netscape.com 3132bbdac2 Fix for rtm++ bug 55405 SetSizeEntry(..) called during shutdown could lead to corrupted cache, r=dp,sr=rpotts 2000-10-18 03:59:34 +00:00
neeti%netscape.com 70a7f66f5c fix for rtm++ bug 54630 - Disk cache not writing files after 512 files reached. r=dp, sr=rpotts 2000-10-13 03:01:10 +00:00
neeti%netscape.com 5903029d99 fix for bug 54072,r=dp, sr=rpotts/mscott 2000-10-11 03:03:40 +00:00
dp%netscape.com ba73f394e8 bug 54470 Deleting orphaned entries (no record associated with them)
rather than holding them forever in memory on evict.
r=neeti sr=rpotts
(updating fix from branch 1.29.4.2 to tip)
2000-10-03 22:54:55 +00:00
dp%netscape.com ed5775fa0e bug 54470 Deleting orphaned entries (no record associated with them)
rather than holding them forever in memory on evict.
r=neeti sr=rpotts
(updating fix from branch 1.28.2.2 to tip)
2000-10-03 22:04:15 +00:00
rpotts%netscape.com 6ee197932d bug #41398. The cache manager is now a memory-pressure observer and flushed the memory cache on each notification. 2000-09-30 05:30:22 +00:00
rpotts%netscape.com b9d9430ccd when RemoveAll() is called do not double count the storage being freed... 2000-09-28 23:03:03 +00:00
neeti%netscape.com eb4a98084f fix for crasher nsbeta3++ bug 52818, r=dp, r/a=rpotts 2000-09-28 04:08:22 +00:00
neeti%netscape.com 011f1101ed fix for bug 51095- mStorageInUse grows faster than required if we update files.r=dp,a=mscott 2000-09-22 04:17:22 +00:00
rpotts%netscape.com 63db1a7028 bug #53273 (r=neeti,fur a=me).Clear the TRUNCATED_CONTENT flag when all of the data arrives for a URI. This handles the case where the entry was evicted (and the content was truncated) and is later reused... 2000-09-22 04:12:42 +00:00
bryner%uiuc.edu 8f6f0e85e7 Fixing bustage. 2000-09-15 20:46:06 +00:00
neeti%netscape.com f41b42ce08 Fix for bug 48401.
Number of entries and records limited to 512. All known evict situations fixed.
Causing evict to start happening.
r=dp
2000-09-14 19:12:03 +00:00
dp%netscape.com f578184e52 - Fixing deletion of cache on version change
- DBRecovery(): removing all fancy moves to trash folder. Just delete
  the cache when it is corrupted.
r=neeti
2000-09-14 18:48:57 +00:00
dp%netscape.com bd315704e3 Bumping cache version number up so everyone's corrupted caches uptil
now will be automatically deleted. r=neeti
2000-09-14 18:47:30 +00:00
dp%netscape.com bcd45e9a44 bug 46147 Ignoring record get failures to accomodate uncommited new
entries r=gagan,neeti
2000-09-14 13:51:18 +00:00
dp%netscape.com 42ca1df110 bug 46147 nsDiskCacheRecord::Delete() can ignore file delete errors as
for the file might not exist. r=gagan,neeti
2000-09-14 13:49:07 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
rpotts%netscape.com e11ee74882 Keep the cache size correct when deleting cache entries. 2000-09-13 06:05:06 +00:00
neeti%netscape.com fbbe14b2af fix for bug 50977-After surfing, web pages stop loading. Tossing cache fixes,r=dp 2000-09-11 19:00:40 +00:00
rpotts%netscape.com 8e087079f1 Do not crash when calling GetNExtCache() if the Disk Cache is not available... 2000-09-10 08:11:40 +00:00
rpotts%netscape.com a6a9fc832c Fixed memory leak when calling nsCachedNetData::GetUriSpec(...). 2000-09-10 07:58:27 +00:00
rpotts%netscape.com 77de77a99c Cleaned up the cache selection code in GetCacheAndReplacementPolicy(...). 2000-09-10 06:13:30 +00:00
rpotts%netscape.com 547b224ba4 do not try to evict cache entries that are active... 2000-09-10 06:11:57 +00:00
rpotts%netscape.com b1fc56b6b2 Random improvements to the memory cache... 2000-09-10 06:10:52 +00:00
mscott%netscape.com 81b816da2e Bug #43556 --> remove obsolete reference to old class id for the mime service. use the new one.
r=valeski
2000-09-08 00:24:13 +00:00
dp%netscape.com b6eb1bee31 Fixing mac. No more friends. Making WriteComplete() public. That is
actually what we really want.
2000-09-05 22:32:00 +00:00
dp%netscape.com 8a016036c2 bug 50922 mFile's stat cache isnt refreshed after file changed on
disk. This causes wrong content length and incorrect cache
updates. r=neeti
2000-09-05 21:42:10 +00:00
scc%mozilla.org 44952a090c fixing code that relied on implicit string construction 2000-09-02 21:47:30 +00:00
cls%seawood.org beaefaeca8 Including nsString.h 2000-09-02 00:21:03 +00:00
alecf%netscape.com c4017575b7 another fix for #42102 - removing consumers of nsIFileSpec
r=valeski
2000-09-01 23:36:28 +00:00
gordon%netscape.com b48bfc8c83 Fix for Bug 31900 "[MLK] Leaking CacheInfo objects". The mCaches field is the head of a linked list. I've added code to nsReplacementPolicy destructor to walk the list, deleting the objects along the way, rather than simply deleting the head of the list. 2000-09-01 21:24:40 +00:00
dp%netscape.com 1931787d13 bug 41950 Preventing garbage content lengths from cache. r=neeti 2000-08-29 03:14:28 +00:00
neeti%netscape.com 71e792567f applying Waterson's patch to bug 49108. r=neeti 2000-08-28 13:44:12 +00:00
rpotts%netscape.com 17e544aa84 bug #48546. Implement Get/SetLoadAttributes(...) 2000-08-24 22:56:41 +00:00
rpotts%netscape.com 749abe34f1 bug #48546. The cache channel should delegate the handling of load attributes to the cache channel (ie. disk/memory channel)... 2000-08-24 22:54:45 +00:00
warren%netscape.com e05eef45e9 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
valeski%netscape.com fa79d800a4 49360. removing core cache module from the build on unix. this was missed a few months ago when we started building the cache stuff into netwerk/build 2000-08-21 19:07:49 +00:00
warren%netscape.com e12f238589 Bug 46864 - Embedding needs a name attribute on nsIRequest. 2000-08-21 08:23:54 +00:00
warren%netscape.com d43828f23c Added back in nsOpaqueKey, used in nsMemCache. Went back to 37 as the magic number (prime). 2000-08-21 02:37:20 +00:00
ruslan%netscape.com 394519c970 Fix 47408, a=gagan,r=neeti 2000-08-11 21:31:13 +00:00
warren%netscape.com 84b5fd67e3 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson 2000-08-10 06:19:37 +00:00
valeski%netscape.com 4275f64f82 38260. removing shadowed rv declaration, and xpfe #include dependency 2000-08-08 21:43:47 +00:00
mkaply%us.ibm.com 1e502bd8e0 #47881
r=valeski, a=brendan
OS/2 tinderbox break - we need to link mozdbm
2000-08-08 21:05:59 +00:00
valeski%netscape.com 4ad9286280 47881, r=dougt. removing extraneous static link of dbm lib, and fixing the file cache so it does the static link 2000-08-08 00:20:23 +00:00
neeti%netscape.com 70e2ba8ffa fix for bug 40084, [CRASH] Crash in disk cache code, backed out changes made on 7/27, put new fix
fix for bug 46014, No keywords loaded on bugzilla pages, r/a=gagan
2000-07-29 02:32:14 +00:00
neeti%netscape.com 41ff58d508 fix for bug 40084 - [CRASH] Crash in disk cache code, r/a=gagan 2000-07-27 14:28:48 +00:00
warren%netscape.com 2b01440bc0 Factored string bundles out of necko. Fixes bug 42107 - need to fix string bundle init workaround. Also bug 40506 - nsIWebProgressListener needs status text. Status messages now work in mozilla and viewer with internationalized and parameterized text! Added temporary error architecture until bug 13423 can be fixed. Extended nsIStringBundleService to provide method to format status message. r=valeski,jband,tao. verified=mstoltz 2000-07-25 05:45:56 +00:00
neeti%netscape.com c5cd14f561 Fix for bug 38244 - modified files cached incorrectly,r=ruslan@netscape.com 2000-07-21 04:33:26 +00:00
dougt%netscape.com d84c495203 bug 40750.
Adding followSymlink flag to nsILocalFile.
Adjusting callers.
windows shortcut optimizations.
r=blizzard@mozilla.org.
a=brendan@mozilla.org
2000-07-12 23:31:31 +00:00
warren%netscape.com 7ce825ddd8 Fixed comment 2000-07-07 23:43:00 +00:00
ruslan%netscape.com d2c1fc301c Fix 42377 - make http SetNotificationCallbacks go through the proxy object, thus
avoiding crashers when OpenInputStream is used, a=gagan,warren
2000-07-05 22:57:50 +00:00
cls%seawood.org 1f3b6d75ab Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
rusty.lynch%intel.com 7367543c9a David Baron's patch to fix bug #41172. r=waterson 2000-06-26 21:03:19 +00:00
neeti%netscape.com cf07bf69ec Removing an useless include xpcomio_s from the Makefile.r/a=gagan 2000-06-26 19:57:41 +00:00
valeski%netscape.com f0fec56b70 42767. AsyncOpen (dead code) removal. 2000-06-16 14:39:19 +00:00
warren%netscape.com 512c8bf433 Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
warren%netscape.com 88151adad6 Fix to make jar protocol not copy local files. Starting to get chrome to work with jars. Bug #18433 2000-06-02 23:39:45 +00:00
dveditz%netscape.com 6ac995b23d solving missing .xpt file install issue 2000-06-02 08:10:41 +00:00
mkaply%us.ibm.com 8063571b08 # 37239
r = gagan, a = brendan
OS/2 bringup continues on M16 - Changes for VisualAge build (casts, PR_CALLBACK)
2000-05-30 14:56:52 +00:00
brade%netscape.com 4bf37f3e3f File Removed. 2000-05-25 14:25:11 +00:00
davidm%netscape.com c4fa42cc1c 34545 blo P1ermissions of 000 for disk cache directories r= sspitzer 2000-05-19 02:14:04 +00:00
cls%seawood.org a8000b8bb5 Mass replace of -lmozjs with $(MOZ_JS_LIBS) needed for OS/2 and consistency. 2000-05-17 06:45:45 +00:00
ruslan%netscape.com 7c57f0befa Fix return code error, davidm 2000-05-17 00:32:47 +00:00
davidm%netscape.com e67e10847a 34314 Remove execute permission from cache files 2000-05-16 21:58:17 +00:00
jdunn%netscape.com 7115e67255 Fix alignment problem with DB reads.
r= davidm@netscape.com, wtc@netscape.com
#= 38884
2000-05-13 15:05:18 +00:00
jgaunt%netscape.com 19d5868936 hp only fix, word boundary problem
bug # 37482  r=jdunn@netscape.com
2000-05-10 01:11:22 +00:00
davidm%netscape.com c986db0a37 37071 Crash while downloading anything 37353 browser segfaults on page loading 2000-05-07 05:38:02 +00:00
warren%netscape.com 185c96de20 Combined all necko dlls into two. Bug 17031. 2000-05-06 09:15:56 +00:00
davidm%netscape.com 538f53ea9a Use QI to prevent a nsCOMPtr assert 2000-05-05 03:09:08 +00:00
davidm%netscape.com d02c8bd902 change from nsIEnumerator to nsISimpleEnumerator since that is the interface that the class actually implements 2000-05-05 03:08:26 +00:00
sspitzer%netscape.com 06fb0d06ec fix assertion, reported by mjudge. 2000-04-28 08:09:57 +00:00
ruslan%netscape.com 89455c8bd4 Turn on nsHTTPFinalListener to fix various notification bugs, r=gagan. Make
disk cache classes implement threadsafe_isupports, r=davidm, add placeholder
for resource bundles for necko.
2000-04-28 06:36:31 +00:00
mscott%netscape.com 8fd8ee025a implement GetContentLength for a memory cache entry. This helps us report
progress for items coming out of the cache
2000-04-25 01:48:48 +00:00
cls%seawood.org 8754202470 General cleanup of the shared library rules.
Quick fix for bug #36844.
Since people kept forgetting to wrap SHARED_LIBRARY_LIBS inside MKSHLIB_FORCE_ALL & MKSHLIB_UNFORCE_ALL pairs, we now handle it in rules.mk.  Same goes for making $(SHARED_LIBRARY) dependent upon $(SHARED_LIBRARY_LIBS).
2000-04-23 17:48:04 +00:00
danm%netscape.com a0fe6c9940 stop up a couple of leaks. r=davidm 2000-04-21 21:23:10 +00:00
davidm%netscape.com 871baea0d9 28412 metaDataLength is wrong in nsCachedNetData::Deserialize Update streamasfile interface to be a file rather than filename. 2000-04-19 04:55:57 +00:00
davidm%netscape.com 1ca037af67 Fix problem with prefs not being initialized 2000-04-19 04:43:04 +00:00
davidm%netscape.com 59af07abb0 35197 Leaking nsFileSpecImpl 2000-04-19 04:41:28 +00:00
ruslan%netscape.com 848ca9862f Fix 35508, 33762, 35024. 2000-04-14 21:10:27 +00:00
warren%netscape.com 2979b9b4c6 Added nsIZipReaderCache. Removed nsIZipReader::ParseManifest. Got jar: protocol going for downloaded jars and input streams. Added assertions that Cancel is called with a failure code. 2000-04-12 07:58:24 +00:00
mkaply%us.ibm.com 16e912ab31 # 34082
r= warren@netscape.com
OS/2 Visual Age build - Adding PR_CALLBACK to some functoins for linkage
2000-04-05 02:32:07 +00:00
davidm%netscape.com d1da2233ff 34314 Whacky permissions on Cache directories. 2000-04-05 00:08:21 +00:00
cls%seawood.org fdd09457b4 Fix for EXTRA_DSO_LIBS in rules.mk
OS/2 Makefile.in changes (Patch 4a).  Bug #34106
2000-04-04 07:37:50 +00:00
warren%netscape.com 91aed9a261 Changed 'default' content type to application/x-unknown-content-type (was text/html!). 2000-04-04 07:13:22 +00:00
cls%seawood.org f6740baa20 Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287 2000-04-04 04:46:38 +00:00
davidm%netscape.com 7d74a5a853 viewer crashing on http url 2000-04-03 22:53:39 +00:00
davidm%netscape.com 12bc8b0f4f unregister pref callbacks turn on compile flag for disk cache 2000-04-03 01:58:17 +00:00
davidm%netscape.com 7e8ae39cbf unregister pref listeners r = gordon@netscape.com 2000-04-03 01:56:15 +00:00
davidm%netscape.com 9d9886c47f update channel to work with warrens changes 2000-04-03 01:47:43 +00:00
davidm%netscape.com 9c35ae4635 32610 nsReplacementPolicy::LoadAllRecordsInAllCacheDatabases( 2000-04-03 01:46:45 +00:00
scc%netscape.com 52e40e9c6d making string conversions explicit 2000-04-01 22:31:00 +00:00
jim_nance%yahoo.com dc0e139673 Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  r=troy@netscape.com
2000-03-30 03:21:26 +00:00
alecf%netscape.com 08200aa661 reduce dependancies on nsIPref.h 2000-03-29 09:46:39 +00:00
warren%netscape.com 998a989f7d Added prio.h for linux. 2000-03-29 04:46:19 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
dougt%netscape.com 72979944e8 removing checks for null before calling delete(). I do not know what I was
thinking.  davidm pointed this out.
2000-03-28 11:39:06 +00:00
bruce%cybersight.com 9493200111 Fix for memory leak. r=gordon bug #28902 2000-03-18 04:10:27 +00:00
dougt%netscape.com 8126ff53b4 Adding GetSecurityInfo to the nsIChannel. bug 29646. r=warren. 2000-03-17 22:06:32 +00:00
gagan%netscape.com f1c26981bb Fix a mem leak. r=bruce. 2000-03-16 04:15:38 +00:00
dougt%netscape.com 5bb01f0609 adding checks before delete(). 2000-03-15 07:47:33 +00:00
gagan%netscape.com c6349ecc8b Fix for 30385. We were leaking channel due to the no longer needed "proxy channel" by the cache transport (mem cache) Also removed nsIHttpEventSink.h since its now an IDL. Also fixed 31667, 31222, 31657 (the assertion failures for thread safety) 2000-03-14 03:24:56 +00:00
warren%netscape.com c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
rpotts%netscape.com 04d8935869 bug #24711 (r=gagan). Changed cache channels to behave like transports rather than protocol channels... nsCacheEntryChannel.cpp 2000-02-29 04:45:14 +00:00
davidm%netscape.com a8348da192 26171 Trigger bigfile .xpi a 2nd time results in -207 install fail 25585 Leaking a C string 25590 Leaking C string in cache co 20893 Cache preferences need to be hooked up r = gordon@netscape.com 2000-02-16 07:48:06 +00:00
rpotts%netscape.com bfb8fe0af9 Too many OnStopRequest(...) calls were being made by the memcache in AsyncReadStreamAdaptor::Cancel(...). It turns out that Cancel() is called more than once. Each call was generating an OnStopRequest(...). This was later triggering an ASSERT that mDownstreamListener was NULL 2000-02-12 06:18:50 +00:00
scc%netscape.com 73802d6f2e Pro5 update 2000-02-07 23:06:04 +00:00
sspitzer%netscape.com b8c3a871df some bulletproofing code. I got a random crash here (sorry, I lost the stack) because the
downstreamlister was null.  trying to reproduce.  at least now it will only assert.
r=mscott
2000-02-05 01:20:09 +00:00
mcafee%netscape.com f20ed5907b Fixing /* within /* warning, r=slamm 2000-02-04 02:56:48 +00:00
sdagley%netscape.com 813f53ead8 Access path updates in anticipation of update to CW Pro5 (#25949). r=pinkerton 2000-02-01 04:27:22 +00:00
gagan%netscape.com 2113f0d630 We had a nsCOMPtr on a class instead on a interface (along with the problem that its default constructor was protected) This was preventing the cache from being built on AIX. Should work now. r=self(& scc) See bug 24876 2000-01-25 03:11:16 +00:00
dougt%netscape.com 0b0346079c Landing nsIFile. 2000-01-24 21:28:28 +00:00
mscott%netscape.com 4ab4a29bdf Bug #24796 --> the fix for the cache manager friday night broke quoting msgs
for imap (which uses the memory cache). You don't need a load group to run a url
through the cache....so don't return an error if the load group is null
r=bienvenu
2000-01-24 00:32:14 +00:00
valeski%netscape.com 09d0af3430 24250. r=gordon,mscott,warren. We now ensure that a cache entry adds itself to the loadgroup *before* the load group goes away. This allows the editor to 'Edit Page's again. 2000-01-21 23:58:29 +00:00
mscott%netscape.com c18efc0320 add nsIStreamObserver to QI method. Since it is inherited from nsIStreamListener, you need to explicitly list both
otherwise it generates an assert when you use a nsCOMPtr to QI for a method on nsIStreamObserver
2000-01-13 03:17:38 +00:00
rpotts%netscape.com 023f2ff6e1 Made contentType a read/write attribute of nsIChannel 2000-01-08 06:26:04 +00:00
jdunn%netscape.com 33b9771398 Move the Class definition for CacheInfo from the CPP file to the header.
While this is valid C++, the AIX 3.6 compiler doesn't like it.

r= warren
2000-01-06 20:50:59 +00:00
colin%theblakes.com 0800ef0b74 Add MOZ_COMPONENT_LIBS. r=jdunn 2000-01-06 11:06:54 +00:00
jdunn%netscape.com 20691ec6d3 |T| requires an accessible default constructor (on some old compilers)
r= scc@netscape.com
2000-01-06 00:43:19 +00:00
rpotts%netscape.com 672c0938ff Removed over aggressive assert when the loadgroup listener factory does not exist 2000-01-04 05:46:47 +00:00
dougt%netscape.com 43d538707a Including nsIAllocator.h directly. 2000-01-03 23:23:33 +00:00
fur%geocast.com a516109cda Added assertion and trivial recovery code to catch the case of a load group
listener factory that reports success, but nevertheless returns a NULL stream
listener.
1999-12-18 14:59:59 +00:00
fur%geocast.com 94eddbd362 Fix #21660 (Browser buster crash in cache). a:chofmann 1999-12-18 14:58:09 +00:00
sdagley%netscape.com 7f46d43ea4 Checking in fur's fix for #21162 - throbber animation not stoping. Also major speed improvment on NT and Mac. a=brendan 1999-12-11 02:25:00 +00:00
alecf%netscape.com 9eb84400c8 fix bustage so I can check in 1999-12-08 06:44:18 +00:00
fur%netscape.com e422da8a9b It turns out that PR_Now() has only one second resolution on the Mac, hence it's unsuitable for computing download rates for the cache. Thanks to sdagley for pointing this out. 1999-12-08 05:46:31 +00:00
fur%netscape.com ed725966ce + Handle the case of inability to write into cache correctly.
+ Be more aggressive about clearing the UPDATE_IN_PROGRESS flag on the cache entry
1999-12-08 03:32:56 +00:00
fur%netscape.com 82e896700b Change failure to shut down memory cache cleanly into a warning, instead of an assertion 1999-12-08 03:29:21 +00:00
fur%netscape.com 971124a079 Change name of cache lib from libnkcache.so to libnecko_cache.so, to be more consistent with other necko components 1999-12-07 22:16:58 +00:00
fur%netscape.com 45bb9c5427 + Eliminated use of bool to accommodate non-ANSI C++ compilers.
(Thanks to tor@cs.brown.edu for the patch)
+ Eliminated compiler warnings
1999-12-07 09:49:55 +00:00
sspitzer%netscape.com 736cf231a3 ignore the generated Makefiles 1999-12-07 09:31:05 +00:00
fur%netscape.com 771d577a8e Fixed incorrect calculation of content download time and profitability of caching a given URL. r:none 1999-12-07 08:51:03 +00:00
fur%netscape.com c9ad7f29ae Increase default memory cache capacity to 1M from 100KB testing value 1999-12-07 08:49:42 +00:00
fur%netscape.com 4bfc9b0810 Sun compiler requires nsCOMPtr types to be fully defined 1999-12-07 07:51:31 +00:00
fur%netscape.com bb0b094ab5 Include definition of nsIStorageStream class to satisfy Sun compiler 1999-12-07 07:05:31 +00:00
sfraser%netscape.com 1c1ea70b42 Add DBM to the project. r=fur 1999-12-07 06:48:22 +00:00
sfraser%netscape.com 11bbeee76c First Checked In. 1999-12-07 06:43:19 +00:00
sfraser%netscape.com f63f0d0e73 Changing usage of nsCOMPtr on a non-interface pointer to raw addref-release. r=fur 1999-12-07 06:32:52 +00:00
sfraser%netscape.com d7bec0c5bc Some casts and a .get() so that it compiles on Mac. r=fur 1999-12-07 06:31:14 +00:00
sfraser%netscape.com e72089e1d6 Fixes to build on Mac, where PRInt64 is a struct, and fix a typo. r=fur 1999-12-07 06:29:13 +00:00
sdagley%netscape.com 07e8b3cac6 First Checked In. 1999-12-07 06:05:45 +00:00
fur%netscape.com f084d505e3 + Added cast to help Mac compile
+ Fixed problem in which download-time was not being computed (#8305)
1999-12-07 04:54:05 +00:00
fur%netscape.com 1a5893f09f Christ, forgot the semicolon 1999-12-07 04:49:43 +00:00
fur%netscape.com f9af2987a9 Remove test code 1999-12-07 04:45:44 +00:00
pavlov%netscape.com 78ef5d486d build cache build r=fur 1999-12-07 04:29:26 +00:00
fur%netscape.com a3e4a5596f Landing of CacheIntegration_BRANCH in support of bug #8305 (Implement cache) 1999-12-07 02:07:31 +00:00
dougt%netscape.com f66be6c30c fix for 18078. r=mstoltz,warren 1999-11-30 00:32:43 +00:00
warren%netscape.com 59ef7fadbf Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +00:00
warren%netscape.com 34ecf73507 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
cls%seawood.org dcb3aa39d9 Replaced NO_SECURITY ifdef with MOZ_SECURITY one. This causes pref_VerifyLockFile to always return PR_TRUE rather than linking against the dummy secfree library. This replacement also removed the last dependency upon that dummy library so it will no longer be built (next patch). 1999-11-09 23:13:53 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
fur%netscape.com 28ad514473 Checkpoint 1999-11-05 21:58:37 +00:00
cls%seawood.org bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
fur%netscape.com d372095c34 Initial version of net data cache APIs 1999-10-15 00:46:41 +00:00
waterson%netscape.com bdfcaec321 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 03:05:10 +00:00
dveditz%netscape.com ff01d5e8f4 Fixing 8.3 library name problems, bugs 10355, 10359,10364, 10365, 10372, 11796, 11791. Checking in for cathleen, r=dveditz 1999-10-10 01:32:59 +00:00
fur%netscape.com 4bb28b8cda Updated API 1999-10-01 21:30:53 +00:00
fur%netscape.com 83b33c9a8b Initial cut at network cache IDL 1999-09-20 06:43:24 +00:00
briano%netscape.com a54c669e40 General cleanup. 1999-09-14 01:35:43 +00:00
hoa.nguyen%intel.com adf82b7cf1 Initial checking 1999-09-10 23:17:09 +00:00
hoa.nguyen%intel.com 3ab6a57a1d Initial checkin 1999-09-10 23:16:40 +00:00