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

#include "css_tag_scanner.h"

Inheritance diagram for net_instaweb::RewriteDomainTransformer:
net_instaweb::CssTagScanner::Transformer

List of all members.

Public Member Functions

 RewriteDomainTransformer (const GoogleUrl *old_base_url, const GoogleUrl *new_base_url, RewriteDriver *driver)
virtual TransformStatus Transform (GoogleString *str)
void set_trim_urls (bool x)

Detailed Description

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.


Member Function Documentation

virtual TransformStatus net_instaweb::RewriteDomainTransformer::Transform ( GoogleString *  str) [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.


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