Page Speed Optimization Libraries  1.7.30.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Friends
net_instaweb::CssInlineFilter Class Reference

Inline small CSS files. More...

#include "css_inline_filter.h"

Inheritance diagram for net_instaweb::CssInlineFilter:
net_instaweb::CommonFilter net_instaweb::GoogleFontCssInlineFilter

List of all members.

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

Detailed Description

Inline small CSS files.


Member Function Documentation

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.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines