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

Unified Diff: content/public/common/user_agent.h

Issue 186883002: Move user_agent code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm build directory Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/renderer/pepper/pepper_url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/renderer/pepper/pepper_url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698