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

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

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 164c3c1d5851cea6bf40c4680fcc9222fe734a4a..ce34bc287f1ea9ad6206d832666dd762b078f9fd 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -130,8 +130,11 @@ class CONTENT_EXPORT FrameTree {
// the listener installed by SetFrameRemoveListener.
void FrameRemoved(FrameTreeNode* frame);
+ // Updates the overall load progress and notifies the WebContents.
+ void UpdateLoadProgress();
+
// Returns this FrameTree's total load progress.
- double GetLoadProgress();
+ double load_progress() { return load_progress_; }
// Resets the load progress on all nodes in this FrameTree.
void ResetLoadProgress();
@@ -178,6 +181,9 @@ class CONTENT_EXPORT FrameTree {
base::Callback<void(RenderFrameHost*)> on_frame_removed_;
+ // Overall load progress.
+ double load_progress_;
+
DISALLOW_COPY_AND_ASSIGN(FrameTree);
};
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698