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

#include "css_url_counter.h"

Inheritance diagram for net_instaweb::CssUrlCounter:
net_instaweb::CssTagScanner::Transformer

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 }
 

Detailed Description

"Transformer" that records the URLs it sees (with counts) instead of applying any transformation.

Member Function Documentation

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.


The documentation for this class was generated from the following file: