19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CSS_TAG_SCANNER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CSS_TAG_SCANNER_H_
28 namespace net_instaweb {
43 enum TransformStatus { kSuccess, kNoChange, kFailure };
53 static const char kStylesheet[];
54 static const char kAlternate[];
55 static const char kUriValue[];
71 StringPieceVector* nonstandard_attributes);
87 kInputDoesNotIncludeEnd
95 StringPiece contents,
Writer* writer, Transformer* transformer,
115 static bool HasUrl(
const StringPiece& contents);
131 void SerializeUrlUse(UrlKind kind,
const GoogleString& url,
132 bool is_quoted,
bool have_term_quote,
char quote,
133 bool have_term_paren,
134 Writer* writer,
bool* ok);
136 Transformer* transformer_;
137 MessageHandler* handler_;
158 void set_trim_urls(
bool x) { trim_urls_ = x; }
class GoogleUrl
Definition: google_url.h:58
Definition: html_element.h:66
Definition: css_tag_scanner.h:147
Definition: html_element.h:42
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual TransformStatus Transform(GoogleString *str)
Interface for writing bytes to an output stream.
Definition: writer.h:29
Definition: server_context.h:99
Definition: message_handler.h:39
Definition: rewrite_options.h:84