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
13ad31dce4
Adding two idls to be exported.
2001-03-12 23:45:48 +00:00
dougt%netscape.com
cd43b2c59a
Fixing line endings
2001-03-12 23:31:46 +00:00
disttsc%bart.nl
c16472211e
Part of string clean-up bug 70143, move last three #includes of "nsString2.h" over to "nsString.h". r=bryner, sr=scc
2001-03-12 23:17:18 +00:00
dougt%netscape.com
02921f234e
Adds a '..' to children directories. r=dougt@netscape.com
2001-03-12 22:57:34 +00:00
dougt%netscape.com
a37f642ed0
Adding Two IDL files to project file. Minor Necko build change per API review. r=valeski@netscape.com
2001-03-12 22:41:47 +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
shaver%mozilla.org
fcf7cd0d9f
67699: all your nsIClassInfo is belong to us
...
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
testing
2001-03-12 20:43:02 +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
beard%netscape.com
d931f60a66
[not part of build] wrapped test case in test function.
2001-03-12 15:36:51 +00:00
beard%netscape.com
df28df1672
[not part of build] Tests simultatenous writing of two cache entries which collide (same hash code).
2001-03-12 15:35:55 +00:00
darin%netscape.com
3bbad52377
[not part of the build] Fixed up HTTP cache validation for use with new cache.
2001-03-12 10:36:20 +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
ccarlen%netscape.com
c819a81536
Along with bug 65212 - removing unnescesary dependencies on profile. r=valeski@netscape.com, sr=alecf@netscape.com
2001-03-11 22:15:22 +00:00
ccarlen%netscape.com
4b14f2ddc4
Bug 65212 - profile support for kiosk mode. Also, removing profile change observer strings from header to cut dependencies. r=valeski@netscape.com, sr=alecf@netscape.com
2001-03-11 22:12:21 +00:00
darin%netscape.com
7097eae6c9
Fixes bug 71495. Landings to necko cause PSM 2.0 to not work. r=bryner, sr=mscott.
2001-03-11 21:11:47 +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
darin%netscape.com
1c900d7237
Adding comment line.
2001-03-11 18:07:01 +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
valeski%netscape.com
85015a6d5a
sr=alecf. 71086. removing manual stream converter chaining in favor of the automatic chaining that the stream converter service supports.
2001-03-10 18:19:57 +00:00
valeski%netscape.com
ec271e8e9c
r=blizzard, sr=alecf. 71258. we were returning the wrong end of the converter list. also updating the test converter to be a little smarter.
2001-03-10 18:18:36 +00:00
darin%netscape.com
807a75d71b
Removed spurious MOZ_NEW_CACHE lines from Makefile.in
2001-03-10 09:38:28 +00:00
darin%netscape.com
fea9a0fb4d
Removed spurious MOZ_NEW_CACHE line from Makefile.in
2001-03-10 09:37:49 +00:00
darin%netscape.com
3ffb5df348
[not part of the build] Added initial about:cache implementation for new cache.
2001-03-10 09:35:44 +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
dbaron%fas.harvard.edu
7ecde6730c
Fix user-agent for Windows NT versions above 5.0. b=62663 r=valeski@netscape.com sr=mscott@netscape.com
2001-03-10 03:16:32 +00:00
darin%netscape.com
b8b5c77620
Added some comments.
2001-03-10 01:03:05 +00:00
darin%netscape.com
5b97f2a839
Fixes bug 71391. Leaking sockets with CLOSE_WAIT status during page loads.
...
r=dougt sr=mscott
2001-03-10 00:58:54 +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
rpotts%netscape.com
abe013ddbe
bug #70736 (r=darin@netscpe.com). Fix to nsInputStreamChannel to get the notification callbacks working...
2001-03-09 23:27:47 +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
0313a7eb10
[not part of build] Tests cache visitation API.
2001-03-09 18:59:53 +00:00
beard%netscape.com
1ec94db8a7
[not part of build] Fix cache directory creation logic again.
2001-03-09 17:14:02 +00:00
darin%netscape.com
2bd048862e
Change to NS_IMPL_THREADSAFE_ISUPPORTS to fix spurious warnings.
2001-03-09 11:22:24 +00:00
darin%netscape.com
6ec7e17440
Fixes bug 71317. Leak increase on tinderbox. r=bryner sr=mscott,alecf
2001-03-09 07:41:58 +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
disttsc%bart.nl
8b43034cef
Change implicit conversion from
...
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|
to explicit |get()|.
Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).
Bug=53057, r=alecf, sr=scc
2001-03-08 08:05:05 +00:00
darin%netscape.com
01253d7390
Fixes bug 66516. Topperf regression from 1/23. r=dougt, sr=mscott
2001-03-08 07:53:40 +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
darin%netscape.com
68fa1253bd
[not part of the build] Fixed bugs in HTTP's MOZ_NEW_CACHE build.
2001-03-08 04:26:43 +00:00
darin%netscape.com
c372765ee5
Fixes redness on tinderbox.
2001-03-08 03:30:33 +00:00
darin%netscape.com
9fbee055cc
Making nsStreamListenerCID available to non MOZ_NEW_CACHE builds.
2001-03-08 01:52:36 +00:00
dougt%netscape.com
9abc147712
Adding two new interfaces based on API review. Bugs: (71060,71056,71055). NOT PART OF BUILD YET
2001-03-08 01:11:58 +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
darin%netscape.com
3fcddb5a44
[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
ad4d6cb65a
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
26b8bd34f2
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
bf70d028ae
Added nsStreamListenerTee.cpp to netwerk.mcp. r = saari.
2001-03-08 00:54:33 +00:00
dougt%netscape.com
364b8176ca
Adding break's to the switch statement. r=darin/sr=gagan
2001-03-08 00:49:31 +00:00
valeski%netscape.com
44570a6c2d
64804. r=dougt. fixing long broken stream converter chaining.
2001-03-08 00:41:53 +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
e0c911235f
[not part of the build] Added implementation files for nsIStreamListenerTee.
2001-03-07 12:54:45 +00:00
darin%netscape.com
55f7806f68
[not part of the build] Added nsIStreamListenerTee for the new cache.
2001-03-07 12:53:39 +00:00
darin%netscape.com
a82ceaf849
[not part of the build] HTTP now compiles with MOZ_NEW_CACHE defined.
2001-03-07 12:19:27 +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
dc5d568ca6
[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
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
darin%netscape.com
b4ba335c31
Added some error checking.
2001-03-07 06:35:36 +00:00
beard%netscape.com
e0f09d54a6
Implement pre-seeking when underlying seekable output streams. r=darin, r=gordon
2001-03-07 04:07:05 +00:00
beard%netscape.com
cfae6db9a8
[not part of build] don't overwrite a NULL pointer.
2001-03-07 04:05:36 +00:00
beard%netscape.com
0f2a20c199
[not part of build] Using async open & read.
2001-03-07 04:04:33 +00:00
beard%netscape.com
c4147fc9e6
[not part of build] Added synchronous http (unimplemented).
2001-03-07 04:03:39 +00:00
mkaply%us.ibm.com
fca2f78b64
IRIX breakage - CR/LF problem on dougt checkin
2001-03-07 03:04:02 +00:00
darin%netscape.com
182a0a48ac
[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
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
4d82f129fb
minor coding style cleanup.
2001-03-07 00:55:43 +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
98b60778c6
[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
d789fc13dd
NOT PART OF BUILD. moving the getMetdata up a bit
2001-03-06 20:22:01 +00:00
darin%netscape.com
95dcc81619
Indentation, whitespace, and comment cleanups.
2001-03-06 08:46:57 +00:00
darin%netscape.com
9d61a23536
Indentation, whitespace, and comment cleanups.
2001-03-06 08:25:18 +00:00
darin%netscape.com
10290f8523
Indentation, whitespace, and comment cleanups.
2001-03-06 08:17:03 +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
fe58751409
Fixing build bustage.
2001-03-06 06:22:58 +00:00
bryner%uiuc.edu
a9a1045773
forgot a file
2001-03-06 05:44:53 +00:00
jj%netscape.com
4ef9c31f59
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
8b80c7c363
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
2001-03-06 05:10:33 +00:00
bryner%uiuc.edu
ab0686a62a
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
2001-03-06 05:00:47 +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
dbaron%fas.harvard.edu
7b468bb07f
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
f5f96b7833
[not part of build] Increased number of downloads/reads to 50, added median().
2001-03-06 03:29:08 +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
dbaron%fas.harvard.edu
83bbffbccd
Add pref to REQUIRES to fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage.
2001-03-06 03:24:57 +00:00
darin%netscape.com
1cad1d36cc
[not part of the build] Prevent crash in error case.
2001-03-06 03:12:24 +00:00
dougt%netscape.com
877f3dd664
Fixing windows bustage.
2001-03-06 02:21:37 +00:00
dougt%netscape.com
8d2069dfd9
Adding nsIndexToHTML.
2001-03-06 02:14:59 +00:00
dougt%netscape.com
80614d95ae
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
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
dougt%netscape.com
2c3940a081
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
74a90e7466
[not part of the bulid] Fixes GCC 2.95 bustage.
2001-03-05 23:50:26 +00:00
beard%netscape.com
014a82adb3
[not part of build] Initial cache performance test.
2001-03-05 15:23:59 +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
beard%netscape.com
853f3c4945
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
c6a0b479f4
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
1d2a7021a0
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
79bcc81294
Delegate GetNonBlocking/SetNonBlocking to wrapped output stream. r=dougt, sr=gagan
2001-03-05 03:40:41 +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
fdf5adb8eb
[not part of build] removed memory transport files.
2001-03-03 03:42:57 +00:00
beard%netscape.com
3cc7487ec6
[not part of build] Added debug harness, explicit doom.
2001-03-03 03:42:10 +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
darin%netscape.com
9460ba088d
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
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
beard%netscape.com
57cbe6c774
Added nsStorageTransport.cpp. r=gordon
2001-03-03 02:21:37 +00:00
darin%netscape.com
6b4d563f98
Bug 70707. Added CID/ContractID for nsStorageTransport.
2001-03-03 02:11:19 +00:00
darin%netscape.com
0bbec193ce
[not part of the build] Make mem cache use nsStorageTransport.
2001-03-03 01:59:03 +00:00
darin%netscape.com
5b7fd2451c
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
61a6206885
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
b7b9777ef9
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
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
e14f9a7fdc
[not part of build] Added metadata test.
2001-03-02 05:00:34 +00:00
beard%netscape.com
599f805e95
[not part of build] took out unnecessary OpenTransport libraries.
2001-03-02 04:57:42 +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
dougt%netscape.com
f3ae3e7ba0
NOT PART BUILD BUILD YET. Checking in indexed to html converter
2001-03-01 07:22:19 +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
bryner%uiuc.edu
8c6ba024ec
Don't return an async proxied object when the socket transport is asked for its ProgressEventSink. r=dougt, sr=shaver.
2001-03-01 00:55:08 +00:00
gordon%netscape.com
941c2a073f
Added comments to netCore.h declaring error ranges for SocketTransport and CacheService. r=beard.
2001-03-01 00:54:29 +00:00
beard%netscape.com
0c0e0a03ca
[not part of build] stores nsISupportsString in object cache.
2001-03-01 00:24:33 +00:00
dougt%netscape.com
1e0d9b7877
fixes 66873. fixes WFTPD incompatibility. r=gagan, sr=mscott
2001-03-01 00:23:36 +00:00
beard%netscape.com
e68eeb0c72
[not part of build] Now wraps nsIInputStream with an nsIScriptableInputStream.
2001-03-01 00:07:23 +00:00
beard%netscape.com
c167dd8067
[not part of build] changed linker output to cache.headers rather than necko.headers.
2001-03-01 00:05:31 +00:00
beard%netscape.com
2e059bf699
[not part of build] Now tests opening output and input streams.
2001-02-28 23:52:20 +00:00
dougt%netscape.com
0ff09eae40
Fixing 69836. Increasing data buffer sizes which improves perf on Mac. r=sfraser, sr=mscott
2001-02-28 23:37:03 +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
gordon%netscape.com
54a2ab1696
Adding test for cache service.
2001-02-28 05:28:50 +00:00
beard%netscape.com
bc439b5703
[not part of build] Tests disk cache using XPConnnect.
2001-02-28 05:06:25 +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
7d7ec8671a
Minor tweak [not part of the build]
2001-02-28 04:37:46 +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
darin%netscape.com
a26fbc60e3
Added MOZ_NEW_CACHE ifdef to Makefile.in to prevent building of cache tests
...
by default.
2001-02-28 04:06:06 +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
beard%netscape.com
c3a62ef8c2
[not part of build] changed fragment name to CACHE_DLL instead of NECKO_DLL (oops).
2001-02-28 00:33:24 +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
15bd09102f
updating the .cvsignore file
2001-02-27 23:17:58 +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
beard%netscape.com
05e65ecf0e
[not part of build] added nsMemoryCacheTransport.cpp.
2001-02-27 19:41:13 +00:00
valeski%netscape.com
343585ffe8
sr=rpotts. 39987. handling broken servers which don't provide a boundary token in the first block. also protecting against stray parsing which can result in crashes.
2001-02-27 12:33:12 +00:00