19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_JS_INLINE_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_JS_INLINE_FILTER_H_
37 namespace net_instaweb {
44 static const char kNumJsInlined[];
50 virtual void StartElementImpl(
HtmlElement* element);
53 virtual const char*
Name()
const {
return "InlineJs"; }
59 return driver()->
options()->HasInlineUnauthorizedResourceType(
60 semantic_type::kScript) ?
61 RewriteDriver::kInlineUnauthorizedResources :
62 RewriteDriver::kInlineOnlyAuthorizedResources;
74 void RenderInline(
const ResourcePtr& resource,
const StringPiece& text,
77 const size_t size_threshold_bytes_;
Definition: common_filter.h:47
Definition: statistics.h:43
Leaf node representing raw characters in HTML.
Definition: html_node.h:167
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: html_element.h:42
virtual void Characters(HtmlCharactersNode *characters)
virtual void EndDocument()
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: js_inline_filter.h:53
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
ScriptUsage GetScriptUsage() const override
Definition: js_inline_filter.h:65
Inline small Javascript files.
Definition: js_inline_filter.h:42
virtual void StartDocumentImpl()
virtual bool IntendedForInlining() const
Definition: js_inline_filter.h:64
InlineAuthorizationPolicy
See CreateInputResource.
Definition: rewrite_driver.h:137
Definition: html_filter.h:43
const RewriteOptions * options() const
Return the options used for this RewriteDriver.
Definition: rewrite_driver.h:496
virtual RewriteDriver::InlineAuthorizationPolicy AllowUnauthorizedDomain() const
Definition: js_inline_filter.h:57