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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yep Created 6 years, 7 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index a37eecf70bc9ce305d93987dd07334890e762cc9..6c6824b69a023fe171fe2b444484e7d49c23decc 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2961,28 +2961,17 @@ WebElement RenderFrameImpl::GetFocusedElement() {
}
void RenderFrameImpl::didStartLoading(bool to_different_document) {
- bool view_was_loading = render_view_->is_loading();
render_view_->FrameDidStartLoading(frame_);
- if (!view_was_loading)
- Send(new FrameHostMsg_DidStartLoading(routing_id_, to_different_document));
+ Send(new FrameHostMsg_DidStartLoading(routing_id_, to_different_document));
}
void RenderFrameImpl::didStopLoading() {
- if (!render_view_->is_loading())
- return;
render_view_->FrameDidStopLoading(frame_);
-
- // NOTE: For now we're doing the safest thing, and sending out notification
- // when done loading. This currently isn't an issue as the favicon is only
- // displayed when done loading. Ideally we would send notification when
- // finished parsing the head, but webkit doesn't support that yet.
- // The feed discovery code would also benefit from access to the head.
- if (!render_view_->is_loading())
- Send(new FrameHostMsg_DidStopLoading(routing_id_));
+ Send(new FrameHostMsg_DidStopLoading(routing_id_));
}
void RenderFrameImpl::didChangeLoadProgress(double load_progress) {
- render_view_->FrameDidChangeLoadProgress(frame_, load_progress);
+ Send(new FrameHostMsg_DidChangeLoadProgress(routing_id_, load_progress));
}
WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(

Powered by Google App Engine
This is Rietveld 408576698