Chromium Code Reviews| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 139 |
| 140 // Returns this FrameTree's total load progress. | 140 // Returns this FrameTree's total load progress. |
| 141 double load_progress() { return load_progress_; } | 141 double load_progress() { return load_progress_; } |
| 142 | 142 |
| 143 // Resets the load progress on all nodes in this FrameTree. | 143 // Resets the load progress on all nodes in this FrameTree. |
| 144 void ResetLoadProgress(); | 144 void ResetLoadProgress(); |
| 145 | 145 |
| 146 // Returns true if at least one of the nodes in this FrameTree is loading. | 146 // Returns true if at least one of the nodes in this FrameTree is loading. |
| 147 bool IsLoading(); | 147 bool IsLoading(); |
| 148 | 148 |
| 149 void TraceSnapshot() const; | |
|
clamy
2015/10/12 09:31:05
This function should have a comment.
benjhayden
2015/10/13 00:22:21
Done.
| |
| 150 | |
| 149 private: | 151 private: |
| 150 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame); | 152 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame); |
| 151 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap; | 153 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap; |
| 152 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap; | 154 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap; |
| 153 | 155 |
| 154 // A variation to the public ForEach method with a difference that the subtree | 156 // A variation to the public ForEach method with a difference that the subtree |
| 155 // starting at |skip_this_subtree| will not be recursed into. | 157 // starting at |skip_this_subtree| will not be recursed into. |
| 156 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node, | 158 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node, |
| 157 FrameTreeNode* skip_this_subtree) const; | 159 FrameTreeNode* skip_this_subtree) const; |
| 158 | 160 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 | 194 |
| 193 // Overall load progress. | 195 // Overall load progress. |
| 194 double load_progress_; | 196 double load_progress_; |
| 195 | 197 |
| 196 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 198 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
| 197 }; | 199 }; |
| 198 | 200 |
| 199 } // namespace content | 201 } // namespace content |
| 200 | 202 |
| 201 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 203 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
| OLD | NEW |