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

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

Issue 1390053002: Trace FrameTreeNode Snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 2 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
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_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
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 // Traces a snapshot of the FrameTree.
150 void TraceSnapshot() const;
151
149 private: 152 private:
150 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame); 153 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame);
151 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap; 154 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap;
152 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap; 155 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap;
153 156
154 // A variation to the public ForEach method with a difference that the subtree 157 // A variation to the public ForEach method with a difference that the subtree
155 // starting at |skip_this_subtree| will not be recursed into. 158 // starting at |skip_this_subtree| will not be recursed into.
156 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node, 159 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node,
157 FrameTreeNode* skip_this_subtree) const; 160 FrameTreeNode* skip_this_subtree) const;
158 161
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 195
193 // Overall load progress. 196 // Overall load progress.
194 double load_progress_; 197 double load_progress_;
195 198
196 DISALLOW_COPY_AND_ASSIGN(FrameTree); 199 DISALLOW_COPY_AND_ASSIGN(FrameTree);
197 }; 200 };
198 201
199 } // namespace content 202 } // namespace content
200 203
201 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 204 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | content/browser/frame_host/render_frame_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698