Page Speed Optimization Libraries
1.7.30.4
|
#include "critical_line_info_finder.h"
Public Member Functions | |
CriticalLineInfoFinder (const PropertyCache::Cohort *cohort) | |
const PropertyCache::Cohort * | cohort () const |
Returns the cohort in pcache which stores the critical line info. | |
virtual const CriticalLineInfo * | GetCriticalLine (RewriteDriver *driver) |
Populates the critical line information in the driver and return it. | |
virtual BeaconMetadata | PrepareForBeaconInsertion (RewriteDriver *driver) |
Static Public Attributes | |
static const char | kCriticalLineInfoPropertyName [] |
Protected Member Functions | |
virtual void | UpdateInDriver (RewriteDriver *driver) |
Updates the critical line information in the driver. |
The instantiated CriticalLineInfoFinder is held by ServerContext, meaning there is only 1 per server. The RewriteDriver's critical_line_info is the actual information.
virtual BeaconMetadata net_instaweb::CriticalLineInfoFinder::PrepareForBeaconInsertion | ( | RewriteDriver * | driver | ) | [inline, virtual] |
Check property cache state and prepare to insert beacon. Returns the metadata with result.status == kDoNotBeacon if no beaconing should occur, and result.nonce contains the nonce if required (default implementation always beacons without a nonce).
Reimplemented in net_instaweb::BeaconCriticalLineInfoFinder.