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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 is_loading_ = is_loading; | 105 is_loading_ = is_loading; |
106 } | 106 } |
107 bool is_loading() const { | 107 bool is_loading() const { |
108 return is_loading_; | 108 return is_loading_; |
109 } | 109 } |
110 | 110 |
111 RenderFrameHostImpl* current_frame_host() const { | 111 RenderFrameHostImpl* current_frame_host() const { |
112 return render_manager_.current_frame_host(); | 112 return render_manager_.current_frame_host(); |
113 } | 113 } |
114 | 114 |
| 115 bool IsDescendantOf(FrameTreeNode* other) const; |
| 116 |
115 private: | 117 private: |
116 void set_parent(FrameTreeNode* parent) { parent_ = parent; } | 118 void set_parent(FrameTreeNode* parent) { parent_ = parent; } |
117 | 119 |
118 // The next available browser-global FrameTreeNode ID. | 120 // The next available browser-global FrameTreeNode ID. |
119 static int64 next_frame_tree_node_id_; | 121 static int64 next_frame_tree_node_id_; |
120 | 122 |
121 // The FrameTree that owns us. | 123 // The FrameTree that owns us. |
122 FrameTree* frame_tree_; // not owned. | 124 FrameTree* frame_tree_; // not owned. |
123 | 125 |
124 // The Navigator object responsible for managing navigations at this node | 126 // The Navigator object responsible for managing navigations at this node |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // to the FrameTreeNode, it is better to ask it about the loading status than | 162 // to the FrameTreeNode, it is better to ask it about the loading status than |
161 // RenderFrameHost or using a counter to balance the events out. | 163 // RenderFrameHost or using a counter to balance the events out. |
162 bool is_loading_; | 164 bool is_loading_; |
163 | 165 |
164 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 166 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
165 }; | 167 }; |
166 | 168 |
167 } // namespace content | 169 } // namespace content |
168 | 170 |
169 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 171 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |