19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_JS_DISABLE_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_JS_DISABLE_FILTER_H_
29 #include "pagespeed/kernel/http/user_agent_matcher.h"
31 namespace net_instaweb {
45 static const char kEnableJsExperimental[];
46 static const char kElementOnloadCode[];
50 virtual const char*
Name()
const {
51 return "JsDisableFilter";
57 virtual void StartDocumentImpl();
59 virtual void StartElementImpl(
HtmlElement* element);
63 virtual void EndDocument();
66 void InsertJsDeferExperimentalScript();
75 bool ie_meta_tag_written_;
Definition: common_filter.h:47
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: js_disable_filter.h:50
Definition: html_element.h:42
virtual void DetermineEnabled(GoogleString *disabled_reason)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
ScriptUsage GetScriptUsage() const override
Definition: js_disable_filter.h:54
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
Definition: rewrite_driver.h:100
Definition: js_disable_filter.h:40
Definition: html_filter.h:43