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

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

Issue 989473003: Reland of Refactor the loading tracking logic in WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change + nits 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index df33497e5e11e9e6cb91dcdfd056c5d9a91e9416..d38739645ce70fc887a207bbe4b7e7e36f0de80a 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -105,6 +105,10 @@ base::i18n::TextDirection WebTextDirectionToChromeTextDirection(
} // namespace
+const double RenderFrameHostImpl::kLoadingProgressNotStarted = 0.0;
+const double RenderFrameHostImpl::kLoadingProgressMinimum = 0.1;
+const double RenderFrameHostImpl::kLoadingProgressDone = 1.0;
+
// static
bool RenderFrameHostImpl::IsRFHStateActive(RenderFrameHostImplState rfh_state) {
return rfh_state == STATE_DEFAULT;
@@ -150,6 +154,8 @@ RenderFrameHostImpl::RenderFrameHostImpl(SiteInstance* site_instance,
override_sudden_termination_status_(false),
is_waiting_for_beforeunload_ack_(false),
unload_ack_is_for_navigation_(false),
+ is_loading_(false),
+ loading_progress_(kLoadingProgressNotStarted),
accessibility_reset_token_(0),
accessibility_reset_count_(0),
no_create_browser_accessibility_manager_for_testing_(false),
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698