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

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: final comment 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
« no previous file with comments | « content/renderer/load_progress_tracker.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index d2fe0b73b10bfc8ac2c524106138c88407b90cd5..a667a599dfde75a133593dc62e50a5e355ace9f4 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3063,28 +3063,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(
« no previous file with comments | « content/renderer/load_progress_tracker.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698