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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/frame_navigation_entry.h" 5 #include "content/browser/frame_host/frame_navigation_entry.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 FrameNavigationEntry::FrameNavigationEntry() { 9 FrameNavigationEntry::FrameNavigationEntry()
10 : frame_tree_node_id_(-1),
11 item_sequence_number_(-1) {
10 } 12 }
11 13
12 FrameNavigationEntry::FrameNavigationEntry(SiteInstanceImpl* site_instance, 14 FrameNavigationEntry::FrameNavigationEntry(SiteInstanceImpl* instance,
13 const GURL& url, 15 const GURL& url,
14 const Referrer& referrer) 16 const Referrer& referrer)
15 : site_instance_(site_instance), url_(url), referrer_(referrer) { 17 : site_instance_(instance),
18 url_(url),
19 referrer_(referrer),
20 frame_tree_node_id_(-1),
21 item_sequence_number_(-1),
22 document_sequence_number_(-1) {
16 } 23 }
17 24
18 FrameNavigationEntry::~FrameNavigationEntry() { 25 FrameNavigationEntry::~FrameNavigationEntry() {
19 } 26 }
20 27
21 FrameNavigationEntry* FrameNavigationEntry::Clone() const { 28 FrameNavigationEntry* FrameNavigationEntry::Clone() const {
22 FrameNavigationEntry* copy = new FrameNavigationEntry(); 29 FrameNavigationEntry* copy = new FrameNavigationEntry();
23 30
24 copy->site_instance_ = site_instance_; 31 copy->site_instance_ = site_instance_;
25 copy->url_ = url_; 32 copy->url_ = url_;
26 copy->referrer_ = referrer_; 33 copy->referrer_ = referrer_;
34 copy->page_state_ = page_state_;
35 copy->item_sequence_number_ = item_sequence_number_;
36 copy->document_sequence_number_ = document_sequence_number_;
27 37
28 return copy; 38 return copy;
29 } 39 }
30 40
31 } // namespace content 41 } // namespace content
OLDNEW
« 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