Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
net_instaweb::BeaconCriticalImagesFinder Class Reference

#include "beacon_critical_images_finder.h"

Inheritance diagram for net_instaweb::BeaconCriticalImagesFinder:
net_instaweb::CriticalImagesFinder

List of all members.

Public Member Functions

 BeaconCriticalImagesFinder (Statistics *stats)
virtual bool IsMeaningful (const RewriteDriver *driver) const
virtual bool IsCriticalImage (const GoogleString &image_url, const RewriteDriver *driver) const
virtual void ComputeCriticalImages (StringPiece url, RewriteDriver *driver)
 Compute the critical images for the given url.
virtual const char * GetCriticalImagesCohort () const

Static Public Attributes

static const char kBeaconCohort []

Detailed Description

Support critical (above the fold) image detection through a javascript beacon on the client.

Todo:
TODO(jud): This class is not yet implemented.

Member Function Documentation

virtual const char* net_instaweb::BeaconCriticalImagesFinder::GetCriticalImagesCohort ( ) const [inline, virtual]

Identifies which cohort in the PropertyCache the critical image information is located in.

Implements net_instaweb::CriticalImagesFinder.

virtual bool net_instaweb::BeaconCriticalImagesFinder::IsCriticalImage ( const GoogleString image_url,
const RewriteDriver driver 
) const [virtual]

Checks whether the requested image is present in the critical set or not. The critical image beacon sends back hashes of the URls to save space, so this computes the same hash on image_url and checks if it is stored in the critical image set.

Reimplemented from net_instaweb::CriticalImagesFinder.

virtual bool net_instaweb::BeaconCriticalImagesFinder::IsMeaningful ( const RewriteDriver driver) const [inline, virtual]

Checks whether IsCriticalImage will return meaningful results about critical images. Users of IsCriticalImage should check this function and supply a default behavior if IsMeaningful returns false.

Implements net_instaweb::CriticalImagesFinder.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines