Page Speed Optimization Libraries  1.8.31.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
net_instaweb::CssTagScanner::Transformer Class Reference

#include "css_tag_scanner.h"

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

List of all members.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines