Page Speed Optimization Libraries
1.7.30.2
|
Inline small Javascript files. More...
#include "js_inline_filter.h"
Public Member Functions | |
JsInlineFilter (RewriteDriver *driver) | |
virtual void | StartDocumentImpl () |
virtual void | EndDocument () |
virtual void | StartElementImpl (HtmlElement *element) |
virtual void | EndElementImpl (HtmlElement *element) |
virtual void | Characters (HtmlCharactersNode *characters) |
virtual const char * | Name () const |
virtual bool | AllowUnauthorizedDomain () const |
Friends | |
class | Context |
Inline small Javascript files.
virtual bool net_instaweb::JsInlineFilter::AllowUnauthorizedDomain | ( | ) | const [inline, virtual] |
Inlining javascript from unauthorized domains into HTML is considered safe because it does not cause any new content to be executed compared to the unoptimized page.
Reimplemented from net_instaweb::CommonFilter.
virtual void net_instaweb::JsInlineFilter::Characters | ( | HtmlCharactersNode * | characters | ) | [virtual] |
If a subclass overloads this function and wishes to use InsertNodeAtBodyEnd(), it needs to make an upcall to this implementation for InsertNodeAtBodyEnd() to work correctly.
Reimplemented from net_instaweb::CommonFilter.
virtual void net_instaweb::JsInlineFilter::StartDocumentImpl | ( | ) | [virtual] |
Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.
Implements net_instaweb::CommonFilter.