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

Unified Diff: ios/web/public/web_client.h

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix Created 3 years, 10 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 | « ios/web/public/user_agent_unittest.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.h
diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h
index 354d81427b0ce0e5c6215c63516983a94b4ba224..d949f55a6bccf0c38753b49b35e16f6a6517aafe 100644
--- a/ios/web/public/web_client.h
+++ b/ios/web/public/web_client.h
@@ -12,6 +12,7 @@
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
#include "base/task_scheduler/task_scheduler.h"
+#include "ios/web/public/user_agent.h"
#include "ui/base/layout.h"
#include "url/url_util.h"
@@ -79,9 +80,8 @@ class WebClient {
// form "productname/version". Used as part of the user agent string.
virtual std::string GetProduct() const;
- // Returns the user agent. |desktop_user_agent| is true if desktop user agent
- // is requested.
- virtual std::string GetUserAgent(bool desktop_user_agent) const;
+ // Returns the user agent string for the specified type.
+ virtual std::string GetUserAgent(UserAgentType type) const;
// Returns a string resource given its id.
virtual base::string16 GetLocalizedString(int message_id) const;
« no previous file with comments | « ios/web/public/user_agent_unittest.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698