| 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, | 44 void AddChild(scoped_ptr<FrameTreeNode> child, int frame_routing_id); |
| 45 int process_id, | |
| 46 int frame_routing_id); | |
| 47 void RemoveChild(FrameTreeNode* child); | 45 void RemoveChild(FrameTreeNode* child); |
| 48 | 46 |
| 49 // Clears process specific-state in this node to prepare for a new process. | 47 // Clears process specific-state in this node to prepare for a new process. |
| 50 void ResetForNewProcess(); | 48 void ResetForNewProcess(); |
| 51 | 49 |
| 52 FrameTree* frame_tree() const { | 50 FrameTree* frame_tree() const { |
| 53 return frame_tree_; | 51 return frame_tree_; |
| 54 } | 52 } |
| 55 | 53 |
| 56 Navigator* navigator() { | 54 Navigator* navigator() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // TODO(creis): Remove this when we can store subframe URLs in the | 128 // TODO(creis): Remove this when we can store subframe URLs in the |
| 131 // NavigationController. | 129 // NavigationController. |
| 132 GURL current_url_; | 130 GURL current_url_; |
| 133 | 131 |
| 134 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 132 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 135 }; | 133 }; |
| 136 | 134 |
| 137 } // namespace content | 135 } // namespace content |
| 138 | 136 |
| 139 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 137 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |