Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
net_instaweb::CssTagScanner::Transformer Class Referenceabstract

#include "css_tag_scanner.h"

Inheritance diagram for net_instaweb::CssTagScanner::Transformer:
net_instaweb::AssociationTransformer net_instaweb::CssUrlCounter net_instaweb::CssUrlExtractor net_instaweb::RewriteDomainTransformer

Public Types

enum  TransformStatus { kSuccess, kNoChange, kFailure }

Public Member Functions

virtual TransformStatus Transform (GoogleString *str)=0

Detailed Description

Helper class for TransformUrls to allow any URL transformation to be applied to a CSS file.

Member Function Documentation

virtual TransformStatus net_instaweb::CssTagScanner::Transformer::Transform ( GoogleString str)
pure virtual

Transforms str in-place. If kSuccess -> transformation succeeded and str may have changed (Generally implementers should only return kSuccess if str changed, but this is merely an optimization. Functionally it doesn't matter). If kNoChange -> transformation succeeded and str was unchanged. If kFailure -> transformation failed. str is undefined, do not use.

Implemented in net_instaweb::RewriteDomainTransformer, net_instaweb::AssociationTransformer, and net_instaweb::CssUrlExtractor.

The documentation for this class was generated from the following file: