webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
WebCore::ApplicationCacheStorage Class Reference

#include <ApplicationCacheStorage.h>

Inheritance diagram for WebCore::ApplicationCacheStorage:
WTF::RefCounted< ApplicationCacheStorage > WTF::RefCounted< ApplicationCacheStorage > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Types

enum  FailureReason {
  OriginQuotaReached, TotalQuotaReached, DiskOrOperationFailure, OriginQuotaReached,
  TotalQuotaReached, DiskOrOperationFailure
}
 
enum  FailureReason {
  OriginQuotaReached, TotalQuotaReached, DiskOrOperationFailure, OriginQuotaReached,
  TotalQuotaReached, DiskOrOperationFailure
}
 

Public Member Functions

const String & cacheDirectory () const
 
WEBCORE_EXPORT void setMaximumSize (int64_t size)
 
WEBCORE_EXPORT int64_t maximumSize () const
 
bool isMaximumSizeReached () const
 
int64_t spaceNeeded (int64_t cacheToSave)
 
int64_t defaultOriginQuota () const
 
WEBCORE_EXPORT void setDefaultOriginQuota (int64_t quota)
 
WEBCORE_EXPORT bool calculateUsageForOrigin (const SecurityOrigin *, int64_t &usage)
 
WEBCORE_EXPORT bool calculateQuotaForOrigin (const SecurityOrigin &, int64_t &quota)
 
bool calculateRemainingSizeForOriginExcludingCache (const SecurityOrigin &, ApplicationCache *, int64_t &remainingSize)
 
WEBCORE_EXPORT bool storeUpdatedQuotaForOrigin (const SecurityOrigin *, int64_t quota)
 
bool checkOriginQuota (ApplicationCacheGroup *, ApplicationCache *oldCache, ApplicationCache *newCache, int64_t &totalSpaceNeeded)
 
ApplicationCacheGroup * cacheGroupForURL (const URL &)
 
ApplicationCacheGroup * fallbackCacheGroupForURL (const URL &)
 
ApplicationCacheGroup * findOrCreateCacheGroup (const URL &manifestURL)
 
ApplicationCacheGroup * findInMemoryCacheGroup (const URL &manifestURL) const
 
void cacheGroupDestroyed (ApplicationCacheGroup &)
 
void cacheGroupMadeObsolete (ApplicationCacheGroup &)
 
bool storeNewestCache (ApplicationCacheGroup &, ApplicationCache *oldCache, FailureReason &)
 
bool storeNewestCache (ApplicationCacheGroup &)
 
bool store (ApplicationCacheResource *, ApplicationCache *)
 
bool storeUpdatedType (ApplicationCacheResource *, ApplicationCache *)
 
void remove (ApplicationCache *)
 
WEBCORE_EXPORT void empty ()
 
bool getManifestURLs (Vector< URL > *urls)
 
bool cacheGroupSize (const String &manifestURL, int64_t *size)
 
bool deleteCacheGroup (const String &manifestURL)
 
WEBCORE_EXPORT void vacuumDatabaseFile ()
 
WEBCORE_EXPORT void getOriginsWithCache (HashSet< RefPtr< SecurityOrigin >, SecurityOriginHash > &)
 
WEBCORE_EXPORT void deleteAllEntries ()
 
WEBCORE_EXPORT void deleteAllCaches ()
 
WEBCORE_EXPORT void deleteCacheForOrigin (const SecurityOrigin &)
 
WEBCORE_EXPORT int64_t diskUsageForOrigin (const SecurityOrigin &)
 
const String & cacheDirectory () const
 
WEBCORE_EXPORT void setMaximumSize (int64_t size)
 
WEBCORE_EXPORT int64_t maximumSize () const
 
bool isMaximumSizeReached () const
 
int64_t spaceNeeded (int64_t cacheToSave)
 
int64_t defaultOriginQuota () const
 
WEBCORE_EXPORT void setDefaultOriginQuota (int64_t quota)
 
WEBCORE_EXPORT bool calculateUsageForOrigin (const SecurityOrigin *, int64_t &usage)
 
WEBCORE_EXPORT bool calculateQuotaForOrigin (const SecurityOrigin &, int64_t &quota)
 
bool calculateRemainingSizeForOriginExcludingCache (const SecurityOrigin &, ApplicationCache *, int64_t &remainingSize)
 
WEBCORE_EXPORT bool storeUpdatedQuotaForOrigin (const SecurityOrigin *, int64_t quota)
 
bool checkOriginQuota (ApplicationCacheGroup *, ApplicationCache *oldCache, ApplicationCache *newCache, int64_t &totalSpaceNeeded)
 
ApplicationCacheGroup * cacheGroupForURL (const URL &)
 
ApplicationCacheGroup * fallbackCacheGroupForURL (const URL &)
 
ApplicationCacheGroup * findOrCreateCacheGroup (const URL &manifestURL)
 
ApplicationCacheGroup * findInMemoryCacheGroup (const URL &manifestURL) const
 
void cacheGroupDestroyed (ApplicationCacheGroup &)
 
void cacheGroupMadeObsolete (ApplicationCacheGroup &)
 
bool storeNewestCache (ApplicationCacheGroup &, ApplicationCache *oldCache, FailureReason &)
 
bool storeNewestCache (ApplicationCacheGroup &)
 
bool store (ApplicationCacheResource *, ApplicationCache *)
 
bool storeUpdatedType (ApplicationCacheResource *, ApplicationCache *)
 
void remove (ApplicationCache *)
 
WEBCORE_EXPORT void empty ()
 
bool getManifestURLs (Vector< URL > *urls)
 
bool cacheGroupSize (const String &manifestURL, int64_t *size)
 
bool deleteCacheGroup (const String &manifestURL)
 
WEBCORE_EXPORT void vacuumDatabaseFile ()
 
WEBCORE_EXPORT void getOriginsWithCache (HashSet< RefPtr< SecurityOrigin >, SecurityOriginHash > &)
 
WEBCORE_EXPORT void deleteAllEntries ()
 
WEBCORE_EXPORT void deleteAllCaches ()
 
WEBCORE_EXPORT void deleteCacheForOrigin (const SecurityOrigin &)
 
WEBCORE_EXPORT int64_t diskUsageForOrigin (const SecurityOrigin &)
 
- Public Member Functions inherited from WTF::RefCounted< ApplicationCacheStorage >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static WEBCORE_EXPORT Ref< ApplicationCacheStorage > create (const String &cacheDirectory, const String &flatFileSubdirectoryName)
 
static int64_t unknownQuota ()
 
static int64_t noQuota ()
 
static WEBCORE_EXPORT Ref< ApplicationCacheStorage > create (const String &cacheDirectory, const String &flatFileSubdirectoryName)
 
static int64_t unknownQuota ()
 
static int64_t noQuota ()
 

Friends

class WTF::NeverDestroyed< ApplicationCacheStorage >
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< ApplicationCacheStorage >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Enumeration Documentation

◆ FailureReason [1/2]

Enumerator
OriginQuotaReached 
TotalQuotaReached 
DiskOrOperationFailure 
OriginQuotaReached 
TotalQuotaReached 
DiskOrOperationFailure 

◆ FailureReason [2/2]

Enumerator
OriginQuotaReached 
TotalQuotaReached 
DiskOrOperationFailure 
OriginQuotaReached 
TotalQuotaReached 
DiskOrOperationFailure 

Member Function Documentation

◆ cacheDirectory() [1/2]

const String & WebCore::ApplicationCacheStorage::cacheDirectory ( ) const

◆ cacheDirectory() [2/2]

const String& WebCore::ApplicationCacheStorage::cacheDirectory ( ) const

◆ cacheGroupDestroyed() [1/2]

void WebCore::ApplicationCacheStorage::cacheGroupDestroyed ( ApplicationCacheGroup &  group)

◆ cacheGroupDestroyed() [2/2]

void WebCore::ApplicationCacheStorage::cacheGroupDestroyed ( ApplicationCacheGroup &  )

◆ cacheGroupForURL() [1/2]

ApplicationCacheGroup * WebCore::ApplicationCacheStorage::cacheGroupForURL ( const URL &  url)

◆ cacheGroupForURL() [2/2]

ApplicationCacheGroup* WebCore::ApplicationCacheStorage::cacheGroupForURL ( const URL &  )

◆ cacheGroupMadeObsolete() [1/2]

void WebCore::ApplicationCacheStorage::cacheGroupMadeObsolete ( ApplicationCacheGroup &  group)

◆ cacheGroupMadeObsolete() [2/2]

void WebCore::ApplicationCacheStorage::cacheGroupMadeObsolete ( ApplicationCacheGroup &  )

◆ cacheGroupSize() [1/2]

bool WebCore::ApplicationCacheStorage::cacheGroupSize ( const String &  manifestURL,
int64_t *  size 
)

◆ cacheGroupSize() [2/2]

bool WebCore::ApplicationCacheStorage::cacheGroupSize ( const String &  manifestURL,
int64_t *  size 
)

◆ calculateQuotaForOrigin() [1/2]

bool WebCore::ApplicationCacheStorage::calculateQuotaForOrigin ( const SecurityOrigin &  origin,
int64_t &  quota 
)

◆ calculateQuotaForOrigin() [2/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheStorage::calculateQuotaForOrigin ( const SecurityOrigin &  ,
int64_t &  quota 
)

◆ calculateRemainingSizeForOriginExcludingCache() [1/2]

bool WebCore::ApplicationCacheStorage::calculateRemainingSizeForOriginExcludingCache ( const SecurityOrigin &  origin,
ApplicationCache *  cache,
int64_t &  remainingSize 
)

◆ calculateRemainingSizeForOriginExcludingCache() [2/2]

bool WebCore::ApplicationCacheStorage::calculateRemainingSizeForOriginExcludingCache ( const SecurityOrigin &  ,
ApplicationCache *  ,
int64_t &  remainingSize 
)

◆ calculateUsageForOrigin() [1/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheStorage::calculateUsageForOrigin ( const SecurityOrigin *  ,
int64_t &  usage 
)

◆ calculateUsageForOrigin() [2/2]

bool WebCore::ApplicationCacheStorage::calculateUsageForOrigin ( const SecurityOrigin *  origin,
int64_t &  usage 
)

◆ checkOriginQuota() [1/2]

bool WebCore::ApplicationCacheStorage::checkOriginQuota ( ApplicationCacheGroup *  ,
ApplicationCache *  oldCache,
ApplicationCache *  newCache,
int64_t &  totalSpaceNeeded 
)

◆ checkOriginQuota() [2/2]

bool WebCore::ApplicationCacheStorage::checkOriginQuota ( ApplicationCacheGroup *  group,
ApplicationCache *  oldCache,
ApplicationCache *  newCache,
int64_t &  totalSpaceNeeded 
)

◆ create() [1/2]

static WEBCORE_EXPORT Ref<ApplicationCacheStorage> WebCore::ApplicationCacheStorage::create ( const String &  cacheDirectory,
const String &  flatFileSubdirectoryName 
)
static

◆ create() [2/2]

Ref< ApplicationCacheStorage > WebCore::ApplicationCacheStorage::create ( const String &  cacheDirectory,
const String &  flatFileSubdirectoryName 
)
static

◆ defaultOriginQuota() [1/2]

int64_t WebCore::ApplicationCacheStorage::defaultOriginQuota ( ) const
inline

◆ defaultOriginQuota() [2/2]

int64_t WebCore::ApplicationCacheStorage::defaultOriginQuota ( ) const
inline

◆ deleteAllCaches() [1/2]

void WebCore::ApplicationCacheStorage::deleteAllCaches ( )

◆ deleteAllCaches() [2/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::deleteAllCaches ( )

◆ deleteAllEntries() [1/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::deleteAllEntries ( )

◆ deleteAllEntries() [2/2]

void WebCore::ApplicationCacheStorage::deleteAllEntries ( )

◆ deleteCacheForOrigin() [1/2]

void WebCore::ApplicationCacheStorage::deleteCacheForOrigin ( const SecurityOrigin &  securityOrigin)

◆ deleteCacheForOrigin() [2/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::deleteCacheForOrigin ( const SecurityOrigin &  )

◆ deleteCacheGroup() [1/2]

bool WebCore::ApplicationCacheStorage::deleteCacheGroup ( const String &  manifestURL)

◆ deleteCacheGroup() [2/2]

bool WebCore::ApplicationCacheStorage::deleteCacheGroup ( const String &  manifestURL)

◆ diskUsageForOrigin() [1/2]

WEBCORE_EXPORT int64_t WebCore::ApplicationCacheStorage::diskUsageForOrigin ( const SecurityOrigin &  )

◆ diskUsageForOrigin() [2/2]

int64_t WebCore::ApplicationCacheStorage::diskUsageForOrigin ( const SecurityOrigin &  securityOrigin)

◆ empty() [1/2]

void WebCore::ApplicationCacheStorage::empty ( )

◆ empty() [2/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::empty ( )

◆ fallbackCacheGroupForURL() [1/2]

ApplicationCacheGroup* WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL ( const URL &  )

◆ fallbackCacheGroupForURL() [2/2]

ApplicationCacheGroup * WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL ( const URL &  url)

◆ findInMemoryCacheGroup() [1/2]

ApplicationCacheGroup * WebCore::ApplicationCacheStorage::findInMemoryCacheGroup ( const URL &  manifestURL) const

◆ findInMemoryCacheGroup() [2/2]

ApplicationCacheGroup* WebCore::ApplicationCacheStorage::findInMemoryCacheGroup ( const URL &  manifestURL) const

◆ findOrCreateCacheGroup() [1/2]

ApplicationCacheGroup * WebCore::ApplicationCacheStorage::findOrCreateCacheGroup ( const URL &  manifestURL)

◆ findOrCreateCacheGroup() [2/2]

ApplicationCacheGroup* WebCore::ApplicationCacheStorage::findOrCreateCacheGroup ( const URL &  manifestURL)

◆ getManifestURLs() [1/2]

bool WebCore::ApplicationCacheStorage::getManifestURLs ( Vector< URL > *  urls)

◆ getManifestURLs() [2/2]

bool WebCore::ApplicationCacheStorage::getManifestURLs ( Vector< URL > *  urls)

◆ getOriginsWithCache() [1/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::getOriginsWithCache ( HashSet< RefPtr< SecurityOrigin >, SecurityOriginHash > &  )

◆ getOriginsWithCache() [2/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::getOriginsWithCache ( HashSet< RefPtr< SecurityOrigin >, SecurityOriginHash > &  )

◆ isMaximumSizeReached() [1/2]

bool WebCore::ApplicationCacheStorage::isMaximumSizeReached ( ) const

◆ isMaximumSizeReached() [2/2]

bool WebCore::ApplicationCacheStorage::isMaximumSizeReached ( ) const

◆ maximumSize() [1/2]

int64_t WebCore::ApplicationCacheStorage::maximumSize ( ) const

◆ maximumSize() [2/2]

WEBCORE_EXPORT int64_t WebCore::ApplicationCacheStorage::maximumSize ( ) const

◆ noQuota() [1/2]

static int64_t WebCore::ApplicationCacheStorage::noQuota ( )
inlinestatic

◆ noQuota() [2/2]

static int64_t WebCore::ApplicationCacheStorage::noQuota ( )
inlinestatic

◆ remove() [1/2]

void WebCore::ApplicationCacheStorage::remove ( ApplicationCache *  cache)

◆ remove() [2/2]

void WebCore::ApplicationCacheStorage::remove ( ApplicationCache *  )

◆ setDefaultOriginQuota() [1/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::setDefaultOriginQuota ( int64_t  quota)

◆ setDefaultOriginQuota() [2/2]

void WebCore::ApplicationCacheStorage::setDefaultOriginQuota ( int64_t  quota)

◆ setMaximumSize() [1/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::setMaximumSize ( int64_t  size)

◆ setMaximumSize() [2/2]

void WebCore::ApplicationCacheStorage::setMaximumSize ( int64_t  size)

◆ spaceNeeded() [1/2]

int64_t WebCore::ApplicationCacheStorage::spaceNeeded ( int64_t  cacheToSave)

◆ spaceNeeded() [2/2]

int64_t WebCore::ApplicationCacheStorage::spaceNeeded ( int64_t  cacheToSave)

◆ store() [1/2]

bool WebCore::ApplicationCacheStorage::store ( ApplicationCacheResource *  ,
ApplicationCache *   
)

◆ store() [2/2]

bool WebCore::ApplicationCacheStorage::store ( ApplicationCacheResource *  resource,
ApplicationCache *  cache 
)

◆ storeNewestCache() [1/4]

bool WebCore::ApplicationCacheStorage::storeNewestCache ( ApplicationCacheGroup &  ,
ApplicationCache *  oldCache,
FailureReason &   
)

◆ storeNewestCache() [2/4]

bool WebCore::ApplicationCacheStorage::storeNewestCache ( ApplicationCacheGroup &  group,
ApplicationCache *  oldCache,
FailureReason &  failureReason 
)

◆ storeNewestCache() [3/4]

bool WebCore::ApplicationCacheStorage::storeNewestCache ( ApplicationCacheGroup &  group)

◆ storeNewestCache() [4/4]

bool WebCore::ApplicationCacheStorage::storeNewestCache ( ApplicationCacheGroup &  )

◆ storeUpdatedQuotaForOrigin() [1/2]

bool WebCore::ApplicationCacheStorage::storeUpdatedQuotaForOrigin ( const SecurityOrigin *  origin,
int64_t  quota 
)

◆ storeUpdatedQuotaForOrigin() [2/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheStorage::storeUpdatedQuotaForOrigin ( const SecurityOrigin *  ,
int64_t  quota 
)

◆ storeUpdatedType() [1/2]

bool WebCore::ApplicationCacheStorage::storeUpdatedType ( ApplicationCacheResource *  resource,
ApplicationCache *  cache 
)

◆ storeUpdatedType() [2/2]

bool WebCore::ApplicationCacheStorage::storeUpdatedType ( ApplicationCacheResource *  ,
ApplicationCache *   
)

◆ unknownQuota() [1/2]

static int64_t WebCore::ApplicationCacheStorage::unknownQuota ( )
inlinestatic

◆ unknownQuota() [2/2]

static int64_t WebCore::ApplicationCacheStorage::unknownQuota ( )
inlinestatic

◆ vacuumDatabaseFile() [1/2]

WEBCORE_EXPORT void WebCore::ApplicationCacheStorage::vacuumDatabaseFile ( )

◆ vacuumDatabaseFile() [2/2]

void WebCore::ApplicationCacheStorage::vacuumDatabaseFile ( )

Friends And Related Function Documentation

◆ WTF::NeverDestroyed< ApplicationCacheStorage >


The documentation for this class was generated from the following files: