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

#include "critical_images_beacon_filter.h"

Inheritance diagram for net_instaweb::CriticalImagesBeaconFilter:
net_instaweb::CommonFilter

List of all members.

Public Member Functions

 CriticalImagesBeaconFilter (RewriteDriver *driver)
virtual void DetermineEnabled ()
virtual void StartDocumentImpl ()
virtual void EndDocument ()
virtual void StartElementImpl (HtmlElement *element)
virtual void EndElementImpl (HtmlElement *element)
virtual const char * Name () const

Static Public Member Functions

static void InitStats (Statistics *statistics)
static bool ShouldApply (RewriteDriver *rewrite_driver)

Static Public Attributes

static const char kCriticalImagesBeaconAddedCount []
 Counters.

Detailed Description

Inject javascript for detecting above the fold images after the page has loaded. Also adds pagespeed_url_hash attributes that the beacon sends back to the server. This allows the beacon to work despite image URL rewriting or inlining.


Member Function Documentation

static bool net_instaweb::CriticalImagesBeaconFilter::ShouldApply ( RewriteDriver rewrite_driver) [static]

Returns true if this filter is going to inject a beacon. Filters that need to disabled when beaconing run, like the rendered_image_dimensions filter, can check this function.

Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.

Implements net_instaweb::CommonFilter.


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