64 Commits

Author SHA1 Message Date
gordon%netscape.com
e925522cc0 [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.


git-svn-id: svn://10.0.0.236/trunk@88261 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:25:07 +00:00
beard%netscape.com
ff1dfa18a0 [not part of build] enforce nsCacheAccessMode when creating transports.
git-svn-id: svn://10.0.0.236/trunk@88183 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 10:04:27 +00:00
beard%netscape.com
8e20116d8b [not part of build] really delegate GetTransport() to the cache service.
git-svn-id: svn://10.0.0.236/trunk@88168 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:17:24 +00:00
gordon%netscape.com
19a0033de2 Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods.
git-svn-id: svn://10.0.0.236/trunk@88167 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:10:43 +00:00
beard%netscape.com
6a7b1a85f9 [not part of build] removed redundant NULL check in MarkValid().
git-svn-id: svn://10.0.0.236/trunk@88164 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 03:59:02 +00:00
darin%netscape.com
b51b0ef672 [not part of the build] Added code to the descriptor to call GetTransportForEntry()
git-svn-id: svn://10.0.0.236/trunk@88157 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 02:19:14 +00:00
gordon%netscape.com
b99a60e359 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.


git-svn-id: svn://10.0.0.236/trunk@88133 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 00:06:13 +00:00
beard%netscape.com
932c8a19cf 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.
git-svn-id: svn://10.0.0.236/trunk@88064 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:43:16 +00:00
gordon%netscape.com
8b61a442bc Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
git-svn-id: svn://10.0.0.236/trunk@88063 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:35:53 +00:00
gordon%netscape.com
314bc3bb0a Add stub methods for getting/setting data size, and getting the transport for a cache entry descriptor. Update for change to Substring parameters.
git-svn-id: svn://10.0.0.236/trunk@87981 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 14:45:45 +00:00
dougt%netscape.com
f8929b57e1 Fixing return type:
git-svn-id: svn://10.0.0.236/trunk@87936 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-25 07:31:13 +00:00
darin%netscape.com
a97777c89d Made accessGranted be of type nsCacheAccessMode. This is not part of the mozilla build.
git-svn-id: svn://10.0.0.236/trunk@87865 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 01:36:11 +00:00
gordon%netscape.com
c1cbcd4c4c Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin.
git-svn-id: svn://10.0.0.236/trunk@87862 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 01:02:37 +00:00
gordon%netscape.com
cfbd099fb3 Rough first cut of cache service and memory object cache. It currently builds on linux.
git-svn-id: svn://10.0.0.236/trunk@87809 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 13:18:01 +00:00