Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / content / public / common / user_agent.h
blob0613678a3ba348aa62f9dfebb093b44b60a4299c
1 // Copyright 2014 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.
5 #ifndef CONTENT_PUBLIC_COMMON_USER_AGENT_H_
6 #define CONTENT_PUBLIC_COMMON_USER_AGENT_H_
8 #include <string>
10 #include "content/common/content_export.h"
12 namespace content {
14 // Returns the WebKit version, in the form "major.minor (branch@revision)".
15 CONTENT_EXPORT std::string GetWebKitVersion();
17 // The following 2 functions return the major and minor webkit versions.
18 CONTENT_EXPORT int GetWebKitMajorVersion();
19 CONTENT_EXPORT int GetWebKitMinorVersion();
21 CONTENT_EXPORT std::string GetWebKitRevision();
23 // Builds a User-agent compatible string that describes the OS and CPU type.
24 CONTENT_EXPORT std::string BuildOSCpuInfo();
26 // Helper function to generate a full user agent string from a short
27 // product name.
28 CONTENT_EXPORT std::string BuildUserAgentFromProduct(
29 const std::string& product);
31 // Builds a full user agent string given a string describing the OS and a
32 // product name.
33 CONTENT_EXPORT std::string BuildUserAgentFromOSAndProduct(
34 const std::string& os_info,
35 const std::string& product);
37 } // namespace content
39 #endif // CONTENT_PUBLIC_COMMON_USER_AGENT_H_