| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const; | 73 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const; |
| 74 | 74 |
| 75 // Frame tree manipulation routines. | 75 // Frame tree manipulation routines. |
| 76 // |process_id| is required to disambiguate |new_routing_id|, and it must | 76 // |process_id| is required to disambiguate |new_routing_id|, and it must |
| 77 // match the process of the |parent| node. Otherwise this method returns | 77 // match the process of the |parent| node. Otherwise this method returns |
| 78 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new | 78 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new |
| 79 // routing ID for the new frame. | 79 // routing ID for the new frame. |
| 80 RenderFrameHostImpl* AddFrame(FrameTreeNode* parent, | 80 RenderFrameHostImpl* AddFrame(FrameTreeNode* parent, |
| 81 int process_id, | 81 int process_id, |
| 82 int new_routing_id, | 82 int new_routing_id, |
| 83 blink::WebTreeScopeType scope, |
| 83 const std::string& frame_name, | 84 const std::string& frame_name, |
| 84 SandboxFlags sandbox_flags); | 85 SandboxFlags sandbox_flags); |
| 85 void RemoveFrame(FrameTreeNode* child); | 86 void RemoveFrame(FrameTreeNode* child); |
| 86 | 87 |
| 87 // This method walks the entire frame tree and creates a RenderFrameProxyHost | 88 // This method walks the entire frame tree and creates a RenderFrameProxyHost |
| 88 // for the given |site_instance| in each node except the |source| one -- | 89 // for the given |site_instance| in each node except the |source| one -- |
| 89 // the source will have a RenderFrameHost. It assumes that no frame tree | 90 // the source will have a RenderFrameHost. It assumes that no frame tree |
| 90 // nodes already have RenderFrameProxyHost for the given |site_instance|. | 91 // nodes already have RenderFrameProxyHost for the given |site_instance|. |
| 91 void CreateProxiesForSiteInstance( | 92 void CreateProxiesForSiteInstance( |
| 92 FrameTreeNode* source, | 93 FrameTreeNode* source, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 185 |
| 185 // Overall load progress. | 186 // Overall load progress. |
| 186 double load_progress_; | 187 double load_progress_; |
| 187 | 188 |
| 188 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 189 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 } // namespace content | 192 } // namespace content |
| 192 | 193 |
| 193 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 194 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
| OLD | NEW |