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

Unified Diff: content/browser/frame_host/frame_navigation_entry.cc

Issue 281653003: DRAFT CL: Add FrameNavigationEntry and track subframe session histories. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 5 years, 9 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 | « content/browser/frame_host/frame_navigation_entry.h ('k') | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_navigation_entry.cc
diff --git a/content/browser/frame_host/frame_navigation_entry.cc b/content/browser/frame_host/frame_navigation_entry.cc
index a33f9732b3c6c77d4437e435cc2eae9223b92dd8..ac62c2ba9835e147e868bd49910e68ae075294b7 100644
--- a/content/browser/frame_host/frame_navigation_entry.cc
+++ b/content/browser/frame_host/frame_navigation_entry.cc
@@ -6,13 +6,20 @@
namespace content {
-FrameNavigationEntry::FrameNavigationEntry() {
+FrameNavigationEntry::FrameNavigationEntry()
+ : frame_tree_node_id_(-1),
+ item_sequence_number_(-1) {
}
-FrameNavigationEntry::FrameNavigationEntry(SiteInstanceImpl* site_instance,
+FrameNavigationEntry::FrameNavigationEntry(SiteInstanceImpl* instance,
const GURL& url,
const Referrer& referrer)
- : site_instance_(site_instance), url_(url), referrer_(referrer) {
+ : site_instance_(instance),
+ url_(url),
+ referrer_(referrer),
+ frame_tree_node_id_(-1),
+ item_sequence_number_(-1),
+ document_sequence_number_(-1) {
}
FrameNavigationEntry::~FrameNavigationEntry() {
@@ -24,6 +31,9 @@ FrameNavigationEntry* FrameNavigationEntry::Clone() const {
copy->site_instance_ = site_instance_;
copy->url_ = url_;
copy->referrer_ = referrer_;
+ copy->page_state_ = page_state_;
+ copy->item_sequence_number_ = item_sequence_number_;
+ copy->document_sequence_number_ = document_sequence_number_;
return copy;
}
« no previous file with comments | « content/browser/frame_host/frame_navigation_entry.h ('k') | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698