21 #ifndef PAGESPEED_OPT_HTTP_PROPERTY_STORE_H_
22 #define PAGESPEED_OPT_HTTP_PROPERTY_STORE_H_
31 namespace net_instaweb {
34 class PropertyCacheValues;
35 class PropertyValueProtobuf;
60 const PropertyCache::CohortVector& cohort_list,
74 const PropertyCacheValues* values,
81 void set_enable_get_cancellation(
bool x) { enable_get_cancellation_ = x; }
91 bool enable_get_cancellation_;
119 static void InitStats(
Statistics* statistics);
132 const PropertyValueProtobuf& pcache_value,
133 int64 min_write_timestamp_ms);
137 void Done(
bool success);
146 const bool is_cancellable_;
148 bool delete_when_done_;
151 int64 fast_finish_time_ms_;
virtual GoogleString Name() const =0
virtual void Get(const GoogleString &url, const GoogleString &options_signature_hash, const GoogleString &cache_key_suffix, const PropertyCache::CohortVector &cohort_list, PropertyPage *page, BoolCallback *done, AbstractPropertyStoreGetCallback **callback)=0
Definition: property_cache.h:186
Definition: property_store.h:41
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
bool enable_get_cancellation()
Definition: property_store.h:80
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
Definition: abstract_property_store_get_callback.h:31
Definition: property_cache.h:323
virtual void FastFinishLookup()
Definition: scoped_ptr.h:30
Definition: property_store.h:108
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
bool AddPropertyValueProtobufToPropertyPage(const PropertyCache::Cohort *cohort, const PropertyValueProtobuf &pcache_value, int64 min_write_timestamp_ms)
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
virtual void DeleteWhenDone()
Deletes the callback after done finishes.
virtual void Put(const GoogleString &url, const GoogleString &options_signature_hash, const GoogleString &cache_key_suffix, const PropertyCache::Cohort *cohort, const PropertyCacheValues *values, BoolCallback *done)=0
Definition: callback.h:44