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

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: 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
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 (major.minor).
23 std::string GetWebKitVersion(); 23 std::string GetWebKitVersion();
24 24
25 // Get the WebKit revision (e.g. http://path/to/branch@revision).
26 // (We don't expose this in the user-agent string, but this file is a
27 // natural location for this functionality).
28 std::string GetWebKitRevision();
29
30
25 } // namespace webkit_glue 31 } // namespace webkit_glue
26 32
27 #endif // WEBKIT_GLUE_USER_AGENT_H_ 33 #endif // WEBKIT_GLUE_USER_AGENT_H_
28 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698