#include "hashed_referer_statistics.h"
Public Member Functions | |
HashedRefererStatistics (size_t number_of_strings, size_t average_string_length, AbstractSharedMem *shm_runtime, const GoogleString &filename_prefix, const GoogleString &filename_suffix, Hasher *hasher) | |
Protected Member Functions | |
GoogleString | GetEntryStringForUrlString (const StringPiece &url) const |
Given a Url string, produces the corresponding ready-for-storage string. | |
GoogleString | GetEntryStringForDivLocation (const StringPiece &url) const |
An implementation of SharedMemRefererStatistics that hashes all Url and div location information. Encoding and decoding of referals is inherited, so useful pre-fetch information can still be inferred anonymously.
GoogleString net_instaweb::HashedRefererStatistics::GetEntryStringForDivLocation | ( | const StringPiece & | div_location | ) | const [protected, virtual] |
Given a div location (string), produces the corresponding ready-for-storage string
Reimplemented from net_instaweb::SharedMemRefererStatistics.