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

Side by Side Diff: content/browser/frame_host/frame_tree_node.h

Issue 103633002: Add RenderFrameHostDelegate and plumb it through all the necessary classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('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 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // When a page contains iframes, its renderer process maintains a tree structure 23 // When a page contains iframes, its renderer process maintains a tree structure
24 // of those frames. We are mirroring this tree in the browser process. This 24 // of those frames. We are mirroring this tree in the browser process. This
25 // class represents a node in this tree and is a wrapper for all objects that 25 // class represents a node in this tree and is a wrapper for all objects that
26 // are frame-specific (as opposed to page-specific). 26 // are frame-specific (as opposed to page-specific).
27 class CONTENT_EXPORT FrameTreeNode { 27 class CONTENT_EXPORT FrameTreeNode {
28 public: 28 public:
29 static const int64 kInvalidFrameId; 29 static const int64 kInvalidFrameId;
30 30
31 FrameTreeNode(Navigator* navigator, 31 FrameTreeNode(Navigator* navigator,
32 RenderFrameHostDelegate* render_frame_delegate,
32 RenderViewHostDelegate* render_view_delegate, 33 RenderViewHostDelegate* render_view_delegate,
33 RenderWidgetHostDelegate* render_widget_delegate, 34 RenderWidgetHostDelegate* render_widget_delegate,
34 RenderFrameHostManager::Delegate* manager_delegate, 35 RenderFrameHostManager::Delegate* manager_delegate,
35 int64 frame_id, 36 int64 frame_id,
36 const std::string& name, 37 const std::string& name,
37 scoped_ptr<RenderFrameHostImpl> render_frame_host); 38 scoped_ptr<RenderFrameHostImpl> render_frame_host);
38 39
39 ~FrameTreeNode(); 40 ~FrameTreeNode();
40 41
41 void AddChild(scoped_ptr<FrameTreeNode> child); 42 void AddChild(scoped_ptr<FrameTreeNode> child);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // TODO(creis): Remove this when we can store subframe URLs in the 151 // TODO(creis): Remove this when we can store subframe URLs in the
151 // NavigationController. 152 // NavigationController.
152 GURL current_url_; 153 GURL current_url_;
153 154
154 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 155 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
155 }; 156 };
156 157
157 } // namespace content 158 } // namespace content
158 159
159 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 160 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698