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

Unified Diff: content/public/common/renderer_preferences.h

Issue 10450002: Transfer user agent override info between browser and renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved override state to DocumentState Created 8 years, 6 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/public/common/renderer_preferences.h
diff --git a/content/public/common/renderer_preferences.h b/content/public/common/renderer_preferences.h
index ac7e58ccfaedbdfbd7278db673d800c8d47a96a0..abb3328aec5071f7ca738bc4595b2a790df21eca 100644
--- a/content/public/common/renderer_preferences.h
+++ b/content/public/common/renderer_preferences.h
@@ -13,6 +13,8 @@
#define CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
#pragma once
+#include <string>
+
#include "content/common/content_export.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -89,6 +91,10 @@ struct CONTENT_EXPORT RendererPreferences {
// Default page zoom level.
double default_zoom_level;
+
+ // The user agent given to WebKit when it requests one and the user agent is
+ // being overridden for the current navigation.
+ std::string user_agent_override;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698