| Index: content/public/common/user_agent.h
|
| diff --git a/webkit/common/user_agent/user_agent_util.h b/content/public/common/user_agent.h
|
| similarity index 49%
|
| rename from webkit/common/user_agent/user_agent_util.h
|
| rename to content/public/common/user_agent.h
|
| index e23b809a5050fe1e5fae2a6b1be1f4c440f61f1e..01e8876027a26b0e54abb00d845165b4d6b8536c 100644
|
| --- a/webkit/common/user_agent/user_agent_util.h
|
| +++ b/content/public/common/user_agent.h
|
| @@ -2,39 +2,38 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef WEBKIT_COMMON_USER_AGENT_USER_AGENT_UTIL_H_
|
| -#define WEBKIT_COMMON_USER_AGENT_USER_AGENT_UTIL_H_
|
| +#ifndef CONTENT_PUBLIC_COMMON_USER_AGENT_H_
|
| +#define CONTENT_PUBLIC_COMMON_USER_AGENT_H_
|
|
|
| #include <string>
|
|
|
| -#include "base/basictypes.h"
|
| -#include "webkit/common/user_agent/webkit_user_agent_export.h"
|
| +#include "content/common/content_export.h"
|
|
|
| -namespace webkit_glue {
|
| -
|
| -// Builds a User-agent compatible string that describes the OS and CPU type.
|
| -WEBKIT_USER_AGENT_EXPORT std::string BuildOSCpuInfo();
|
| +namespace content {
|
|
|
| // Returns the WebKit version, in the form "major.minor (branch@revision)".
|
| -WEBKIT_USER_AGENT_EXPORT std::string GetWebKitVersion();
|
| +CONTENT_EXPORT std::string GetWebKitVersion();
|
|
|
| // The following 2 functions return the major and minor webkit versions.
|
| -WEBKIT_USER_AGENT_EXPORT int GetWebKitMajorVersion();
|
| -WEBKIT_USER_AGENT_EXPORT int GetWebKitMinorVersion();
|
| +CONTENT_EXPORT int GetWebKitMajorVersion();
|
| +CONTENT_EXPORT int GetWebKitMinorVersion();
|
|
|
| -WEBKIT_USER_AGENT_EXPORT std::string GetWebKitRevision();
|
| +CONTENT_EXPORT std::string GetWebKitRevision();
|
| +
|
| +// Builds a User-agent compatible string that describes the OS and CPU type.
|
| +CONTENT_EXPORT std::string BuildOSCpuInfo();
|
|
|
| // Helper function to generate a full user agent string from a short
|
| // product name.
|
| -WEBKIT_USER_AGENT_EXPORT std::string BuildUserAgentFromProduct(
|
| +CONTENT_EXPORT std::string BuildUserAgentFromProduct(
|
| const std::string& product);
|
|
|
| // Builds a full user agent string given a string describing the OS and a
|
| // product name.
|
| -WEBKIT_USER_AGENT_EXPORT std::string BuildUserAgentFromOSAndProduct(
|
| +CONTENT_EXPORT std::string BuildUserAgentFromOSAndProduct(
|
| const std::string& os_info,
|
| const std::string& product);
|
|
|
| -} // namespace webkit_glue
|
| +} // namespace content
|
|
|
| -#endif // WEBKIT_COMMON_USER_AGENT_USER_AGENT_UTIL_H_
|
| +#endif // CONTENT_PUBLIC_COMMON_USER_AGENT_H_
|
|
|