gordon%netscape.com
d97a9680bb
[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
darin%netscape.com
9798e10ddf
[not part of the build] Add some more logging when using new cache, and
...
make HTTP use the mem cache always (for now).
2001-03-08 00:59:39 +00:00
dougt%netscape.com
a20813cda7
NOT PART OF BUILD. this makes ftp work with the cache a bit better.
2001-03-08 00:59:19 +00:00
darin%netscape.com
36c8e02387
Added nsStreamListenerTee to necko component. This is only used by the new
...
cache. r=gordon,beard
2001-03-08 00:58:06 +00:00
gordon%netscape.com
7c641b657e
Added nsStreamListenerTee.cpp to netwerk.mcp. r = saari.
2001-03-08 00:54:33 +00:00
dougt%netscape.com
5e10b05760
Adding break's to the switch statement. r=darin/sr=gagan
2001-03-08 00:49:31 +00:00
valeski%netscape.com
29347061b9
64804. r=dougt. fixing long broken stream converter chaining.
2001-03-08 00:41:53 +00:00
beard%netscape.com
66283015cc
[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
fee79568ba
[not part of the build] Added implementation files for nsIStreamListenerTee.
2001-03-07 12:54:45 +00:00
darin%netscape.com
95e4eaf8b4
[not part of the build] Added nsIStreamListenerTee for the new cache.
2001-03-07 12:53:39 +00:00
darin%netscape.com
235d4c9c4f
[not part of the build] HTTP now compiles with MOZ_NEW_CACHE defined.
2001-03-07 12:19:27 +00:00
darin%netscape.com
01400ef311
[not part of the build] Fixes some bustage under GCC 2.96
2001-03-07 09:55:54 +00:00
gordon%netscape.com
5e4ce20c72
[not part of build] Added test cases for ACCESS_READ of non-existent entry and ACCESS_WRITE of existing entry.
2001-03-07 09:31:45 +00:00
gordon%netscape.com
f81ce84791
[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
darin%netscape.com
25c049947f
Added some error checking.
2001-03-07 06:35:36 +00:00
beard%netscape.com
a0c75f4b54
Implement pre-seeking when underlying seekable output streams. r=darin, r=gordon
2001-03-07 04:07:05 +00:00
beard%netscape.com
3b05755203
[not part of build] don't overwrite a NULL pointer.
2001-03-07 04:05:36 +00:00
beard%netscape.com
ecdc096b8f
[not part of build] Using async open & read.
2001-03-07 04:04:33 +00:00
beard%netscape.com
7d86759af8
[not part of build] Added synchronous http (unimplemented).
2001-03-07 04:03:39 +00:00
mkaply%us.ibm.com
480b5928d2
IRIX breakage - CR/LF problem on dougt checkin
2001-03-07 03:04:02 +00:00
darin%netscape.com
565c9d0ca0
[not part of the build] Initial work to conditionally compile HTTP against the new cache.
2001-03-07 02:53:34 +00:00
gordon%netscape.com
de94cdb92c
[not part of build] Add security info attribute to nsICacheEntryDescriptor.
2001-03-07 02:47:08 +00:00
beard%netscape.com
19c502a1ae
[not part of build] Added GetFile() to implement the file attribute.
2001-03-07 01:40:41 +00:00
beard%netscape.com
a8f0adf0ff
[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
f91d2a58a2
minor coding style cleanup.
2001-03-07 00:55:43 +00:00
darin%netscape.com
9212d599bd
[not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable.
2001-03-06 22:04:05 +00:00
darin%netscape.com
ea8e49fbaf
[used only by the new cache] nsStorageTransport incorrectly returned TRUE for GetNonBlocking. r=dougt
2001-03-06 20:29:06 +00:00
dougt%netscape.com
1e95849b51
NOT PART OF BUILD. moving the getMetdata up a bit
2001-03-06 20:22:01 +00:00
darin%netscape.com
a93ef4a45d
Indentation, whitespace, and comment cleanups.
2001-03-06 08:46:57 +00:00
darin%netscape.com
cc6191fb0d
Indentation, whitespace, and comment cleanups.
2001-03-06 08:25:18 +00:00
darin%netscape.com
857a8a4b56
Indentation, whitespace, and comment cleanups.
2001-03-06 08:17:03 +00:00
darin%netscape.com
a8ec6ba8d7
[not part of the build] Fixes bustage resulting from bryner's nsITransport changes.
2001-03-06 07:35:54 +00:00
bryner%uiuc.edu
c69ae1d03b
Fixing build bustage.
2001-03-06 06:22:58 +00:00
bryner%uiuc.edu
fe7685bf7a
forgot a file
2001-03-06 05:44:53 +00:00
jj%netscape.com
e6bdc3f5d0
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott. (jj checking in for bryner)
2001-03-06 05:10:55 +00:00
bryner%uiuc.edu
3f9323934e
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
2001-03-06 05:10:33 +00:00
bryner%uiuc.edu
8aeb50199f
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
2001-03-06 05:00:47 +00:00
gordon%netscape.com
37ba307679
[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
dbaron%fas.harvard.edu
ff70fd565b
Fix server name not showing up in status bar for FTP connections. b=66682 r=dougt@netscape.com sr=mscott@netscape.com
2001-03-06 03:32:07 +00:00
beard%netscape.com
fad4f5ce4f
[not part of build] Increased number of downloads/reads to 50, added median().
2001-03-06 03:29:08 +00:00
gordon%netscape.com
98bc4c37ef
[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
dbaron%fas.harvard.edu
ae1d87a803
Add pref to REQUIRES to fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage.
2001-03-06 03:24:57 +00:00
darin%netscape.com
8b582a271a
[not part of the build] Prevent crash in error case.
2001-03-06 03:12:24 +00:00
dougt%netscape.com
9bab98efa0
Fixing windows bustage.
2001-03-06 02:21:37 +00:00
dougt%netscape.com
ce8d4c6c69
Adding nsIndexToHTML.
2001-03-06 02:14:59 +00:00
dougt%netscape.com
22ce951fef
Fixes 64795 - Allows viewing FTP without the treewidget. r=valeski@netscape.com, sr=waterson@netscape.com
2001-03-06 02:14:42 +00:00
beard%netscape.com
86cd82e240
[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
a5d8f7381b
[not part of the build] Fixes sync OpenCacheEntry bustage.
2001-03-06 01:40:20 +00:00
dougt%netscape.com
cb21d20cb5
Fixes 68483 as well as fixes some mem leaks cause by canceling a request. r=darin@netscape.com, sr=waterson@netscape.com
2001-03-06 01:27:54 +00:00
darin%netscape.com
a241c9c2d5
[not part of the bulid] Fixes GCC 2.95 bustage.
2001-03-05 23:50:26 +00:00
beard%netscape.com
ba09aa50fd
[not part of build] Initial cache performance test.
2001-03-05 15:23:59 +00:00
gordon%netscape.com
ad145d67a9
[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
1db11411c2
[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
beard%netscape.com
8978769deb
Release mCacheEntry in nsFtpState::StopProcessing() rather than when reallocated in nsFtpState::Connect(). This causes the cache entry to closed sooner only when MOZ_NEW_CACHE is defined. r=dougt, sr=gagan
2001-03-05 03:50:14 +00:00
beard%netscape.com
1c248c3aa9
Since file streams can't be non-blocking, return that fact from nsFileOutputStream::GetNonBlocking(). r=dougt, sr=gagan
2001-03-05 03:43:33 +00:00
beard%netscape.com
da800d634a
Fix bug where overridden Close() doesn't get called in base class destructor. r=dougt, sr=gagan
2001-03-05 03:42:24 +00:00
beard%netscape.com
bb360af4ab
Delegate GetNonBlocking/SetNonBlocking to wrapped output stream. r=dougt, sr=gagan
2001-03-05 03:40:41 +00:00
pavlov%netscape.com
317f1dc760
[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
3f57ca8c56
[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
692e5438d8
[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
41ac5b215e
[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
f7933b339c
[not part of build] removed memory transport files.
2001-03-03 03:42:57 +00:00
beard%netscape.com
dc318fa7c8
[not part of build] Added debug harness, explicit doom.
2001-03-03 03:42:10 +00:00
beard%netscape.com
05aac4c419
[not part of build] dooming works during forced write, and explicitly, see TestDiskCache.js for example.
2001-03-03 03:41:38 +00:00
darin%netscape.com
5eff59b323
OS/2 didn't like inheriting a nsStorageTransport::ns{In,Out}putStream from
...
nsStorageTransport::nsBlockingStream since both are declared with private
access in nsStorageTransport. This should fix the problem.
2001-03-03 03:07:10 +00:00
gordon%netscape.com
5fe3fdac08
[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
8a7011a63d
[not part of the build] updated the module file for the removal of nsMemoryCacheTransport
2001-03-03 02:27:18 +00:00
beard%netscape.com
c21012883d
Added nsStorageTransport.cpp. r=gordon
2001-03-03 02:21:37 +00:00
darin%netscape.com
978a35a409
Bug 70707. Added CID/ContractID for nsStorageTransport.
2001-03-03 02:11:19 +00:00
darin%netscape.com
6c82a1709c
[not part of the build] Make mem cache use nsStorageTransport.
2001-03-03 01:59:03 +00:00
darin%netscape.com
18d9e7803f
Bug 70707. Pulled generic transport implementation out of new memory cache
...
and created netwerk/base/src/nsStorageTransport.{h,cpp}
2001-03-03 01:57:37 +00:00
dougt%netscape.com
e06eff1a36
This is not part of the build (it is currently IFDEF'ed off. Conditionally allows ftp to use the new cache. r=gagan@netscape.com
2001-03-03 01:40:36 +00:00
valeski%netscape.com
381d07e11a
sr=rpotts. 61160. allowing buffering if we haven't started a sub response yet.
2001-03-03 00:59:42 +00:00
beard%netscape.com
1338ff6e0b
[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
74679406ed
[not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure!
2001-03-03 00:00:29 +00:00
gordon%netscape.com
6ce0ccda34
[not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard.
2001-03-02 23:50:53 +00:00
darin%netscape.com
06bfa84268
[not part of the build] Added implementation of nsMemoryCacheReadRequest::Available
2001-03-02 22:28:38 +00:00
beard%netscape.com
872e35d85d
[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
cb5309e789
[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
043186b34e
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
52bd751172
[not part of build] Added metadata test.
2001-03-02 05:00:34 +00:00
beard%netscape.com
d0e68a00be
[not part of build] took out unnecessary OpenTransport libraries.
2001-03-02 04:57:42 +00:00
beard%netscape.com
362163351d
Now reading/writing all metadata into disk cache.
2001-03-02 04:57:09 +00:00
beard%netscape.com
b98758d275
[not part of build] Added CalculateSize() to account for null termination of strings.
2001-03-02 04:54:27 +00:00
beard%netscape.com
78e82c5bb1
[not part of build] Added FlattenMetaData()/UnflattenMetaData().
2001-03-02 04:09:01 +00:00
gordon%netscape.com
9edfcd7fd6
Fix casing of SetMetaDataElement method.
2001-03-02 01:52:29 +00:00
gordon%netscape.com
6c09c5a1de
[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
bf69d7c0b9
not part of build. we should init the cache meta data.
2001-03-01 21:27:11 +00:00
gordon%netscape.com
d7b78b8520
[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
8901ec09dd
[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
e04bbbd9f1
[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
39035cb7cd
[not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor.
2001-03-01 19:32:41 +00:00
beard%netscape.com
c6f34b986d
[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
8ed9fd2751
[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
8a597b5932
[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
646885530b
[not part of build] Make ~nsCacheOutputStream() virtual
2001-03-01 09:51:22 +00:00
beard%netscape.com
27d05b3058
[not part of build] Fix LL bustage.
2001-03-01 08:38:50 +00:00
beard%netscape.com
e72e807a38
[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
dougt%netscape.com
88053166e5
NOT PART BUILD BUILD YET. Checking in indexed to html converter
2001-03-01 07:22:19 +00:00
gordon%netscape.com
fbf1b173c4
[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