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

Side by Side Diff: trunk/src/webkit/common/user_agent/user_agent.h

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_ 5 #ifndef WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_
6 #define WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_ 6 #define WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "webkit/common/user_agent/webkit_user_agent_export.h" 10 #include "webkit/common/user_agent/webkit_user_agent_export.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace webkit_glue { 14 namespace webkit_glue {
15 15
16 // Sets the user agent. This must be called before GetUserAgent() can 16 // Sets the user agent. This must be called before GetUserAgent() can
17 // be called. 17 // be called.
18 WEBKIT_USER_AGENT_EXPORT void SetUserAgent(const std::string& user_agent); 18 WEBKIT_USER_AGENT_EXPORT void SetUserAgent(const std::string& user_agent);
19 19
20 // Returns the user agent to use for the given URL. SetUserAgent() must 20 // Returns the user agent to use for the given URL. SetUserAgent() must
21 // be called prior to calling this function. 21 // be called prior to calling this function.
22 WEBKIT_USER_AGENT_EXPORT const std::string& GetUserAgent(const GURL& url); 22 WEBKIT_USER_AGENT_EXPORT const std::string& GetUserAgent(const GURL& url);
23 23
24 } // namespace webkit_glue 24 } // namespace webkit_glue
25 25
26 #endif // WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_ 26 #endif // WEBKIT_COMMON_USER_AGENT_USER_AGENT_H_
OLDNEW
« no previous file with comments | « trunk/src/net/url_request/url_request_unittest.cc ('k') | trunk/src/webkit/common/user_agent/user_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698