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

Unified Diff: content/browser/frame_host/frame_tree_node.cc

Issue 925623002: Refactor the loading tracking logic in WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP (Fix tests) Created 5 years, 10 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_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index 845aecea62afc5945311f283f029c8d8b6504682..e486ede9f7fca0b91016bfccad6c1998b5c03ce5 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -16,6 +16,9 @@
namespace content {
+double FrameTreeNode::kNotStartedLoadingProgress = 0.0;
Charlie Reis 2015/02/20 23:42:12 const double
Fabrice (no longer in Chrome) 2015/02/23 20:02:06 Done.
+double FrameTreeNode::kMinimumLoadingProgress = 0.1;
+double FrameTreeNode::kDoneLoadingProgress = 1.0;
int64 FrameTreeNode::next_frame_tree_node_id_ = 1;
FrameTreeNode::FrameTreeNode(FrameTree* frame_tree,
@@ -35,7 +38,8 @@ FrameTreeNode::FrameTreeNode(FrameTree* frame_tree,
frame_tree_node_id_(next_frame_tree_node_id_++),
parent_(NULL),
replication_state_(name),
- is_loading_(false) {
+ is_loading_(false),
+ loading_progress_(kNotStartedLoadingProgress) {
}
FrameTreeNode::~FrameTreeNode() {

Powered by Google App Engine
This is Rietveld 408576698