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

Unified Diff: chrome/browser/sessions/session_types.h

Issue 9999010: Store original request URL in NavigationEntry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing 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
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/session_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_types.h
diff --git a/chrome/browser/sessions/session_types.h b/chrome/browser/sessions/session_types.h
index bd3232a751830cc6cf921feb585e12afd66f40e5..e56ff3c73d2ca01a72c3ee5d5b014f876a60540d 100644
--- a/chrome/browser/sessions/session_types.h
+++ b/chrome/browser/sessions/session_types.h
@@ -89,6 +89,12 @@ class TabNavigation {
void set_index(int index) { index_ = index; }
int index() const { return index_; }
+ // The URL that initially spawned the NavigationEntry.
+ const GURL& original_request_url() const { return original_request_url_; }
+ void set_original_request_url(const GURL& url) {
+ original_request_url_ = url;
+ }
+
// Converts a set of TabNavigations into a set of NavigationEntrys. The
// caller owns the NavigationEntrys.
static void CreateNavigationEntriesFromTabNavigations(
@@ -108,6 +114,7 @@ class TabNavigation {
int64 post_id_;
int index_;
+ GURL original_request_url_;
};
// SessionTab ----------------------------------------------------------------
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/session_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698