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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to initialize bool in constructor; win_rel caught it Created 8 years, 7 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 934ad7a50463b22c8b8c717ebe9aae80efcf21e2..5ed632566d40128bce41c8568f97d9b018342258 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -153,6 +153,8 @@ class CONTENT_EXPORT WebContentsImpl
virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE;
virtual content::WebUI* GetWebUI() const OVERRIDE;
virtual content::WebUI* GetCommittedWebUI() const OVERRIDE;
+ virtual void SetUserAgentOverride(const std::string& override) OVERRIDE;
+ virtual const std::string& GetUserAgentOverride() const OVERRIDE;
virtual const string16& GetTitle() const OVERRIDE;
virtual int32 GetMaxPageID() OVERRIDE;
virtual int32 GetMaxPageIDForSiteInstance(
@@ -578,6 +580,10 @@ class CONTENT_EXPORT WebContentsImpl
// is closed.
WebContentsImpl* opener_;
+ // User agent to use if a NavigationEntry requires that the default user agent
+ // is overridden.
+ std::string user_agent_override_;
+
// Helper classes ------------------------------------------------------------
// Manages creation and swapping of render views.
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl_unittest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698