19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CSS_TAG_SCANNER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CSS_TAG_SCANNER_H_
22 #include "net/instaweb/htmlparse/public/html_element.h"
27 namespace net_instaweb {
29 class DomainRewriteFilter;
34 class UrlLeftTrimFilter;
45 enum TransformStatus { kSuccess, kNoChange, kFailure };
52 virtual TransformStatus
Transform(GoogleString* str) = 0;
55 static const char kStylesheet[];
56 static const char kAlternate[];
57 static const char kUriValue[];
67 HtmlElement::Attribute** href,
69 StringPieceVector* nonstandard_attributes);
74 HtmlElement::Attribute** href,
85 const StringPiece& contents, Writer* writer, Transformer* transformer,
86 MessageHandler* handler);
90 static bool HasImport(
const StringPiece& contents, MessageHandler* handler);
93 static bool HasUrl(
const StringPiece& contents);
113 const GoogleUrl* new_base_url,
117 virtual TransformStatus
Transform(GoogleString* str);
119 void set_trim_urls(
bool x) { trim_urls_ = x; }
122 const GoogleUrl* old_base_url_;
123 const GoogleUrl* new_base_url_;
127 MessageHandler* handler_;
Definition: css_tag_scanner.h:110
Definition: url_left_trim_filter.h:47
virtual TransformStatus Transform(GoogleString *str)
Definition: rewrite_driver.h:98
Definition: domain_rewrite_filter.h:40