Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::FallbackPropertyPage Class Reference
Inheritance diagram for net_instaweb::FallbackPropertyPage:
net_instaweb::AbstractPropertyPage

List of all members.

Public Member Functions

 FallbackPropertyPage (PropertyPage *actual_property_page, PropertyPage *property_page_with_fallback_values)
 FallbackPropertyPage takes the ownership of both the property pages.
virtual PropertyValueGetProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)
PropertyValueGetFallbackProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)
virtual void UpdateValue (const PropertyCache::Cohort *cohort, const StringPiece &property_name, const StringPiece &value)
virtual void WriteCohort (const PropertyCache::Cohort *cohort)
virtual CacheInterface::KeyState GetCacheState (const PropertyCache::Cohort *cohort)
 Gets the cache state for the actual property page.
virtual CacheInterface::KeyState GetFallbackCacheState (const PropertyCache::Cohort *cohort)
 Gets the cache state of the property page with fallback values.
virtual void DeleteProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)
 Deletes a property given the property name from both the pages.
virtual const GoogleString & key () const
PropertyPageactual_property_page ()
PropertyPageproperty_page_with_fallback_values ()

Member Function Documentation

PropertyValue* net_instaweb::FallbackPropertyPage::GetFallbackProperty ( const PropertyCache::Cohort cohort,
const StringPiece &  property_name 
)

Gets the property from property page with fallback values. It can return NULL if property page with fallback values is NULL.

virtual PropertyValue* net_instaweb::FallbackPropertyPage::GetProperty ( const PropertyCache::Cohort cohort,
const StringPiece &  property_name 
) [virtual]

Gets a property given the property name. It returns the property from fallback property cache if actual property page has no value.

Implements net_instaweb::AbstractPropertyPage.

virtual void net_instaweb::FallbackPropertyPage::UpdateValue ( const PropertyCache::Cohort cohort,
const StringPiece &  property_name,
const StringPiece &  value 
) [virtual]

Updates the value of a property for both actual property page and fallback property page.

Implements net_instaweb::AbstractPropertyPage.

virtual void net_instaweb::FallbackPropertyPage::WriteCohort ( const PropertyCache::Cohort cohort) [virtual]

Updates a Cohort of properties into the cache. It will also update for fallback property cache.

Implements net_instaweb::AbstractPropertyPage.


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