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

Unified Diff: content/browser/web_contents/navigation_entry_impl.cc

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/navigation_entry_impl.cc
diff --git a/content/browser/web_contents/navigation_entry_impl.cc b/content/browser/web_contents/navigation_entry_impl.cc
index 15ac9cbed0a196716f6cb198a61eb08f74747249..8c8bbbb5c96019f60e8aa143a22e599baad0e831 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -45,6 +45,7 @@ NavigationEntryImpl::NavigationEntryImpl()
has_post_data_(false),
post_id_(-1),
restore_type_(RESTORE_NONE),
+ is_overriding_user_agent_(false),
is_renderer_initiated_(false),
is_cross_site_reload_(false) {
}
@@ -68,6 +69,7 @@ NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
has_post_data_(false),
post_id_(-1),
restore_type_(RESTORE_NONE),
+ is_overriding_user_agent_(false),
is_renderer_initiated_(is_renderer_initiated),
is_cross_site_reload_(false) {
}
@@ -226,4 +228,12 @@ const GURL& NavigationEntryImpl::GetOriginalRequestURL() const {
return original_request_url_;
}
+void NavigationEntryImpl::SetIsOverridingUserAgent(bool override) {
+ is_overriding_user_agent_ = override;
+}
+
+bool NavigationEntryImpl::GetIsOverridingUserAgent() const {
+ return is_overriding_user_agent_;
+}
+
} // namespace content
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.h ('k') | content/browser/web_contents/navigation_entry_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698