Page Speed Optimization Libraries
1.13.35.1
|
Public Member Functions | |
FallbackPropertyPage (PropertyPage *actual_property_page, PropertyPage *property_page_with_fallback_values) | |
FallbackPropertyPage takes the ownership of both the property pages. | |
virtual PropertyValue * | GetProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name) |
PropertyValue * | GetFallbackProperty (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. | |
PropertyPage * | actual_property_page () |
PropertyPage * | property_page_with_fallback_values () |
Static Public Member Functions | |
static GoogleString | GetFallbackPageUrl (const GoogleUrl &request_url) |
static bool | IsFallbackUrl (const GoogleString &url) |
Returns true if given url is for fallback properties. | |
|
static |
Returns the page property cache url for the page containing fallback values (i.e. without query params or without leaf).
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 |
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 |
Updates the value of a property for both actual property page and fallback property page.
Implements net_instaweb::AbstractPropertyPage.
|
virtual |
Updates a Cohort of properties into the cache. It will also update for fallback property cache.
Implements net_instaweb::AbstractPropertyPage.