Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends
net_instaweb::CacheableResourceBase Class Reference
Inheritance diagram for net_instaweb::CacheableResourceBase:
net_instaweb::Resource net_instaweb::UrlInputResource

List of all members.

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.
HTTPCachehttp_cache () const
RewriteDriverrewrite_driver () const
const RewriteOptionsrewrite_options () const

Static Protected Member Functions

static void InitStats (StringPiece stat_prefix, Statistics *statistics)

Friends

class CacheableResourceBaseTest

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines