[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / content / public / common / user_agent.h
blob107440e91de40f798ee73c0cb1b3451fb32e37a6
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 // Helper function to generate a full user agent string given a short
32 // product name and some extra text to be added to the OS info.
33 CONTENT_EXPORT std::string BuildUserAgentFromProductAndExtraOSInfo(
34 const std::string& product,
35 const std::string& extra_os_info);
37 // Builds a full user agent string given a string describing the OS and a
38 // product name.
39 CONTENT_EXPORT std::string BuildUserAgentFromOSAndProduct(
40 const std::string& os_info,
41 const std::string& product);
43 } // namespace content
45 #endif // CONTENT_PUBLIC_COMMON_USER_AGENT_H_