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

#include <CachedResource.h>

Inheritance diagram for WebCore::CachedResource:
WebCore::CachedCSSStyleSheet WebCore::CachedFont WebCore::CachedImage WebCore::CachedImage WebCore::CachedRawResource WebCore::CachedRawResource WebCore::CachedScript WebCore::CachedSVGDocument WebCore::CachedSVGDocument

Classes

class  Callback
 

Public Types

enum  Type {
  MainResource, ImageResource, CSSStyleSheet, Script,
  FontResource, MediaResource, RawResource, SVGDocumentResource,
  MainResource, ImageResource, CSSStyleSheet, Script,
  FontResource, MediaResource, RawResource, SVGDocumentResource
}
 
enum  Status {
  Unknown, Pending, Cached, LoadError,
  DecodeError, Unknown, Pending, Cached,
  LoadError, DecodeError
}
 
enum  PreloadResult {
  PreloadNotReferenced, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete,
  PreloadNotReferenced, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete
}
 
enum  RevalidationDecision {
  RevalidationDecision::No, RevalidationDecision::YesDueToCachePolicy, RevalidationDecision::YesDueToNoStore, RevalidationDecision::YesDueToNoCache,
  RevalidationDecision::YesDueToExpired, RevalidationDecision::No, RevalidationDecision::YesDueToCachePolicy, RevalidationDecision::YesDueToNoStore,
  RevalidationDecision::YesDueToNoCache, RevalidationDecision::YesDueToExpired
}
 
enum  Type {
  MainResource, ImageResource, CSSStyleSheet, Script,
  FontResource, MediaResource, RawResource, SVGDocumentResource,
  MainResource, ImageResource, CSSStyleSheet, Script,
  FontResource, MediaResource, RawResource, SVGDocumentResource
}
 
enum  Status {
  Unknown, Pending, Cached, LoadError,
  DecodeError, Unknown, Pending, Cached,
  LoadError, DecodeError
}
 
enum  PreloadResult {
  PreloadNotReferenced, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete,
  PreloadNotReferenced, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete
}
 
enum  RevalidationDecision {
  RevalidationDecision::No, RevalidationDecision::YesDueToCachePolicy, RevalidationDecision::YesDueToNoStore, RevalidationDecision::YesDueToNoCache,
  RevalidationDecision::YesDueToExpired, RevalidationDecision::No, RevalidationDecision::YesDueToCachePolicy, RevalidationDecision::YesDueToNoStore,
  RevalidationDecision::YesDueToNoCache, RevalidationDecision::YesDueToExpired
}
 

Public Member Functions

 CachedResource (CachedResourceRequest &&, Type, SessionID)
 
virtual ~CachedResource ()
 
virtual void load (CachedResourceLoader &)
 
virtual void setEncoding (const String &)
 
virtual String encoding () const
 
virtual const TextResourceDecodertextResourceDecoder () const
 
virtual void addDataBuffer (SharedBuffer &)
 
virtual void addData (const char *data, unsigned length)
 
virtual void finishLoading (SharedBuffer *)
 
virtual void error (CachedResource::Status)
 
void setResourceError (const ResourceError &error)
 
const ResourceErrorresourceError () const
 
virtual bool shouldIgnoreHTTPStatusCodeErrors () const
 
const ResourceRequestresourceRequest () const
 
ResourceRequestresourceRequest ()
 
const URLurl () const
 
const StringcachePartition () const
 
SessionID sessionID () const
 
Type type () const
 
ResourceLoadPriority loadPriority () const
 
void setLoadPriority (const std::optional< ResourceLoadPriority > &)
 
WEBCORE_EXPORT void addClient (CachedResourceClient &)
 
WEBCORE_EXPORT void removeClient (CachedResourceClient &)
 
bool hasClients () const
 
bool hasClient (CachedResourceClient &client)
 
bool deleteIfPossible ()
 
PreloadResult preloadResult () const
 
virtual void didAddClient (CachedResourceClient &)
 
virtual void didRemoveClient (CachedResourceClient &)
 
virtual void allClientsRemoved ()
 
void destroyDecodedDataIfNeeded ()
 
unsigned count () const
 
Status status () const
 
void setStatus (Status status)
 
unsigned size () const
 
unsigned encodedSize () const
 
unsigned decodedSize () const
 
unsigned overheadSize () const
 
bool isLoaded () const
 
bool isLoading () const
 
void setLoading (bool b)
 
virtual bool stillNeedsLoad () const
 
SubresourceLoaderloader ()
 
bool areAllClientsXMLHttpRequests () const
 
bool isImage () const
 
bool isMainOrMediaOrRawResource () const
 
bool ignoreForRequestCount () const
 
unsigned accessCount () const
 
void increaseAccessCount ()
 
void finish ()
 
void setInCache (bool inCache)
 
bool inCache () const
 
void clearLoader ()
 
SharedBufferresourceBuffer () const
 
virtual void redirectReceived (ResourceRequest &, const ResourceResponse &)
 
virtual void responseReceived (const ResourceResponse &)
 
virtual bool shouldCacheResponse (const ResourceResponse &)
 
void setResponse (const ResourceResponse &)
 
const ResourceResponseresponse () const
 
void setCrossOrigin ()
 
bool isCrossOrigin () const
 
bool isCORSSameOrigin () const
 
ResourceResponse::Tainting responseTainting () const
 
void loadFrom (const CachedResource &)
 
SecurityOriginorigin () const
 
AtomicString initiatorName () const
 
bool canDelete () const
 
bool hasOneHandle () const
 
bool isExpired () const
 
void cancelLoad ()
 
bool wasCanceled () const
 
bool errorOccurred () const
 
bool loadFailedOrCanceled () const
 
bool shouldSendResourceLoadCallbacks () const
 
DataBufferingPolicy dataBufferingPolicy () const
 
bool allowsCaching () const
 
const FetchOptionsoptions () const
 
virtual void destroyDecodedData ()
 
void setOwningCachedResourceLoader (CachedResourceLoader *cachedResourceLoader)
 
bool isPreloaded () const
 
void increasePreloadCount ()
 
void decreasePreloadCount ()
 
bool isLinkPreload ()
 
void setLinkPreload ()
 
void registerHandle (CachedResourceHandleBase *)
 
WEBCORE_EXPORT void unregisterHandle (CachedResourceHandleBase *)
 
bool canUseCacheValidator () const
 
virtual RevalidationDecision makeRevalidationDecision (CachePolicy) const
 
bool redirectChainAllowsReuse (ReuseExpiredRedirectionOrNot) const
 
bool hasRedirections () const
 
bool varyHeaderValuesMatch (const ResourceRequest &)
 
bool isCacheValidator () const
 
CachedResourceresourceToRevalidate () const
 
void setResourceToRevalidate (CachedResource *)
 
virtual void switchClientsToRevalidatedResource ()
 
void clearResourceToRevalidate ()
 
void updateResponseAfterRevalidation (const ResourceResponse &validatingResponse)
 
bool validationInProgress () const
 
bool validationCompleting () const
 
virtual void didSendData (unsigned long long, unsigned long long)
 
virtual void didRetrieveDerivedDataFromCache (const String &, SharedBuffer &)
 
unsigned long identifierForLoadWithoutResourceLoader () const
 
 CachedResource (CachedResourceRequest &&, Type, SessionID)
 
virtual ~CachedResource ()
 
virtual void load (CachedResourceLoader &)
 
virtual void setEncoding (const String &)
 
virtual String encoding () const
 
virtual const TextResourceDecodertextResourceDecoder () const
 
virtual void addDataBuffer (SharedBuffer &)
 
virtual void addData (const char *data, unsigned length)
 
virtual void finishLoading (SharedBuffer *)
 
virtual void error (CachedResource::Status)
 
void setResourceError (const ResourceError &error)
 
const ResourceErrorresourceError () const
 
virtual bool shouldIgnoreHTTPStatusCodeErrors () const
 
const ResourceRequestresourceRequest () const
 
ResourceRequestresourceRequest ()
 
const URLurl () const
 
const StringcachePartition () const
 
SessionID sessionID () const
 
Type type () const
 
ResourceLoadPriority loadPriority () const
 
void setLoadPriority (const std::optional< ResourceLoadPriority > &)
 
WEBCORE_EXPORT void addClient (CachedResourceClient &)
 
WEBCORE_EXPORT void removeClient (CachedResourceClient &)
 
bool hasClients () const
 
bool hasClient (CachedResourceClient &client)
 
bool deleteIfPossible ()
 
PreloadResult preloadResult () const
 
virtual void didAddClient (CachedResourceClient &)
 
virtual void didRemoveClient (CachedResourceClient &)
 
virtual void allClientsRemoved ()
 
void destroyDecodedDataIfNeeded ()
 
unsigned count () const
 
Status status () const
 
void setStatus (Status status)
 
unsigned size () const
 
unsigned encodedSize () const
 
unsigned decodedSize () const
 
unsigned overheadSize () const
 
bool isLoaded () const
 
bool isLoading () const
 
void setLoading (bool b)
 
virtual bool stillNeedsLoad () const
 
SubresourceLoaderloader ()
 
bool areAllClientsXMLHttpRequests () const
 
bool isImage () const
 
bool isMainOrMediaOrRawResource () const
 
bool ignoreForRequestCount () const
 
unsigned accessCount () const
 
void increaseAccessCount ()
 
void finish ()
 
void setInCache (bool inCache)
 
bool inCache () const
 
void clearLoader ()
 
SharedBufferresourceBuffer () const
 
virtual void redirectReceived (ResourceRequest &, const ResourceResponse &)
 
virtual void responseReceived (const ResourceResponse &)
 
virtual bool shouldCacheResponse (const ResourceResponse &)
 
void setResponse (const ResourceResponse &)
 
const ResourceResponseresponse () const
 
void setCrossOrigin ()
 
bool isCrossOrigin () const
 
bool isCORSSameOrigin () const
 
ResourceResponse::Tainting responseTainting () const
 
void loadFrom (const CachedResource &)
 
SecurityOriginorigin () const
 
AtomicString initiatorName () const
 
bool canDelete () const
 
bool hasOneHandle () const
 
bool isExpired () const
 
void cancelLoad ()
 
bool wasCanceled () const
 
bool errorOccurred () const
 
bool loadFailedOrCanceled () const
 
bool shouldSendResourceLoadCallbacks () const
 
DataBufferingPolicy dataBufferingPolicy () const
 
bool allowsCaching () const
 
const FetchOptionsoptions () const
 
virtual void destroyDecodedData ()
 
void setOwningCachedResourceLoader (CachedResourceLoader *cachedResourceLoader)
 
bool isPreloaded () const
 
void increasePreloadCount ()
 
void decreasePreloadCount ()
 
bool isLinkPreload ()
 
void setLinkPreload ()
 
void registerHandle (CachedResourceHandleBase *)
 
WEBCORE_EXPORT void unregisterHandle (CachedResourceHandleBase *)
 
bool canUseCacheValidator () const
 
virtual RevalidationDecision makeRevalidationDecision (CachePolicy) const
 
bool redirectChainAllowsReuse (ReuseExpiredRedirectionOrNot) const
 
bool hasRedirections () const
 
bool varyHeaderValuesMatch (const ResourceRequest &)
 
bool isCacheValidator () const
 
CachedResourceresourceToRevalidate () const
 
void setResourceToRevalidate (CachedResource *)
 
virtual void switchClientsToRevalidatedResource ()
 
void clearResourceToRevalidate ()
 
void updateResponseAfterRevalidation (const ResourceResponse &validatingResponse)
 
bool validationInProgress () const
 
bool validationCompleting () const
 
virtual void didSendData (unsigned long long, unsigned long long)
 
virtual void didRetrieveDerivedDataFromCache (const String &, SharedBuffer &)
 
unsigned long identifierForLoadWithoutResourceLoader () const
 

Static Public Member Functions

static ResourceLoadPriority defaultPriorityForResourceType (Type)
 
static ResourceLoadPriority defaultPriorityForResourceType (Type)
 

Protected Member Functions

 CachedResource (const URL &, Type, SessionID)
 
void setEncodedSize (unsigned)
 
void setDecodedSize (unsigned)
 
void didAccessDecodedData (double timeStamp)
 
virtual void didReplaceSharedBufferContents ()
 
virtual void setBodyDataFrom (const CachedResource &)
 
 CachedResource (const URL &, Type, SessionID)
 
void setEncodedSize (unsigned)
 
void setDecodedSize (unsigned)
 
void didAccessDecodedData (double timeStamp)
 
virtual void didReplaceSharedBufferContents ()
 
virtual void setBodyDataFrom (const CachedResource &)
 

Protected Attributes

HashCountedSet< CachedResourceClient * > m_clients
 
ResourceRequest m_resourceRequest
 
RefPtr< SubresourceLoaderm_loader
 
ResourceLoaderOptions m_options
 
ResourceResponse m_response
 
ResourceResponse::Tainting m_responseTainting { ResourceResponse::Tainting::Basic }
 
RefPtr< SharedBufferm_data
 
DeferrableOneShotTimer m_decodedDataDeletionTimer
 

Friends

class MemoryCache
 

Member Enumeration Documentation

◆ PreloadResult [1/2]

Enumerator
PreloadNotReferenced 
PreloadReferenced 
PreloadReferencedWhileLoading 
PreloadReferencedWhileComplete 
PreloadNotReferenced 
PreloadReferenced 
PreloadReferencedWhileLoading 
PreloadReferencedWhileComplete 

◆ PreloadResult [2/2]

Enumerator
PreloadNotReferenced 
PreloadReferenced 
PreloadReferencedWhileLoading 
PreloadReferencedWhileComplete 
PreloadNotReferenced 
PreloadReferenced 
PreloadReferencedWhileLoading 
PreloadReferencedWhileComplete 

◆ RevalidationDecision [1/2]

Enumerator
No 
YesDueToCachePolicy 
YesDueToNoStore 
YesDueToNoCache 
YesDueToExpired 
No 
YesDueToCachePolicy 
YesDueToNoStore 
YesDueToNoCache 
YesDueToExpired 

◆ RevalidationDecision [2/2]

Enumerator
No 
YesDueToCachePolicy 
YesDueToNoStore 
YesDueToNoCache 
YesDueToExpired 
No 
YesDueToCachePolicy 
YesDueToNoStore 
YesDueToNoCache 
YesDueToExpired 

◆ Status [1/2]

Enumerator
Unknown 
Pending 
Cached 
LoadError 
DecodeError 
Unknown 
Pending 
Cached 
LoadError 
DecodeError 

◆ Status [2/2]

Enumerator
Unknown 
Pending 
Cached 
LoadError 
DecodeError 
Unknown 
Pending 
Cached 
LoadError 
DecodeError 

◆ Type [1/2]

Enumerator
MainResource 
ImageResource 
CSSStyleSheet 
Script 
FontResource 
MediaResource 
RawResource 
SVGDocumentResource 
MainResource 
ImageResource 
CSSStyleSheet 
Script 
FontResource 
MediaResource 
RawResource 
SVGDocumentResource 

◆ Type [2/2]

Enumerator
MainResource 
ImageResource 
CSSStyleSheet 
Script 
FontResource 
MediaResource 
RawResource 
SVGDocumentResource 
MainResource 
ImageResource 
CSSStyleSheet 
Script 
FontResource 
MediaResource 
RawResource 
SVGDocumentResource 

Constructor & Destructor Documentation

◆ CachedResource() [1/4]

WebCore::CachedResource::CachedResource ( CachedResourceRequest &&  request,
Type  type,
SessionID  sessionID 
)

◆ ~CachedResource() [1/2]

WebCore::CachedResource::~CachedResource ( )
virtual

◆ CachedResource() [2/4]

WebCore::CachedResource::CachedResource ( const URL url,
Type  type,
SessionID  sessionID 
)
protected

◆ CachedResource() [3/4]

WebCore::CachedResource::CachedResource ( CachedResourceRequest &&  ,
Type  ,
SessionID   
)

◆ ~CachedResource() [2/2]

virtual WebCore::CachedResource::~CachedResource ( )
virtual

◆ CachedResource() [4/4]

WebCore::CachedResource::CachedResource ( const URL ,
Type  ,
SessionID   
)
protected

Member Function Documentation

◆ accessCount() [1/2]

unsigned WebCore::CachedResource::accessCount ( ) const
inline

◆ accessCount() [2/2]

unsigned WebCore::CachedResource::accessCount ( ) const
inline

◆ addClient() [1/2]

void WebCore::CachedResource::addClient ( CachedResourceClient client)

◆ addClient() [2/2]

WEBCORE_EXPORT void WebCore::CachedResource::addClient ( CachedResourceClient )

◆ addData() [1/2]

void WebCore::CachedResource::addData ( const char *  data,
unsigned  length 
)
virtual

◆ addData() [2/2]

virtual void WebCore::CachedResource::addData ( const char *  data,
unsigned  length 
)
virtual

◆ addDataBuffer() [1/2]

virtual void WebCore::CachedResource::addDataBuffer ( SharedBuffer )
virtual

◆ addDataBuffer() [2/2]

void WebCore::CachedResource::addDataBuffer ( SharedBuffer )
virtual

◆ allClientsRemoved() [1/2]

virtual void WebCore::CachedResource::allClientsRemoved ( )
inlinevirtual

◆ allClientsRemoved() [2/2]

virtual void WebCore::CachedResource::allClientsRemoved ( )
inlinevirtual

◆ allowsCaching() [1/2]

bool WebCore::CachedResource::allowsCaching ( ) const
inline

◆ allowsCaching() [2/2]

bool WebCore::CachedResource::allowsCaching ( ) const
inline

◆ areAllClientsXMLHttpRequests() [1/2]

bool WebCore::CachedResource::areAllClientsXMLHttpRequests ( ) const

◆ areAllClientsXMLHttpRequests() [2/2]

bool WebCore::CachedResource::areAllClientsXMLHttpRequests ( ) const

◆ cachePartition() [1/2]

const String& WebCore::CachedResource::cachePartition ( ) const
inline

◆ cachePartition() [2/2]

const String& WebCore::CachedResource::cachePartition ( ) const
inline

◆ cancelLoad() [1/2]

void WebCore::CachedResource::cancelLoad ( )

◆ cancelLoad() [2/2]

void WebCore::CachedResource::cancelLoad ( )

◆ canDelete() [1/2]

bool WebCore::CachedResource::canDelete ( ) const
inline

◆ canDelete() [2/2]

bool WebCore::CachedResource::canDelete ( ) const
inline

◆ canUseCacheValidator() [1/2]

bool WebCore::CachedResource::canUseCacheValidator ( ) const

◆ canUseCacheValidator() [2/2]

bool WebCore::CachedResource::canUseCacheValidator ( ) const

◆ clearLoader() [1/2]

void WebCore::CachedResource::clearLoader ( )

◆ clearLoader() [2/2]

void WebCore::CachedResource::clearLoader ( )

◆ clearResourceToRevalidate() [1/2]

void WebCore::CachedResource::clearResourceToRevalidate ( )

◆ clearResourceToRevalidate() [2/2]

void WebCore::CachedResource::clearResourceToRevalidate ( )

◆ count() [1/2]

unsigned WebCore::CachedResource::count ( ) const
inline

◆ count() [2/2]

unsigned WebCore::CachedResource::count ( ) const
inline

◆ dataBufferingPolicy() [1/2]

DataBufferingPolicy WebCore::CachedResource::dataBufferingPolicy ( ) const
inline

◆ dataBufferingPolicy() [2/2]

DataBufferingPolicy WebCore::CachedResource::dataBufferingPolicy ( ) const
inline

◆ decodedSize() [1/2]

unsigned WebCore::CachedResource::decodedSize ( ) const
inline

◆ decodedSize() [2/2]

unsigned WebCore::CachedResource::decodedSize ( ) const
inline

◆ decreasePreloadCount() [1/2]

void WebCore::CachedResource::decreasePreloadCount ( )
inline

◆ decreasePreloadCount() [2/2]

void WebCore::CachedResource::decreasePreloadCount ( )
inline

◆ defaultPriorityForResourceType() [1/2]

ResourceLoadPriority WebCore::CachedResource::defaultPriorityForResourceType ( Type  type)
static

◆ defaultPriorityForResourceType() [2/2]

static ResourceLoadPriority WebCore::CachedResource::defaultPriorityForResourceType ( Type  )
static

◆ deleteIfPossible() [1/2]

bool WebCore::CachedResource::deleteIfPossible ( )

◆ deleteIfPossible() [2/2]

bool WebCore::CachedResource::deleteIfPossible ( )

◆ destroyDecodedData() [1/2]

virtual void WebCore::CachedResource::destroyDecodedData ( )
inlinevirtual

◆ destroyDecodedData() [2/2]

virtual void WebCore::CachedResource::destroyDecodedData ( )
inlinevirtual

◆ destroyDecodedDataIfNeeded() [1/2]

void WebCore::CachedResource::destroyDecodedDataIfNeeded ( )

◆ destroyDecodedDataIfNeeded() [2/2]

void WebCore::CachedResource::destroyDecodedDataIfNeeded ( )

◆ didAccessDecodedData() [1/2]

void WebCore::CachedResource::didAccessDecodedData ( double  timeStamp)
protected

◆ didAccessDecodedData() [2/2]

void WebCore::CachedResource::didAccessDecodedData ( double  timeStamp)
protected

◆ didAddClient() [1/2]

virtual void WebCore::CachedResource::didAddClient ( CachedResourceClient )
virtual

◆ didAddClient() [2/2]

void WebCore::CachedResource::didAddClient ( CachedResourceClient client)
virtual

◆ didRemoveClient() [1/2]

virtual void WebCore::CachedResource::didRemoveClient ( CachedResourceClient )
inlinevirtual

◆ didRemoveClient() [2/2]

virtual void WebCore::CachedResource::didRemoveClient ( CachedResourceClient )
inlinevirtual

◆ didReplaceSharedBufferContents() [1/2]

virtual void WebCore::CachedResource::didReplaceSharedBufferContents ( )
inlineprotectedvirtual

◆ didReplaceSharedBufferContents() [2/2]

virtual void WebCore::CachedResource::didReplaceSharedBufferContents ( )
inlineprotectedvirtual

◆ didRetrieveDerivedDataFromCache() [1/2]

virtual void WebCore::CachedResource::didRetrieveDerivedDataFromCache ( const String ,
SharedBuffer  
)
inlinevirtual

◆ didRetrieveDerivedDataFromCache() [2/2]

virtual void WebCore::CachedResource::didRetrieveDerivedDataFromCache ( const String ,
SharedBuffer  
)
inlinevirtual

◆ didSendData() [1/2]

virtual void WebCore::CachedResource::didSendData ( unsigned long long  ,
unsigned long long   
)
inlinevirtual

◆ didSendData() [2/2]

virtual void WebCore::CachedResource::didSendData ( unsigned long long  ,
unsigned long long   
)
inlinevirtual

◆ encodedSize() [1/2]

unsigned WebCore::CachedResource::encodedSize ( ) const
inline

◆ encodedSize() [2/2]

unsigned WebCore::CachedResource::encodedSize ( ) const
inline

◆ encoding() [1/2]

virtual String WebCore::CachedResource::encoding ( ) const
inlinevirtual

◆ encoding() [2/2]

virtual String WebCore::CachedResource::encoding ( ) const
inlinevirtual

◆ error() [1/2]

void WebCore::CachedResource::error ( CachedResource::Status  status)
virtual

◆ error() [2/2]

virtual void WebCore::CachedResource::error ( CachedResource::Status  )
virtual

◆ errorOccurred() [1/2]

bool WebCore::CachedResource::errorOccurred ( ) const
inline

◆ errorOccurred() [2/2]

bool WebCore::CachedResource::errorOccurred ( ) const
inline

◆ finish() [1/2]

void WebCore::CachedResource::finish ( )

◆ finish() [2/2]

void WebCore::CachedResource::finish ( )

◆ finishLoading() [1/2]

virtual void WebCore::CachedResource::finishLoading ( SharedBuffer )
virtual

◆ finishLoading() [2/2]

void WebCore::CachedResource::finishLoading ( SharedBuffer )
virtual

◆ hasClient() [1/2]

bool WebCore::CachedResource::hasClient ( CachedResourceClient client)
inline

◆ hasClient() [2/2]

bool WebCore::CachedResource::hasClient ( CachedResourceClient client)
inline

◆ hasClients() [1/2]

bool WebCore::CachedResource::hasClients ( ) const
inline

◆ hasClients() [2/2]

bool WebCore::CachedResource::hasClients ( ) const
inline

◆ hasOneHandle() [1/2]

bool WebCore::CachedResource::hasOneHandle ( ) const
inline

◆ hasOneHandle() [2/2]

bool WebCore::CachedResource::hasOneHandle ( ) const
inline

◆ hasRedirections() [1/2]

bool WebCore::CachedResource::hasRedirections ( ) const
inline

◆ hasRedirections() [2/2]

bool WebCore::CachedResource::hasRedirections ( ) const
inline

◆ identifierForLoadWithoutResourceLoader() [1/2]

unsigned long WebCore::CachedResource::identifierForLoadWithoutResourceLoader ( ) const
inline

◆ identifierForLoadWithoutResourceLoader() [2/2]

unsigned long WebCore::CachedResource::identifierForLoadWithoutResourceLoader ( ) const
inline

◆ ignoreForRequestCount() [1/2]

bool WebCore::CachedResource::ignoreForRequestCount ( ) const
inline

◆ ignoreForRequestCount() [2/2]

bool WebCore::CachedResource::ignoreForRequestCount ( ) const
inline

◆ inCache() [1/2]

bool WebCore::CachedResource::inCache ( ) const
inline

◆ inCache() [2/2]

bool WebCore::CachedResource::inCache ( ) const
inline

◆ increaseAccessCount() [1/2]

void WebCore::CachedResource::increaseAccessCount ( )
inline

◆ increaseAccessCount() [2/2]

void WebCore::CachedResource::increaseAccessCount ( )
inline

◆ increasePreloadCount() [1/2]

void WebCore::CachedResource::increasePreloadCount ( )
inline

◆ increasePreloadCount() [2/2]

void WebCore::CachedResource::increasePreloadCount ( )
inline

◆ initiatorName() [1/2]

AtomicString WebCore::CachedResource::initiatorName ( ) const
inline

◆ initiatorName() [2/2]

AtomicString WebCore::CachedResource::initiatorName ( ) const
inline

◆ isCacheValidator() [1/2]

bool WebCore::CachedResource::isCacheValidator ( ) const
inline

◆ isCacheValidator() [2/2]

bool WebCore::CachedResource::isCacheValidator ( ) const
inline

◆ isCORSSameOrigin() [1/2]

bool WebCore::CachedResource::isCORSSameOrigin ( ) const

◆ isCORSSameOrigin() [2/2]

bool WebCore::CachedResource::isCORSSameOrigin ( ) const

◆ isCrossOrigin() [1/2]

bool WebCore::CachedResource::isCrossOrigin ( ) const

◆ isCrossOrigin() [2/2]

bool WebCore::CachedResource::isCrossOrigin ( ) const

◆ isExpired() [1/2]

bool WebCore::CachedResource::isExpired ( ) const

◆ isExpired() [2/2]

bool WebCore::CachedResource::isExpired ( ) const

◆ isImage() [1/2]

bool WebCore::CachedResource::isImage ( ) const
inline

◆ isImage() [2/2]

bool WebCore::CachedResource::isImage ( ) const
inline

◆ isLinkPreload() [1/2]

bool WebCore::CachedResource::isLinkPreload ( )
inline

◆ isLinkPreload() [2/2]

bool WebCore::CachedResource::isLinkPreload ( )
inline

◆ isLoaded() [1/2]

bool WebCore::CachedResource::isLoaded ( ) const
inline

◆ isLoaded() [2/2]

bool WebCore::CachedResource::isLoaded ( ) const
inline

◆ isLoading() [1/2]

bool WebCore::CachedResource::isLoading ( ) const
inline

◆ isLoading() [2/2]

bool WebCore::CachedResource::isLoading ( ) const
inline

◆ isMainOrMediaOrRawResource() [1/2]

bool WebCore::CachedResource::isMainOrMediaOrRawResource ( ) const
inline

◆ isMainOrMediaOrRawResource() [2/2]

bool WebCore::CachedResource::isMainOrMediaOrRawResource ( ) const
inline

◆ isPreloaded() [1/2]

bool WebCore::CachedResource::isPreloaded ( ) const
inline

◆ isPreloaded() [2/2]

bool WebCore::CachedResource::isPreloaded ( ) const
inline

◆ load() [1/2]

void WebCore::CachedResource::load ( CachedResourceLoader cachedResourceLoader)
virtual

◆ load() [2/2]

virtual void WebCore::CachedResource::load ( CachedResourceLoader )
virtual

◆ loader() [1/2]

SubresourceLoader* WebCore::CachedResource::loader ( )
inline

◆ loader() [2/2]

SubresourceLoader* WebCore::CachedResource::loader ( )
inline

◆ loadFailedOrCanceled() [1/2]

bool WebCore::CachedResource::loadFailedOrCanceled ( ) const
inline

◆ loadFailedOrCanceled() [2/2]

bool WebCore::CachedResource::loadFailedOrCanceled ( ) const
inline

◆ loadFrom() [1/2]

void WebCore::CachedResource::loadFrom ( const CachedResource )

◆ loadFrom() [2/2]

void WebCore::CachedResource::loadFrom ( const CachedResource resource)

◆ loadPriority() [1/2]

ResourceLoadPriority WebCore::CachedResource::loadPriority ( ) const
inline

◆ loadPriority() [2/2]

ResourceLoadPriority WebCore::CachedResource::loadPriority ( ) const
inline

◆ makeRevalidationDecision() [1/2]

virtual RevalidationDecision WebCore::CachedResource::makeRevalidationDecision ( CachePolicy  ) const
virtual

◆ makeRevalidationDecision() [2/2]

CachedResource::RevalidationDecision WebCore::CachedResource::makeRevalidationDecision ( CachePolicy  cachePolicy) const
virtual

◆ options() [1/2]

const FetchOptions& WebCore::CachedResource::options ( ) const
inline

◆ options() [2/2]

const FetchOptions& WebCore::CachedResource::options ( ) const
inline

◆ origin() [1/2]

SecurityOrigin* WebCore::CachedResource::origin ( ) const
inline

◆ origin() [2/2]

SecurityOrigin* WebCore::CachedResource::origin ( ) const
inline

◆ overheadSize() [1/2]

unsigned WebCore::CachedResource::overheadSize ( ) const

◆ overheadSize() [2/2]

unsigned WebCore::CachedResource::overheadSize ( ) const

◆ preloadResult() [1/2]

PreloadResult WebCore::CachedResource::preloadResult ( ) const
inline

◆ preloadResult() [2/2]

PreloadResult WebCore::CachedResource::preloadResult ( ) const
inline

◆ redirectChainAllowsReuse() [1/2]

bool WebCore::CachedResource::redirectChainAllowsReuse ( ReuseExpiredRedirectionOrNot  reuseExpiredRedirection) const

◆ redirectChainAllowsReuse() [2/2]

bool WebCore::CachedResource::redirectChainAllowsReuse ( ReuseExpiredRedirectionOrNot  ) const

◆ redirectReceived() [1/2]

virtual void WebCore::CachedResource::redirectReceived ( ResourceRequest ,
const ResourceResponse  
)
virtual

◆ redirectReceived() [2/2]

void WebCore::CachedResource::redirectReceived ( ResourceRequest ,
const ResourceResponse response 
)
virtual

◆ registerHandle() [1/2]

void WebCore::CachedResource::registerHandle ( CachedResourceHandleBase h)

◆ registerHandle() [2/2]

void WebCore::CachedResource::registerHandle ( CachedResourceHandleBase )

◆ removeClient() [1/2]

void WebCore::CachedResource::removeClient ( CachedResourceClient client)

◆ removeClient() [2/2]

WEBCORE_EXPORT void WebCore::CachedResource::removeClient ( CachedResourceClient )

◆ resourceBuffer() [1/2]

SharedBuffer* WebCore::CachedResource::resourceBuffer ( ) const
inline

◆ resourceBuffer() [2/2]

SharedBuffer* WebCore::CachedResource::resourceBuffer ( ) const
inline

◆ resourceError() [1/2]

const ResourceError& WebCore::CachedResource::resourceError ( ) const
inline

◆ resourceError() [2/2]

const ResourceError& WebCore::CachedResource::resourceError ( ) const
inline

◆ resourceRequest() [1/4]

const ResourceRequest& WebCore::CachedResource::resourceRequest ( ) const
inline

◆ resourceRequest() [2/4]

const ResourceRequest& WebCore::CachedResource::resourceRequest ( ) const
inline

◆ resourceRequest() [3/4]

ResourceRequest& WebCore::CachedResource::resourceRequest ( )
inline

◆ resourceRequest() [4/4]

ResourceRequest& WebCore::CachedResource::resourceRequest ( )
inline

◆ resourceToRevalidate() [1/2]

CachedResource* WebCore::CachedResource::resourceToRevalidate ( ) const
inline

◆ resourceToRevalidate() [2/2]

CachedResource* WebCore::CachedResource::resourceToRevalidate ( ) const
inline

◆ response() [1/2]

const ResourceResponse& WebCore::CachedResource::response ( ) const
inline

◆ response() [2/2]

const ResourceResponse& WebCore::CachedResource::response ( ) const
inline

◆ responseReceived() [1/2]

virtual void WebCore::CachedResource::responseReceived ( const ResourceResponse )
virtual

◆ responseReceived() [2/2]

void WebCore::CachedResource::responseReceived ( const ResourceResponse response)
virtual

◆ responseTainting() [1/2]

ResourceResponse::Tainting WebCore::CachedResource::responseTainting ( ) const
inline

◆ responseTainting() [2/2]

ResourceResponse::Tainting WebCore::CachedResource::responseTainting ( ) const
inline

◆ sessionID() [1/2]

SessionID WebCore::CachedResource::sessionID ( ) const
inline

◆ sessionID() [2/2]

SessionID WebCore::CachedResource::sessionID ( ) const
inline

◆ setBodyDataFrom() [1/2]

virtual void WebCore::CachedResource::setBodyDataFrom ( const CachedResource )
protectedvirtual

◆ setBodyDataFrom() [2/2]

void WebCore::CachedResource::setBodyDataFrom ( const CachedResource resource)
protectedvirtual

◆ setCrossOrigin() [1/2]

void WebCore::CachedResource::setCrossOrigin ( )

◆ setCrossOrigin() [2/2]

void WebCore::CachedResource::setCrossOrigin ( )

◆ setDecodedSize() [1/2]

void WebCore::CachedResource::setDecodedSize ( unsigned  )
protected

◆ setDecodedSize() [2/2]

void WebCore::CachedResource::setDecodedSize ( unsigned  size)
protected

◆ setEncodedSize() [1/2]

void WebCore::CachedResource::setEncodedSize ( unsigned  )
protected

◆ setEncodedSize() [2/2]

void WebCore::CachedResource::setEncodedSize ( unsigned  size)
protected

◆ setEncoding() [1/2]

virtual void WebCore::CachedResource::setEncoding ( const String )
inlinevirtual

◆ setEncoding() [2/2]

virtual void WebCore::CachedResource::setEncoding ( const String )
inlinevirtual

◆ setInCache() [1/2]

void WebCore::CachedResource::setInCache ( bool  inCache)
inline

◆ setInCache() [2/2]

void WebCore::CachedResource::setInCache ( bool  inCache)
inline

◆ setLinkPreload() [1/2]

void WebCore::CachedResource::setLinkPreload ( )
inline

◆ setLinkPreload() [2/2]

void WebCore::CachedResource::setLinkPreload ( )
inline

◆ setLoading() [1/2]

void WebCore::CachedResource::setLoading ( bool  b)
inline

◆ setLoading() [2/2]

void WebCore::CachedResource::setLoading ( bool  b)
inline

◆ setLoadPriority() [1/2]

void WebCore::CachedResource::setLoadPriority ( const std::optional< ResourceLoadPriority > &  loadPriority)

◆ setLoadPriority() [2/2]

void WebCore::CachedResource::setLoadPriority ( const std::optional< ResourceLoadPriority > &  )

◆ setOwningCachedResourceLoader() [1/2]

void WebCore::CachedResource::setOwningCachedResourceLoader ( CachedResourceLoader cachedResourceLoader)
inline

◆ setOwningCachedResourceLoader() [2/2]

void WebCore::CachedResource::setOwningCachedResourceLoader ( CachedResourceLoader cachedResourceLoader)
inline

◆ setResourceError() [1/2]

void WebCore::CachedResource::setResourceError ( const ResourceError error)
inline

◆ setResourceError() [2/2]

void WebCore::CachedResource::setResourceError ( const ResourceError error)
inline

◆ setResourceToRevalidate() [1/2]

void WebCore::CachedResource::setResourceToRevalidate ( CachedResource resource)

◆ setResourceToRevalidate() [2/2]

void WebCore::CachedResource::setResourceToRevalidate ( CachedResource )

◆ setResponse() [1/2]

void WebCore::CachedResource::setResponse ( const ResourceResponse )

◆ setResponse() [2/2]

void WebCore::CachedResource::setResponse ( const ResourceResponse response)

◆ setStatus() [1/2]

void WebCore::CachedResource::setStatus ( Status  status)
inline

◆ setStatus() [2/2]

void WebCore::CachedResource::setStatus ( Status  status)
inline

◆ shouldCacheResponse() [1/2]

virtual bool WebCore::CachedResource::shouldCacheResponse ( const ResourceResponse )
inlinevirtual

◆ shouldCacheResponse() [2/2]

virtual bool WebCore::CachedResource::shouldCacheResponse ( const ResourceResponse )
inlinevirtual

◆ shouldIgnoreHTTPStatusCodeErrors() [1/2]

virtual bool WebCore::CachedResource::shouldIgnoreHTTPStatusCodeErrors ( ) const
inlinevirtual

◆ shouldIgnoreHTTPStatusCodeErrors() [2/2]

virtual bool WebCore::CachedResource::shouldIgnoreHTTPStatusCodeErrors ( ) const
inlinevirtual

◆ shouldSendResourceLoadCallbacks() [1/2]

bool WebCore::CachedResource::shouldSendResourceLoadCallbacks ( ) const
inline

◆ shouldSendResourceLoadCallbacks() [2/2]

bool WebCore::CachedResource::shouldSendResourceLoadCallbacks ( ) const
inline

◆ size() [1/2]

unsigned WebCore::CachedResource::size ( ) const
inline

◆ size() [2/2]

unsigned WebCore::CachedResource::size ( ) const
inline

◆ status() [1/2]

Status WebCore::CachedResource::status ( ) const
inline

◆ status() [2/2]

Status WebCore::CachedResource::status ( ) const
inline

◆ stillNeedsLoad() [1/2]

virtual bool WebCore::CachedResource::stillNeedsLoad ( ) const
inlinevirtual

Reimplemented in WebCore::CachedFont.

◆ stillNeedsLoad() [2/2]

virtual bool WebCore::CachedResource::stillNeedsLoad ( ) const
inlinevirtual

Reimplemented in WebCore::CachedFont.

◆ switchClientsToRevalidatedResource() [1/2]

virtual void WebCore::CachedResource::switchClientsToRevalidatedResource ( )
virtual

◆ switchClientsToRevalidatedResource() [2/2]

void WebCore::CachedResource::switchClientsToRevalidatedResource ( )
virtual

◆ textResourceDecoder() [1/2]

virtual const TextResourceDecoder* WebCore::CachedResource::textResourceDecoder ( ) const
inlinevirtual

◆ textResourceDecoder() [2/2]

virtual const TextResourceDecoder* WebCore::CachedResource::textResourceDecoder ( ) const
inlinevirtual

◆ type() [1/2]

Type WebCore::CachedResource::type ( ) const
inline

◆ type() [2/2]

Type WebCore::CachedResource::type ( ) const
inline

◆ unregisterHandle() [1/2]

WEBCORE_EXPORT void WebCore::CachedResource::unregisterHandle ( CachedResourceHandleBase )

◆ unregisterHandle() [2/2]

void WebCore::CachedResource::unregisterHandle ( CachedResourceHandleBase h)

◆ updateResponseAfterRevalidation() [1/2]

void WebCore::CachedResource::updateResponseAfterRevalidation ( const ResourceResponse validatingResponse)

◆ updateResponseAfterRevalidation() [2/2]

void WebCore::CachedResource::updateResponseAfterRevalidation ( const ResourceResponse validatingResponse)

◆ url() [1/2]

const URL& WebCore::CachedResource::url ( ) const
inline

◆ url() [2/2]

const URL& WebCore::CachedResource::url ( ) const
inline

◆ validationCompleting() [1/2]

bool WebCore::CachedResource::validationCompleting ( ) const
inline

◆ validationCompleting() [2/2]

bool WebCore::CachedResource::validationCompleting ( ) const
inline

◆ validationInProgress() [1/2]

bool WebCore::CachedResource::validationInProgress ( ) const
inline

◆ validationInProgress() [2/2]

bool WebCore::CachedResource::validationInProgress ( ) const
inline

◆ varyHeaderValuesMatch() [1/2]

bool WebCore::CachedResource::varyHeaderValuesMatch ( const ResourceRequest )

◆ varyHeaderValuesMatch() [2/2]

bool WebCore::CachedResource::varyHeaderValuesMatch ( const ResourceRequest request)

◆ wasCanceled() [1/2]

bool WebCore::CachedResource::wasCanceled ( ) const
inline

◆ wasCanceled() [2/2]

bool WebCore::CachedResource::wasCanceled ( ) const
inline

Friends And Related Function Documentation

◆ MemoryCache

MemoryCache
friend

Member Data Documentation

◆ m_clients

HashCountedSet< CachedResourceClient * > WebCore::CachedResource::m_clients
protected

◆ m_data

RefPtr< SharedBuffer > WebCore::CachedResource::m_data
protected

◆ m_decodedDataDeletionTimer

DeferrableOneShotTimer WebCore::CachedResource::m_decodedDataDeletionTimer
protected

◆ m_loader

RefPtr< SubresourceLoader > WebCore::CachedResource::m_loader
protected

◆ m_options

ResourceLoaderOptions WebCore::CachedResource::m_options
protected

◆ m_resourceRequest

ResourceRequest WebCore::CachedResource::m_resourceRequest
protected

◆ m_response

ResourceResponse WebCore::CachedResource::m_response
protected

◆ m_responseTainting

ResourceResponse::Tainting WebCore::CachedResource::m_responseTainting { ResourceResponse::Tainting::Basic }
protected

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