Page Speed Optimization Libraries
1.7.30.2
|
#include "css_tag_scanner.h"
Public Types | |
enum | TransformStatus { kSuccess, kNoChange, kFailure } |
Public Member Functions | |
virtual TransformStatus | Transform (GoogleString *str)=0 |
Helper class for TransformUrls to allow any URL transformation to be applied to a CSS file.
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.