Roll ANGLE e754fb8..6ffeb74
[chromium-blink-merge.git] / content / browser / frame_host / frame_navigation_entry.cc
blobb2def39a9e48bdaab3b0cad1593bdb4c8a2a4b08
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"
7 namespace content {
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,
15 const GURL& url,
16 const Referrer& referrer)
17 : frame_tree_node_id_(frame_tree_node_id),
18 site_instance_(site_instance),
19 url_(url),
20 referrer_(referrer) {
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_);
29 return copy;
32 void FrameNavigationEntry::UpdateEntry(SiteInstanceImpl* site_instance,
33 const GURL& url,
34 const Referrer& referrer,
35 const PageState& page_state) {
36 site_instance_ = site_instance;
37 url_ = url;
38 referrer_ = referrer;
39 page_state_ = page_state;
42 } // namespace content