diff options
author | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-09 01:35:44 +0000 |
---|---|---|
committer | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-09 01:35:44 +0000 |
commit | 190b8c5d848077c5a3402eb04f835e5fb1a44ecc (patch) | |
tree | a5dc598bbaedcb793530ef28f35f35bbea7a9c97 /content/browser/frame_host/frame_tree.cc | |
parent | 9d64cb3cb87eee2483eab03fe45a01fe04139f38 (diff) | |
download | chromium_src-190b8c5d848077c5a3402eb04f835e5fb1a44ecc.zip chromium_src-190b8c5d848077c5a3402eb04f835e5fb1a44ecc.tar.gz chromium_src-190b8c5d848077c5a3402eb04f835e5fb1a44ecc.tar.bz2 |
Add Navigator and NavigatorDelegate objects.
BUG=304341
Review URL: https://codereview.chromium.org/65363002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/frame_host/frame_tree.cc')
-rw-r--r-- | content/browser/frame_host/frame_tree.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc index 440b095..34d117b 100644 --- a/content/browser/frame_host/frame_tree.cc +++ b/content/browser/frame_host/frame_tree.cc @@ -9,6 +9,7 @@ #include "base/bind.h" #include "base/callback.h" #include "content/browser/frame_host/frame_tree_node.h" +#include "content/browser/frame_host/navigator.h" #include "content/browser/frame_host/render_frame_host_impl.h" namespace content { @@ -41,9 +42,9 @@ bool FrameTreeNodeForFrameId(int64 frame_id, } // namespace -FrameTree::FrameTree() +FrameTree::FrameTree(Navigator* navigator) : root_(new FrameTreeNode(FrameTreeNode::kInvalidFrameId, std::string(), - scoped_ptr<RenderFrameHostImpl>())) { + navigator, scoped_ptr<RenderFrameHostImpl>())) { } FrameTree::~FrameTree() { @@ -90,6 +91,7 @@ void FrameTree::AddFrame(int render_frame_host_id, return; parent->AddChild(CreateNode(frame_id, frame_name, render_frame_host_id, + parent->navigator(), parent->render_frame_host()->GetProcess())); } @@ -150,13 +152,14 @@ scoped_ptr<FrameTreeNode> FrameTree::CreateNode( int64 frame_id, const std::string& frame_name, int render_frame_host_id, + Navigator* navigator, RenderProcessHost* render_process_host) { scoped_ptr<RenderFrameHostImpl> render_frame_host( new RenderFrameHostImpl(root_->render_frame_host()->render_view_host(), this, render_frame_host_id, false)); - return make_scoped_ptr(new FrameTreeNode(frame_id, frame_name, - render_frame_host.Pass())); + return make_scoped_ptr(new FrameTreeNode( + frame_id, frame_name, navigator, render_frame_host.Pass())); } } // namespace content |