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

Unified Diff: content/common/content_client.h

Issue 8002003: Revert "Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/common/child_thread.cc ('k') | content/common/content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_client.h
diff --git a/content/common/content_client.h b/content/common/content_client.h
index ad07400cf9a2604674e32003c960fc87ce6edc04..9f5521fee2c54382832cb8e7cd9067f3e89bbc33 100644
--- a/content/common/content_client.h
+++ b/content/common/content_client.h
@@ -76,10 +76,10 @@ class CONTENT_EXPORT ContentClient {
// behalf of a swapped out renderer.
virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0;
- // Returns the user agent and a flag indicating whether the returned
- // string should always be used (if false, callers may override the
- // value as needed to work around various user agent sniffing bugs).
- virtual std::string GetUserAgent(bool *overriding) const = 0;
+ // Returns the user agent. If mimic_windows is true then the embedder can
+ // return a fake Windows user agent. This is a workaround for broken
+ // websites.
+ virtual std::string GetUserAgent(bool mimic_windows) const = 0;
// Returns a string resource given its id.
virtual string16 GetLocalizedString(int message_id) const = 0;
« no previous file with comments | « content/common/child_thread.cc ('k') | content/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698