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

#include "user_agent_normalizer.h"

Inheritance diagram for net_instaweb::UserAgentNormalizer:
net_instaweb::AndroidUserAgentNormalizer net_instaweb::IEUserAgentNormalizer

Public Member Functions

virtual GoogleString Normalize (const GoogleString &in) const =0

Static Public Member Functions

static GoogleString NormalizeWithAll (const std::vector< const UserAgentNormalizer * > &ua_normalizers, const GoogleString &ua_in)

Detailed Description

Base class for user agent string normalizer. The idea is that UA strings, sometimes include irrelevant information, so this provides a way of stripping it, to improve cache hit-rates when the normalized UAs are used in cache keys.

Member Function Documentation

static GoogleString net_instaweb::UserAgentNormalizer::NormalizeWithAll ( const std::vector< const UserAgentNormalizer * > &  ua_normalizers,
const GoogleString ua_in 

Helper that applies all the normalizers in the ua_normalizers list to ua_in.

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