| 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 <iterator> | 10 #include <iterator> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // each RenderViewHost. When the number drops to zero, we call Shutdown on | 179 // each RenderViewHost. When the number drops to zero, we call Shutdown on |
| 180 // the RenderViewHost. | 180 // the RenderViewHost. |
| 181 void AddRenderViewHostRef(RenderViewHostImpl* render_view_host); | 181 void AddRenderViewHostRef(RenderViewHostImpl* render_view_host); |
| 182 void ReleaseRenderViewHostRef(RenderViewHostImpl* render_view_host); | 182 void ReleaseRenderViewHostRef(RenderViewHostImpl* render_view_host); |
| 183 | 183 |
| 184 // This is only meant to be called by FrameTreeNode. Triggers calling | 184 // This is only meant to be called by FrameTreeNode. Triggers calling |
| 185 // the listener installed by SetFrameRemoveListener. | 185 // the listener installed by SetFrameRemoveListener. |
| 186 void FrameRemoved(FrameTreeNode* frame); | 186 void FrameRemoved(FrameTreeNode* frame); |
| 187 | 187 |
| 188 // Updates the overall load progress and notifies the WebContents. | 188 // Updates the overall load progress and notifies the WebContents. |
| 189 void UpdateLoadProgress(); | 189 void UpdateLoadProgress(FrameTreeNode* frame); |
| 190 | 190 |
| 191 // Returns this FrameTree's total load progress. | 191 // Returns this FrameTree's total load progress. |
| 192 double load_progress() { return load_progress_; } | 192 double load_progress() { return load_progress_; } |
| 193 | 193 |
| 194 // Resets the load progress on all nodes in this FrameTree. | 194 // Resets the load progress on all nodes in this FrameTree. |
| 195 void ResetLoadProgress(); | 195 void ResetLoadProgress(); |
| 196 | 196 |
| 197 // Returns true if at least one of the nodes in this FrameTree is loading. | 197 // Returns true if at least one of the nodes in this FrameTree is loading. |
| 198 bool IsLoading() const; | 198 bool IsLoading() const; |
| 199 | 199 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 // Overall load progress. | 247 // Overall load progress. |
| 248 double load_progress_; | 248 double load_progress_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 250 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace content | 253 } // namespace content |
| 254 | 254 |
| 255 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 255 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
| OLD | NEW |