Page Speed Optimization Libraries
1.6.29.3
|
Public Member Functions | |
virtual bool | UseHttpCache () const |
All subclasses of this use the HTTP cache. | |
virtual bool | IsValidAndCacheable () const |
virtual void | LoadAndCallback (NotCacheablePolicy not_cacheable_policy, const RequestContextPtr &request_context, AsyncCallback *callback) |
virtual void | Freshen (FreshenCallback *callback, MessageHandler *handler) |
Implementation of freshening. | |
virtual void | RefreshIfImminentlyExpiring () |
Overridden from Resource. | |
Protected Member Functions | |
CacheableResourceBase (StringPiece stat_prefix, RewriteDriver *rewrite_driver, const ContentType *type) | |
Note: InitStats(stat_prefix) must have been called before. | |
virtual bool | IsValidAndCacheableImpl (const ResponseHeaders &headers) const =0 |
Required to be overridden by subclass to define cacheability policy. | |
HTTPCache * | http_cache () const |
RewriteDriver * | rewrite_driver () const |
const RewriteOptions * | rewrite_options () const |
Static Protected Member Functions | |
static void | InitStats (StringPiece stat_prefix, Statistics *statistics) |
Friends | |
class | CacheableResourceBaseTest |
virtual bool net_instaweb::CacheableResourceBase::IsValidAndCacheable | ( | ) | const [virtual] |
Checks if the contents are loaded and valid and also if the resource is up-to-date and cacheable by a proxy like us.
Reimplemented from net_instaweb::Resource.
virtual void net_instaweb::CacheableResourceBase::LoadAndCallback | ( | NotCacheablePolicy | not_cacheable_policy, |
const RequestContextPtr & | request_context, | ||
AsyncCallback * | callback | ||
) | [virtual] |
Implementation of loading. This checks the cache, and fetches the resource if appropriate.
Implements net_instaweb::Resource.