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

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: Added SessionService saving Created 8 years, 8 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 104b4e1ab8dbbf3c18206d4222a22dbe55572aac..011164f1362efd51d1a85362936fbef00181b54b 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -154,6 +154,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(
@@ -549,6 +551,10 @@ class CONTENT_EXPORT WebContentsImpl
// the observer list then.
ObserverList<content::WebContentsObserver> observers_;
+ // 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.

Powered by Google App Engine
This is Rietveld 408576698