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

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

Issue 1113393004: OOPIF: Specify previous sibling frames when creating new RenderFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODOs and fix comment Created 5 years, 7 months 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
« no previous file with comments | « no previous file | 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
126 // Returns true if this node is in a loading state. 130 // Returns true if this node is in a loading state.
127 bool IsLoading() const; 131 bool IsLoading() const;
128 132
129 // Returns this node's loading progress. 133 // Returns this node's loading progress.
130 double loading_progress() const { return loading_progress_; } 134 double loading_progress() const { return loading_progress_; }
131 135
132 NavigationRequest* navigation_request() { return navigation_request_.get(); } 136 NavigationRequest* navigation_request() { return navigation_request_.get(); }
133 137
134 // PlzNavigate 138 // PlzNavigate
135 // Takes ownership of |navigation_request| and makes it the current 139 // Takes ownership of |navigation_request| and makes it the current
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Owns an ongoing NavigationRequest until it is ready to commit. It will then 224 // Owns an ongoing NavigationRequest until it is ready to commit. It will then
221 // be reset and a RenderFrameHost will be responsible for the navigation. 225 // be reset and a RenderFrameHost will be responsible for the navigation.
222 scoped_ptr<NavigationRequest> navigation_request_; 226 scoped_ptr<NavigationRequest> navigation_request_;
223 227
224 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 228 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
225 }; 229 };
226 230
227 } // namespace content 231 } // namespace content
228 232
229 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 233 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698