18 #ifndef ADBLOCK_PLUS_REFERRER_MAPPING_H
19 #define ADBLOCK_PLUS_REFERRER_MAPPING_H
50 void Add(
const std::string& url,
const std::string& referrer);
61 const int maxCachedUrls;
62 std::map<std::string, std::string> mapping;
63 std::list<std::string> cachedUrls;
ReferrerMapping(const int maxCachedUrls=5000)
Constructor.
Main namespace of libadblockplus.
Definition: ActiveObject.h:23
void Add(const std::string &url, const std::string &referrer)
Records the refferer for a URL.
Stores a mapping between URLs and their referrers.
Definition: ReferrerMapping.h:34
std::vector< std::string > BuildReferrerChain(const std::string &url) const
Builds a chain of referrers for the supplied URL.