Index: chrome/browser/sessions/session_types.h |
diff --git a/chrome/browser/sessions/session_types.h b/chrome/browser/sessions/session_types.h |
index e56ff3c73d2ca01a72c3ee5d5b014f876a60540d..f467bf66e42711788f1aca83224fbcac684d3759 100644 |
--- a/chrome/browser/sessions/session_types.h |
+++ b/chrome/browser/sessions/session_types.h |
@@ -95,6 +95,10 @@ class TabNavigation { |
original_request_url_ = url; |
} |
+ // Whether or not we're overriding the standard user agent. |
+ bool override_user_agent() const { return override_user_agent_; } |
+ void set_override_user_agent(bool state) { override_user_agent_ = state; } |
tony
2012/05/10 18:40:59
Nit: is_overriding_user_agent/set_is_overriding_us
gone
2012/05/11 15:40:30
Done.
|
+ |
// Converts a set of TabNavigations into a set of NavigationEntrys. The |
// caller owns the NavigationEntrys. |
static void CreateNavigationEntriesFromTabNavigations( |
@@ -115,6 +119,7 @@ class TabNavigation { |
int index_; |
GURL original_request_url_; |
+ bool override_user_agent_; |
tony
2012/05/10 18:40:59
Nit: is_overriding_user_agent?
gone
2012/05/11 15:40:30
Done.
|
}; |
// SessionTab ---------------------------------------------------------------- |
@@ -156,6 +161,10 @@ struct SessionTab { |
// If non-empty, this tab is an app tab and this is the id of the extension. |
std::string extension_app_id; |
+ // If non-empty, this string is used as the user agent whenever the tab's |
+ // NavigationEntries need it overridden. |
+ std::string user_agent_override; |
+ |
// Timestamp for when this tab was last modified. |
base::Time timestamp; |