24 #ifndef PAGESPEED_OPT_HTTP_FALLBACK_PROPERTY_PAGE_H_
25 #define PAGESPEED_OPT_HTTP_FALLBACK_PROPERTY_PAGE_H_
31 #include "pagespeed/kernel/cache/cache_interface.h"
34 namespace net_instaweb {
49 const StringPiece& property_name);
55 const StringPiece& property_name);
61 const StringPiece& value);
77 const StringPiece& property_name);
79 PropertyPage* actual_property_page() {
return actual_property_page_.get(); }
81 return property_page_with_fallback_values_.get();
class GoogleUrl
Definition: google_url.h:58
Abstract interface for implementing a PropertyPage.
Definition: property_cache.h:291
Holds the value & stability-metadata for a property.
Definition: property_cache.h:122
PropertyValue * GetFallbackProperty(const PropertyCache::Cohort *cohort, const StringPiece &property_name)
Definition: property_cache.h:186
static bool IsFallbackUrl(const GoogleString &url)
Returns true if given url is for fallback properties.
virtual void DeleteProperty(const PropertyCache::Cohort *cohort, const StringPiece &property_name)
Deletes a property given the property name from both the pages.
virtual PropertyValue * GetProperty(const PropertyCache::Cohort *cohort, const StringPiece &property_name)
Definition: property_cache.h:323
static GoogleString GetFallbackPageUrl(const GoogleUrl &request_url)
KeyState
Definition: cache_interface.h:34
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual CacheInterface::KeyState GetFallbackCacheState(const PropertyCache::Cohort *cohort)
Gets the cache state of the property page with fallback values.
virtual void UpdateValue(const PropertyCache::Cohort *cohort, const StringPiece &property_name, const StringPiece &value)
virtual CacheInterface::KeyState GetCacheState(const PropertyCache::Cohort *cohort)
Gets the cache state for the actual property page.
virtual void WriteCohort(const PropertyCache::Cohort *cohort)
FallbackPropertyPage(PropertyPage *actual_property_page, PropertyPage *property_page_with_fallback_values)
FallbackPropertyPage takes the ownership of both the property pages.
Definition: fallback_property_page.h:38