Add constants to indicate whether a cache session is streamBased or not. This interface file is not part of the build yet.

This commit is contained in:
gordon%netscape.com 2001-02-26 14:27:16 +00:00
Родитель c4917d733e
Коммит c9992e5bab
1 изменённых файлов: 11 добавлений и 3 удалений

14
netwerk/cache/public/nsICache.idl поставляемый
Просмотреть файл

@ -123,9 +123,17 @@ interface nsICache
* STORE_ON_DISK - Requires the cache entry to reside in persistent * STORE_ON_DISK - Requires the cache entry to reside in persistent
* storage (ie. typically on a system's hard disk). * storage (ie. typically on a system's hard disk).
*/ */
const nsCacheStoragePolicy STORE_ANYWHERE = 0; const nsCacheStoragePolicy STORE_ANYWHERE = 0;
const nsCacheStoragePolicy STORE_IN_MEMORY = 1; const nsCacheStoragePolicy STORE_IN_MEMORY = 1;
const nsCacheStoragePolicy STORE_ON_DISK = 2; const nsCacheStoragePolicy STORE_ON_DISK = 2;
/**
* All entries for a cache session are stored as streams of data or
* as objects. These constant my be used to specify the type of entries
* when calling nsICacheService::CreateSession().
*/
const long NOT_STREAM_BASED = 0;
const long STREAM_BASED = 1;
}; };