Page Speed Optimization Libraries
1.7.30.4
|
#include "flush_early_info_finder.h"
Public Member Functions | |
FlushEarlyInfoFinder (const PropertyCache::Cohort *cohort) | |
virtual bool | IsMeaningful (const RewriteDriver *driver) const |
virtual void | UpdateFlushEarlyInfoInDriver (RewriteDriver *driver) |
Gets the flush early info and update the RewriteDriver. | |
virtual void | ComputeFlushEarlyInfo (RewriteDriver *driver) |
Computes the flush early info. | |
virtual const char * | GetCharset (const RewriteDriver *driver) |
Static Public Attributes | |
static const char | kFlushEarlyRenderPropertyName [] |
Protected Member Functions | |
void | UpdateFlushEarlyInfoCacheEntry (RewriteDriver *driver, FlushEarlyRenderInfo *flush_early_render_info) |
Finds a subset of flush early information which may be used by FlushEarlyFlow. This includes information like privately cacheable resources, charset.
virtual const char* net_instaweb::FlushEarlyInfoFinder::GetCharset | ( | const RewriteDriver * | driver | ) | [virtual] |
Gets the charset of the html document. Users of this function should also check IsMeaningful() to see if the implementation of this function returns meaningful results and provide a default behavior if it does not.
virtual bool net_instaweb::FlushEarlyInfoFinder::IsMeaningful | ( | const RewriteDriver * | driver | ) | const [inline, virtual] |
Checks whether GetCharset will return meaningful result. The default implementation does not, but classes inheriting likely do. Users of GetCharset should check this function and supply a default behavior if IsMeaningful returns false.
Reimplemented in net_instaweb::MeaningfulFlushEarlyInfoFinder.