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

Unified Diff: content/browser/frame_host/frame_tree.h

Issue 1015243004: Move load progress tracking logic to the frame tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/frame_tree.h
diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
index 21eaac9b108e6755efca21d63ff96d9f4d9c78d7..f41999c546c766ea0d52142bbb1cc14b43eca7ea 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -130,6 +130,15 @@ class CONTENT_EXPORT FrameTree {
// the listener installed by SetFrameRemoveListener.
void FrameRemoved(FrameTreeNode* frame);
+ // Returns this FrameTree's total load progress.
+ double GetLoadProgress();
+
+ // Resets the load progress on each node of this FrameTree.
nasko 2015/03/24 17:26:11 nit: s/each node of/all nodes in/.
Fabrice (no longer in Chrome) 2015/03/25 17:35:01 Done.
+ void ResetLoadProgress();
+
+ // Returns true if at least one of the nodes in this FrameTree is loading.
+ bool IsLoading();
+
private:
typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap;
typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap;
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | content/browser/frame_host/frame_tree_node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698