Page Speed Optimization Libraries
1.13.35.1
|
#include "css_url_counter.h"
Public Member Functions | |
CssUrlCounter (const GoogleUrl *base_url, MessageHandler *handler) | |
base_url and handler must live longer than CssUrlCounter. | |
bool | Count (const StringPiece &in_text) |
const StringIntMap & | url_counts () const |
Access URL occurrence counts after you've scanned a CSS file. | |
Additional Inherited Members | |
Public Types inherited from net_instaweb::CssTagScanner::Transformer | |
enum | TransformStatus { kSuccess, kNoChange, kFailure } |
"Transformer" that records the URLs it sees (with counts) instead of applying any transformation.
bool net_instaweb::CssUrlCounter::Count | ( | const StringPiece & | in_text | ) |
Record and count URLs in in_text. Does not reset url_counts_, so if you call this multiple times it will accumulate url_counts_ over all inputs. Returns False if CssUrlCounter found unparseable URLs.