• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef WEBKIT_GLUE_USER_AGENT_H_
6 #define WEBKIT_GLUE_USER_AGENT_H_
7 
8 #include <string>
9 
10 #include "base/basictypes.h"
11 
12 namespace webkit_glue {
13 
14 // Construct the User-Agent header, filling in |result|.
15 // The other parameters are workarounds for broken websites:
16 // - If mimic_windows is true, produce a fake Windows Chrome string.
17 void BuildUserAgent(bool mimic_windows, std::string* result);
18 
19 // Builds a User-agent compatible string that describes the OS and CPU type.
20 std::string BuildOSCpuInfo();
21 
22 // Returns the WebKit version, in the form "major.minor (branch@revision)".
23 std::string GetWebKitVersion();
24 
25 }  // namespace webkit_glue
26 
27 #endif  // WEBKIT_GLUE_USER_AGENT_H_
28 
29