OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_USER_AGENT_H_ | 5 #ifndef WEBKIT_GLUE_USER_AGENT_H_ |
6 #define WEBKIT_GLUE_USER_AGENT_H_ | 6 #define WEBKIT_GLUE_USER_AGENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 namespace webkit_glue { | 12 namespace webkit_glue { |
13 | 13 |
14 // Builds a User-agent compatible string that describes the OS and CPU type. | 14 // Builds a User-agent compatible string that describes the OS and CPU type. |
15 std::string BuildOSCpuInfo(); | 15 std::string BuildOSCpuInfo(); |
16 | 16 |
17 // Returns the WebKit version, in the form "major.minor (branch@revision)". | 17 // Returns the WebKit version, in the form "major.minor (branch@revision)". |
18 std::string GetWebKitVersion(); | 18 std::string GetWebKitVersion(); |
19 | 19 |
20 // The following 2 functions return the major and minor webkit versions. | 20 // The following 2 functions return the major and minor webkit versions. |
21 int GetWebKitMajorVersion(); | 21 int GetWebKitMajorVersion(); |
22 int GetWebKitMinorVersion(); | 22 int GetWebKitMinorVersion(); |
23 | 23 |
24 // Helper function to generate the user agent. | 24 // Helper function to generate the user agent. |
25 // - If mimic_windows is true, produce a fake Windows Chrome string.. | 25 std::string BuildUserAgentHelper(const std::string& product); |
Evan Martin
2011/09/21 20:27:24
It's not exactly your problem, but the word "Helpe
Dirk Pranke
2011/09/21 21:02:35
Agreed it's not a great name. I will attempt to fi
| |
26 std::string BuildUserAgentHelper(bool mimic_windows, | |
27 const std::string& product); | |
28 } // namespace webkit_glue | 26 } // namespace webkit_glue |
29 | 27 |
30 #endif // WEBKIT_GLUE_USER_AGENT_H_ | 28 #endif // WEBKIT_GLUE_USER_AGENT_H_ |
31 | 29 |
OLD | NEW |