Page Speed Optimization Libraries
1.13.35.1
|
#include "css_tag_scanner.h"
Public Member Functions | |
RewriteDomainTransformer (const GoogleUrl *old_base_url, const GoogleUrl *new_base_url, const ServerContext *server_context, const RewriteOptions *options, MessageHandler *handler) | |
virtual TransformStatus | Transform (GoogleString *str) |
void | set_trim_urls (bool x) |
Additional Inherited Members | |
Public Types inherited from net_instaweb::CssTagScanner::Transformer | |
enum | TransformStatus { kSuccess, kNoChange, kFailure } |
Transform URLs by: 1 Resolving them against old_base_url, 2 Mapping them appropriately with domain_rewrite_filter and then 3 Trimming them against new_base_url.
|
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.
Implements net_instaweb::CssTagScanner::Transformer.