Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::AbstractPropertyPage Class Referenceabstract

Abstract interface for implementing a PropertyPage. More...

#include "property_cache.h"

Inheritance diagram for net_instaweb::AbstractPropertyPage:
net_instaweb::FallbackPropertyPage net_instaweb::PropertyPage net_instaweb::MockPropertyPage net_instaweb::ProxyFetchPropertyCallback

Public Member Functions

virtual PropertyValueGetProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)=0
 
virtual void UpdateValue (const PropertyCache::Cohort *cohort, const StringPiece &property_name, const StringPiece &value)=0
 
virtual void WriteCohort (const PropertyCache::Cohort *cohort)=0
 
virtual CacheInterface::KeyState GetCacheState (const PropertyCache::Cohort *cohort)=0
 This function returns the cache state for a given cohort.
 
virtual void DeleteProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)=0
 Deletes a property given the property name.
 

Detailed Description

Abstract interface for implementing a PropertyPage.

Member Function Documentation

virtual PropertyValue* net_instaweb::AbstractPropertyPage::GetProperty ( const PropertyCache::Cohort cohort,
const StringPiece &  property_name 
)
pure virtual

Gets a property given the property name. The property can then be mutated, prior to the PropertyPage being written back to the cache.

Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.

virtual void net_instaweb::AbstractPropertyPage::UpdateValue ( const PropertyCache::Cohort cohort,
const StringPiece &  property_name,
const StringPiece &  value 
)
pure virtual

Updates the value of a property, tracking stability & discarding writes when the existing data is more up-to-date.

Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.

virtual void net_instaweb::AbstractPropertyPage::WriteCohort ( const PropertyCache::Cohort cohort)
pure virtual

Updates a Cohort of properties into the cache. It is a programming error (dcheck-fail) to Write a PropertyPage that was not read first. It is fine to Write after a failed Read.

Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.


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