OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer_host/frame_tree.h" | 5 #include "content/browser/frame_host/frame_tree.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "content/browser/renderer_host/frame_tree_node.h" | 11 #include "content/browser/frame_host/frame_tree_node.h" |
12 #include "content/browser/renderer_host/render_frame_host_impl.h" | 12 #include "content/browser/frame_host/render_frame_host_impl.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 namespace { | 16 namespace { |
17 // Used with FrameTree::ForEach() to search for the FrameTreeNode | 17 // Used with FrameTree::ForEach() to search for the FrameTreeNode |
18 // corresponding to |frame_id|. | 18 // corresponding to |frame_id|. |
19 bool FrameTreeNodeForId(int64 frame_id, FrameTreeNode** out_node, | 19 bool FrameTreeNodeForId(int64 frame_id, FrameTreeNode** out_node, |
20 FrameTreeNode* node) { | 20 FrameTreeNode* node) { |
21 if (node->frame_id() == frame_id) { | 21 if (node->frame_id() == frame_id) { |
22 *out_node = node; | 22 *out_node = node; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 RenderProcessHost* render_process_host) { | 129 RenderProcessHost* render_process_host) { |
130 scoped_ptr<RenderFrameHostImpl> render_frame_host( | 130 scoped_ptr<RenderFrameHostImpl> render_frame_host( |
131 new RenderFrameHostImpl(root_->render_frame_host()->render_view_host(), | 131 new RenderFrameHostImpl(root_->render_frame_host()->render_view_host(), |
132 this, render_frame_host_id, false)); | 132 this, render_frame_host_id, false)); |
133 | 133 |
134 return make_scoped_ptr(new FrameTreeNode(frame_id, frame_name, | 134 return make_scoped_ptr(new FrameTreeNode(frame_id, frame_name, |
135 render_frame_host.Pass())); | 135 render_frame_host.Pass())); |
136 } | 136 } |
137 | 137 |
138 } // namespace content | 138 } // namespace content |
OLD | NEW |