Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: webkit/glue/user_agent.h

Issue 6354014: webkit: expose webkit branch and revision number in about pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for commit Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/build/webkit_version.py ('k') | webkit/glue/user_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Construct the User-Agent header, filling in |result|. 14 // Construct the User-Agent header, filling in |result|.
15 // The other parameters are workarounds for broken websites: 15 // The other parameters are workarounds for broken websites:
16 // - If mimic_windows is true, produce a fake Windows Chrome string. 16 // - If mimic_windows is true, produce a fake Windows Chrome string.
17 void BuildUserAgent(bool mimic_windows, std::string* result); 17 void BuildUserAgent(bool mimic_windows, std::string* result);
18 18
19 // Builds a User-agent compatible string that describes the OS and CPU type. 19 // Builds a User-agent compatible string that describes the OS and CPU type.
20 std::string BuildOSCpuInfo(); 20 std::string BuildOSCpuInfo();
21 21
22 // Returns the WebKit version (major.minor). 22 // Returns the WebKit version, in the form "major.minor (branch@revision)".
23 std::string GetWebKitVersion(); 23 std::string GetWebKitVersion();
24 24
25 } // namespace webkit_glue 25 } // namespace webkit_glue
26 26
27 #endif // WEBKIT_GLUE_USER_AGENT_H_ 27 #endif // WEBKIT_GLUE_USER_AGENT_H_
28 28
OLDNEW
« no previous file with comments | « webkit/build/webkit_version.py ('k') | webkit/glue/user_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698