19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_JS_DEFER_DISABLED_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_JS_DEFER_DISABLED_FILTER_H_
29 namespace net_instaweb {
43 virtual const char*
Name()
const {
return "JsDeferDisabledFilter"; }
46 static void Terminate();
55 virtual void EndDocument();
57 virtual void StartDocumentImpl() {}
58 virtual void StartElementImpl(HtmlElement* element) {}
59 virtual void EndElementImpl(HtmlElement* element) {}
61 void InsertJsDeferCode();
Definition: js_defer_disabled_filter.h:37
Definition: common_filter.h:47
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
static bool ShouldApply(RewriteDriver *driver)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: js_defer_disabled_filter.h:43
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
Definition: rewrite_driver.h:100
ScriptUsage GetScriptUsage() const override
Definition: js_defer_disabled_filter.h:52
Definition: html_filter.h:43
virtual void DetermineEnabled(GoogleString *disabled_reason)