Page Speed Optimization Libraries
1.3.25.1
|
#include "proxy_fetch.h"
Public Types | |
enum | CacheType { kPagePropertyCache, kClientPropertyCache, kDevicePropertyCache } |
The cache type associated with this callback. | |
Public Member Functions | |
ProxyFetchPropertyCallback (CacheType cache_type, const PropertyCache &property_cache, const StringPiece &key, UserAgentMatcher::DeviceType device_type, ProxyFetchPropertyCallbackCollector *collector, AbstractMutex *mutex) | |
CacheType | cache_type () const |
UserAgentMatcher::DeviceType | device_type () const |
virtual bool | IsCacheValid (int64 write_timestamp_ms) const |
Delegates to collector_'s IsCacheValid. | |
virtual void | Done (bool success) |
Called as a result of PropertyCache::Read when the data is available. | |
virtual void | LogPageCohortInfo (LogRecord *log_record, int cohort_index) |
Adds logs for the given PropertyPage to the specified cohort info index. |
Tracks a single property-cache lookup. These lookups are initiated immediately upon handling the request, in parallel with determining domain-specific RewriteOptions and fetching the HTTP headers for the HTML.
Request handling can proceed in parallel with the property-cache lookups, including RewriteOptions lookup and initating the HTTP fetch. However, handling incoming bytes will be blocked waiting for property-cache lookups to complete.