23 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_JS_COMBINE_FILTER_H_
24 #define NET_INSTAWEB_REWRITER_PUBLIC_JS_COMBINE_FILTER_H_
41 namespace pagespeed {
namespace js {
struct JsTokenizerPatterns; } }
43 namespace net_instaweb {
77 virtual const char* id()
const {
78 return RewriteOptions::kJavascriptCombinerId;
92 virtual void StartElementImpl(
HtmlElement* element);
97 virtual const char*
Name()
const {
return "JsCombine"; }
107 friend class JsCombineFilterTest;
109 void ConsiderJsForCombination(
HtmlElement* element,
116 void NextCombination();
118 Context* MakeContext();
120 JsCombiner* combiner()
const;
Definition: html_element.h:66
Definition: url_multipart_encoder.h:45
Leaf node representing raw characters in HTML.
Definition: html_node.h:167
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: js_combine_filter.h:66
Definition: html_element.h:42
virtual void StartDocumentImpl()
RewriteFilter overrides — HTML parsing event handlers.
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual RewriteContext * MakeRewriteContext()
virtual void Characters(HtmlCharactersNode *characters)
static void InitStats(Statistics *statistics)
Registers the provided statistics variable names with 'statistics'.
Definition: js_tokenizer.h:194
virtual const UrlSegmentEncoder * encoder() const
Definition: js_combine_filter.h:99
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
virtual void IEDirective(HtmlIEDirectiveNode *directive)
Definition: rewrite_filter.h:35
Definition: rewrite_driver.h:100
JsCombineFilter(RewriteDriver *rewrite_driver)
Definition: rewrite_context.h:155
Definition: url_segment_encoder.h:33
Definition: html_filter.h:43
static const char kJsFileCountReduction[]
statistics variable name
Definition: js_combine_filter.h:68
ScriptUsage GetScriptUsage() const override
Definition: js_combine_filter.h:87
Leaf node representing an HTML IE directive.
Definition: html_node.h:213
static bool IsLikelyStrictMode(const pagespeed::js::JsTokenizerPatterns *jstp, StringPiece input)
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: js_combine_filter.h:97