19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CSS_URL_COUNTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CSS_URL_COUNTER_H_
27 namespace net_instaweb {
38 : base_url_(base_url), handler_(handler) {}
44 bool Count(
const StringPiece& in_text);
47 const StringIntMap&
url_counts()
const {
return url_counts_; }
54 StringIntMap url_counts_;
class GoogleUrl
Definition: google_url.h:58
CssUrlCounter(const GoogleUrl *base_url, MessageHandler *handler)
base_url and handler must live longer than CssUrlCounter.
Definition: css_url_counter.h:37
const StringIntMap & url_counts() const
Access URL occurrence counts after you've scanned a CSS file.
Definition: css_url_counter.h:47
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
bool Count(const StringPiece &in_text)
Definition: message_handler.h:39
Definition: css_url_counter.h:34