Chromium Code Reviews| Index: content/public/common/user_agent.h |
| diff --git a/webkit/common/user_agent/user_agent.h b/content/public/common/user_agent.h |
| similarity index 51% |
| rename from webkit/common/user_agent/user_agent.h |
| rename to content/public/common/user_agent.h |
| index 849f5c35ef90e202e1f05cb2b19f120bd9f861b2..4670de979c44e0182ba2640077bc5b57d958a093 100644 |
| --- a/webkit/common/user_agent/user_agent.h |
| +++ b/content/public/common/user_agent.h |
| @@ -2,28 +2,26 @@ |
| // 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_H_ |
| -#define WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_ |
| +#ifndef CONTENT_PUBLIC_COMMON_USER_AGENT_H_ |
| +#define CONTENT_PUBLIC_COMMON_USER_AGENT_H_ |
| #include <string> |
| -#include "base/basictypes.h" |
| -#include "url/gurl.h" |
| -#include "webkit/common/user_agent/webkit_user_agent_export.h" |
| +class GURL; |
| -namespace webkit_glue { |
| +namespace content { |
| // Sets the user agent. Pass true for overriding if this is a custom |
| // user agent instead of the default one (in order to turn off any browser |
| // sniffing workarounds). This must be called before GetUserAgent() can |
| // be called. |
| -WEBKIT_USER_AGENT_EXPORT void SetUserAgent(const std::string& user_agent, |
| - bool overriding); |
| +CONTENT_EXPORT void SetUserAgent(const std::string& user_agent, |
|
jam
2014/03/04 20:49:45
this is only called by code in content, so it shou
tfarina
2014/03/04 22:07:20
Done.
|
| + bool overriding); |
| // Returns the user agent to use for the given URL. SetUserAgent() must |
| // be called prior to calling this function. |
| -WEBKIT_USER_AGENT_EXPORT const std::string& GetUserAgent(const GURL& url); |
| +CONTENT_EXPORT const std::string& GetUserAgent(const GURL& url); |
| -} // namespace webkit_glue |
| +} // namespace content |
| -#endif // WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_ |
| +#endif // CONTENT_PUBLIC_COMMON_USER_AGENT_H_ |