19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CRITICAL_IMAGES_BEACON_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CRITICAL_IMAGES_BEACON_FILTER_H_
32 namespace net_instaweb {
40 static const char* kImageOnloadCode;
53 virtual void StartElementImpl(
HtmlElement* element) { }
54 virtual void EndElementImpl(HtmlElement* element);
55 virtual const char*
Name()
const {
return "CriticalImagesBeacon"; }
69 void MaybeAddBeaconJavascript(
HtmlElement* element);
72 StringSet image_url_hashes_;
73 bool insert_beacon_js_;
75 Variable* critical_images_beacon_added_count_;
77 bool added_beacon_js_;
Definition: common_filter.h:47
ScriptUsage GetScriptUsage() const override
Definition: critical_images_beacon_filter.h:56
Definition: statistics.h:43
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
static bool ShouldApply(RewriteDriver *rewrite_driver)
Definition: critical_images_beacon_filter.h:38
Definition: html_element.h:42
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: critical_images_beacon_filter.h:55
virtual void EndDocument()
static const char kCriticalImagesBeaconAddedCount[]
Counters.
Definition: critical_images_beacon_filter.h:42
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
Definition: rewrite_driver.h:100
virtual void DetermineEnabled(GoogleString *disabled_reason)
Definition: html_filter.h:43
virtual void StartDocumentImpl()
Definition: critical_images_beacon_filter.h:51