Page Speed Optimization Libraries
1.7.30.2
|
Inline small CSS files. More...
#include "css_inline_filter.h"
Public Member Functions | |
CssInlineFilter (RewriteDriver *driver) | |
virtual void | StartDocumentImpl () |
virtual void | StartElementImpl (HtmlElement *element) |
virtual void | EndElementImpl (HtmlElement *element) |
virtual const char * | Name () const |
virtual bool | AllowUnauthorizedDomain () const |
Protected Member Functions | |
void | set_id (const char *id) |
virtual ResourcePtr | CreateResource (const char *url) |
Friends | |
class | Context |
Inline small CSS files.
virtual bool net_instaweb::CssInlineFilter::AllowUnauthorizedDomain | ( | ) | const [inline, virtual] |
Inlining css 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 ResourcePtr net_instaweb::CssInlineFilter::CreateResource | ( | const char * | url | ) | [protected, virtual] |
Delegated from InlineRewriteContext::CreateResource --- see there for semantics.
Reimplemented in net_instaweb::GoogleFontCssInlineFilter.
void net_instaweb::CssInlineFilter::set_id | ( | const char * | id | ) | [inline, protected] |
Changes filter id code (which shows up in cache keys and .pagespeed.id. URLs). Expects id to be a literal.
virtual void net_instaweb::CssInlineFilter::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.