Home | History | Annotate | Download | only in cache

Lines Matching refs:CachedResource

25 #include "CachedResource.h"
51 static ResourceLoadPriority defaultPriorityForResourceType(CachedResource::Type type)
54 case CachedResource::CSSStyleSheet:
56 case CachedResource::XSLStyleSheet:
59 case CachedResource::Script:
60 case CachedResource::FontResource:
62 case CachedResource::ImageResource:
65 case CachedResource::LinkResource:
74 static RefCountedLeakCounter cachedResourceLeakCounter("CachedResource");
77 CachedResource::CachedResource(const String& url, Type type)
113 CachedResource::~CachedResource()
130 void CachedResource::load(CachedResourceLoader* cachedResourceLoader, bool incremental, SecurityCheckPolicy securityCheck, bool sendResourceLoadCallbacks)
137 void CachedResource::checkNotify()
147 void CachedResource::data(PassRefPtr<SharedBuffer>, bool allDataReceived)
156 void CachedResource::error(CachedResource::Status status)
166 void CachedResource::finish()
171 bool CachedResource::isExpired() const
179 double CachedResource::currentAge() const
191 double CachedResource::freshnessLifetime() const
213 void CachedResource::setResponse(const ResourceResponse& response)
219 void CachedResource::setSerializedCachedMetadata(const char* data, size_t size)
229 void CachedResource::setCachedMetadata(unsigned dataTypeID, const char* data, size_t size)
240 CachedMetadata* CachedResource::cachedMetadata(unsigned dataTypeID) const
247 void CachedResource::setRequest(CachedResourceRequest* request)
256 void CachedResource::addClient(CachedResourceClient* client)
262 void CachedResource::didAddClient(CachedResourceClient* c)
268 void CachedResource::addClientToSet(CachedResourceClient* client)
285 void CachedResource::removeClient(CachedResourceClient* client)
309 void CachedResource::deleteIfPossible()
315 void CachedResource::setDecodedSize(unsigned size)
351 void CachedResource::setEncodedSize(unsigned size)
378 void CachedResource::didAccessDecodedData(double timeStamp)
391 void CachedResource::setResourceToRevalidate(CachedResource* resource)
399 LOG(ResourceLoading, "CachedResource %p setResourceToRevalidate %p", this, resource);
403 // So the code needs to be robust to this assert failing thus the "if (m_resourceToRevalidate->m_proxyResource == this)" in CachedResource::clearResourceToRevalidate.
410 void CachedResource::clearResourceToRevalidate()
423 void CachedResource::switchClientsToRevalidatedResource()
429 LOG(ResourceLoading, "CachedResource %p switchClientsToRevalidatedResource %p", this, m_resourceToRevalidate);
464 void CachedResource::updateResponseAfterRevalidation(const ResourceResponse& validatingResponse)
481 void CachedResource::registerHandle(CachedResourceHandleBase* h)
488 void CachedResource::unregisterHandle(CachedResourceHandleBase* h)
500 bool CachedResource::canUseCacheValidator() const
510 bool CachedResource::mustRevalidateDueToCacheHeaders(CachePolicy cachePolicy) const
518 LOG(ResourceLoading, "CachedResource %p mustRevalidate because of m_response.cacheControlContainsNoCache() || m_response.cacheControlContainsNoStore()\n", this);
524 LOG(ResourceLoading, "CachedResource %p mustRevalidate because of cachePolicy == CachePolicyCache and m_response.cacheControlContainsMustRevalidate() && isExpired()\n", this);
532 LOG(ResourceLoading, "CachedResource %p mustRevalidate because of isExpired()\n", this);
539 bool CachedResource::isSafeToMakePurgeable() const
544 bool CachedResource::makePurgeable(bool purgeable)
586 bool CachedResource::isPurgeable() const
591 bool CachedResource::wasPurged() const
596 unsigned CachedResource::overheadSize() const
598 return sizeof(CachedResource) + m_response.memoryUsage() + 576;
605 void CachedResource::setLoadPriority(ResourceLoadPriority loadPriority)