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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 ConstNodeRange ConstNodes() const; | 150 ConstNodeRange ConstNodes() const; |
151 | 151 |
152 // Adds a new child frame to the frame tree. |process_id| is required to | 152 // Adds a new child frame to the frame tree. |process_id| is required to |
153 // disambiguate |new_routing_id|, and it must match the process of the | 153 // disambiguate |new_routing_id|, and it must match the process of the |
154 // |parent| node. Otherwise no child is added and this method returns false. | 154 // |parent| node. Otherwise no child is added and this method returns false. |
155 bool AddFrame(FrameTreeNode* parent, | 155 bool AddFrame(FrameTreeNode* parent, |
156 int process_id, | 156 int process_id, |
157 int new_routing_id, | 157 int new_routing_id, |
158 blink::WebTreeScopeType scope, | 158 blink::WebTreeScopeType scope, |
159 const std::string& frame_name, | 159 const std::string& frame_name, |
| 160 const std::string& frame_unique_name, |
160 blink::WebSandboxFlags sandbox_flags, | 161 blink::WebSandboxFlags sandbox_flags, |
161 const blink::WebFrameOwnerProperties& frame_owner_properties); | 162 const blink::WebFrameOwnerProperties& frame_owner_properties); |
162 | 163 |
163 // Removes a frame from the frame tree. |child|, its children, and objects | 164 // Removes a frame from the frame tree. |child|, its children, and objects |
164 // owned by their RenderFrameHostManagers are immediately deleted. The root | 165 // owned by their RenderFrameHostManagers are immediately deleted. The root |
165 // node cannot be removed this way. | 166 // node cannot be removed this way. |
166 void RemoveFrame(FrameTreeNode* child); | 167 void RemoveFrame(FrameTreeNode* child); |
167 | 168 |
168 // This method walks the entire frame tree and creates a RenderFrameProxyHost | 169 // This method walks the entire frame tree and creates a RenderFrameProxyHost |
169 // for the given |site_instance| in each node except the |source| one -- | 170 // for the given |site_instance| in each node except the |source| one -- |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 287 |
287 // Overall load progress. | 288 // Overall load progress. |
288 double load_progress_; | 289 double load_progress_; |
289 | 290 |
290 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 291 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
291 }; | 292 }; |
292 | 293 |
293 } // namespace content | 294 } // namespace content |
294 | 295 |
295 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 296 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
OLD | NEW |