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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const FrameReplicationState& current_replication_state() const { | 116 const FrameReplicationState& current_replication_state() const { |
117 return replication_state_; | 117 return replication_state_; |
118 } | 118 } |
119 | 119 |
120 RenderFrameHostImpl* current_frame_host() const { | 120 RenderFrameHostImpl* current_frame_host() const { |
121 return render_manager_.current_frame_host(); | 121 return render_manager_.current_frame_host(); |
122 } | 122 } |
123 | 123 |
124 bool IsDescendantOf(FrameTreeNode* other) const; | 124 bool IsDescendantOf(FrameTreeNode* other) const; |
125 | 125 |
126 // Return the node immediately preceding this node in its parent's | |
127 // |children_|, or nullptr if there is no such node. | |
128 FrameTreeNode* PreviousSibling() const; | |
129 | |
130 // Returns true if this node is in a loading state. | 126 // Returns true if this node is in a loading state. |
131 bool IsLoading() const; | 127 bool IsLoading() const; |
132 | 128 |
133 // Returns this node's loading progress. | 129 // Returns this node's loading progress. |
134 double loading_progress() const { return loading_progress_; } | 130 double loading_progress() const { return loading_progress_; } |
135 | 131 |
136 NavigationRequest* navigation_request() { return navigation_request_.get(); } | 132 NavigationRequest* navigation_request() { return navigation_request_.get(); } |
137 | 133 |
138 // PlzNavigate | 134 // PlzNavigate |
139 // Takes ownership of |navigation_request| and makes it the current | 135 // Takes ownership of |navigation_request| and makes it the current |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // Owns an ongoing NavigationRequest until it is ready to commit. It will then | 220 // Owns an ongoing NavigationRequest until it is ready to commit. It will then |
225 // be reset and a RenderFrameHost will be responsible for the navigation. | 221 // be reset and a RenderFrameHost will be responsible for the navigation. |
226 scoped_ptr<NavigationRequest> navigation_request_; | 222 scoped_ptr<NavigationRequest> navigation_request_; |
227 | 223 |
228 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 224 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
229 }; | 225 }; |
230 | 226 |
231 } // namespace content | 227 } // namespace content |
232 | 228 |
233 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 229 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |