Page Speed Optimization Libraries
1.13.35.1
|
Public Member Functions | |
MockPropertyPage (ThreadSystem *thread_system, PropertyCache *property_cache, const StringPiece &url, const StringPiece &options_signature_hash, const StringPiece &cache_key_suffix) | |
virtual bool | IsCacheValid (int64 write_timestamp_ms) const |
virtual void | Done (bool valid) |
Called as a result of PropertyCache::Read when the data is available. | |
bool | called () const |
bool | valid () const |
void | set_time_ms (int64 time_ms) |
Public Member Functions inherited from net_instaweb::PropertyPage | |
virtual PropertyValue * | GetProperty (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) |
CacheInterface::KeyState | GetCacheState (const PropertyCache::Cohort *cohort) |
void | SetCacheState (const PropertyCache::Cohort *cohort, CacheInterface::KeyState x) |
void | DeleteProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name) |
AbstractLogRecord * | log_record () |
void | Read (const PropertyCache::CohortVector &cohort_list) |
Read the property page from cache. | |
void | Abort () |
Abort the reading of PropertyPage. | |
void | AddValueFromProtobuf (const PropertyCache::Cohort *cohort, const PropertyValueProtobuf &proto) |
Populate PropertyCacheValues to the respective cohort in PropertyPage. | |
PageType | page_type () |
Returns the type of the page. | |
bool | IsCohortPresent (const PropertyCache::Cohort *cohort) |
Returns true if cohort present in the PropertyPage. | |
void | FastFinishLookup () |
bool | EncodePropertyCacheValues (const PropertyCache::Cohort *cohort, PropertyCacheValues *values) |
Additional Inherited Members | |
Public Types inherited from net_instaweb::PropertyPage | |
enum | PageType { kPropertyCachePage, kPropertyCacheFallbackPage, kPropertyCachePerOriginPage } |
The cache type associated with this callback. | |
Static Public Member Functions inherited from net_instaweb::PropertyPage | |
static StringPiece | PageTypeSuffix (PageType type) |
Suffix for property cache keys for given page type. | |
Protected Member Functions inherited from net_instaweb::PropertyPage | |
PropertyPage (PageType page_type, StringPiece url, StringPiece options_signature_hash, StringPiece cache_key_suffix, const RequestContextPtr &request_context, AbstractMutex *mutex, PropertyCache *property_cache) | |
|
inlinevirtual |
Called immediately after the underlying cache lookup is done, from PropertyCache::CacheInterfaceCallback::Done().
Reimplemented from net_instaweb::PropertyPage.