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

Unified Diff: trunk/src/net/url_request/http_user_agent_settings.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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/net/url_request/http_user_agent_settings.h
===================================================================
--- trunk/src/net/url_request/http_user_agent_settings.h (revision 255866)
+++ trunk/src/net/url_request/http_user_agent_settings.h (working copy)
@@ -24,8 +24,9 @@
// Gets the value of 'Accept-Language' header field.
virtual std::string GetAcceptLanguage() const = 0;
- // Gets the UA string.
- virtual std::string GetUserAgent() const = 0;
+ // Gets the UA string to use for the given URL. Pass an empty URL to get
+ // the default UA string.
+ virtual std::string GetUserAgent(const GURL& url) const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(HttpUserAgentSettings);
« no previous file with comments | « trunk/src/content/test/webkit_support.cc ('k') | trunk/src/net/url_request/static_http_user_agent_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698