зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c4917d733e
Коммит
c9992e5bab
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче