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
3 // found in the LICENSE file.
5 #include "content/browser/frame_host/frame_navigation_entry.h"
9 FrameNavigationEntry::FrameNavigationEntry(int64 frame_tree_node_id
)
10 : frame_tree_node_id_(frame_tree_node_id
) {
13 FrameNavigationEntry::FrameNavigationEntry(int64 frame_tree_node_id
,
14 SiteInstanceImpl
* site_instance
,
16 const Referrer
& referrer
)
17 : frame_tree_node_id_(frame_tree_node_id
),
18 site_instance_(site_instance
),
23 FrameNavigationEntry::~FrameNavigationEntry() {
26 FrameNavigationEntry
* FrameNavigationEntry::Clone() const {
27 FrameNavigationEntry
* copy
= new FrameNavigationEntry(frame_tree_node_id_
);
28 copy
->UpdateEntry(site_instance_
.get(), url_
, referrer_
, page_state_
);
32 void FrameNavigationEntry::UpdateEntry(SiteInstanceImpl
* site_instance
,
34 const Referrer
& referrer
,
35 const PageState
& page_state
) {
36 site_instance_
= site_instance
;
39 page_state_
= page_state
;
42 } // namespace content