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

#include "css_tag_scanner.h"

Inheritance diagram for net_instaweb::RewriteDomainTransformer:

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 }

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)

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: