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 #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 23 matching lines...) Expand all Loading... |
34 RenderFrameHostDelegate* render_frame_delegate, | 34 RenderFrameHostDelegate* render_frame_delegate, |
35 RenderViewHostDelegate* render_view_delegate, | 35 RenderViewHostDelegate* render_view_delegate, |
36 RenderWidgetHostDelegate* render_widget_delegate, | 36 RenderWidgetHostDelegate* render_widget_delegate, |
37 RenderFrameHostManager::Delegate* manager_delegate, | 37 RenderFrameHostManager::Delegate* manager_delegate, |
38 const std::string& name); | 38 const std::string& name); |
39 | 39 |
40 ~FrameTreeNode(); | 40 ~FrameTreeNode(); |
41 | 41 |
42 bool IsMainFrame() const; | 42 bool IsMainFrame() const; |
43 | 43 |
44 void AddChild(scoped_ptr<FrameTreeNode> child, int frame_routing_id); | 44 void AddChild(scoped_ptr<FrameTreeNode> child, |
| 45 int process_id, |
| 46 int frame_routing_id); |
45 void RemoveChild(FrameTreeNode* child); | 47 void RemoveChild(FrameTreeNode* child); |
46 | 48 |
47 // Clears process specific-state in this node to prepare for a new process. | 49 // Clears process specific-state in this node to prepare for a new process. |
48 void ResetForNewProcess(); | 50 void ResetForNewProcess(); |
49 | 51 |
50 FrameTree* frame_tree() const { | 52 FrameTree* frame_tree() const { |
51 return frame_tree_; | 53 return frame_tree_; |
52 } | 54 } |
53 | 55 |
54 Navigator* navigator() { | 56 Navigator* navigator() { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // TODO(creis): Remove this when we can store subframe URLs in the | 130 // TODO(creis): Remove this when we can store subframe URLs in the |
129 // NavigationController. | 131 // NavigationController. |
130 GURL current_url_; | 132 GURL current_url_; |
131 | 133 |
132 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 134 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
133 }; | 135 }; |
134 | 136 |
135 } // namespace content | 137 } // namespace content |
136 | 138 |
137 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 139 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |