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

Side by Side Diff: content/browser/frame_host/frame_tree.cc

Issue 49823002: Move navigation and frame tree classes to a new frame_host/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing gyp and adding TODO. Created 7 years, 1 month 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
« no previous file with comments | « content/browser/frame_host/frame_tree.h ('k') | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree.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