Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
user_agent_normalizer.h
Go to the documentation of this file.
1 // Copyright 2013 Google Inc. All Rights Reserved.
14 
16 
17 #ifndef PAGESPEED_KERNEL_HTTP_USER_AGENT_NORMALIZER_H_
18 #define PAGESPEED_KERNEL_HTTP_USER_AGENT_NORMALIZER_H_
19 
20 #include <vector>
21 
25 
26 namespace net_instaweb {
27 
33  public:
35  virtual ~UserAgentNormalizer();
36 
37  virtual GoogleString Normalize(const GoogleString& in) const = 0;
38 
42  const std::vector<const UserAgentNormalizer*>& ua_normalizers,
43  const GoogleString& ua_in);
44 
45  private:
46 
47 };
48 
52  public:
54  virtual ~AndroidUserAgentNormalizer();
55 
56  virtual GoogleString Normalize(const GoogleString& in) const;
57 
58  private:
59  RE2 dalvik_ua_;
60  RE2 chrome_android_ua_;
61  RE2 android_browser_ua_;
62 };
63 
68  public:
70  virtual ~IEUserAgentNormalizer();
71 
72  virtual GoogleString Normalize(const GoogleString& in) const;
73 
74  private:
75  RE2 ie_ua_;
76 };
77 
78 }
79 
80 #endif
static GoogleString NormalizeWithAll(const std::vector< const UserAgentNormalizer * > &ua_normalizers, const GoogleString &ua_in)
Definition: user_agent_normalizer.h:32
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: user_agent_normalizer.h:51
Definition: user_agent_normalizer.h:67