| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index a8368231eb9e4463b5a38edbd137207804a5c8e4..abb8e3f36f54c942587cdaa7edc0a60a05de3b81 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -184,6 +184,7 @@ RenderFrameImpl::RenderFrameImpl(RenderViewImpl* render_view, int routing_id)
|
| : frame_(NULL),
|
| render_view_(render_view->AsWeakPtr()),
|
| routing_id_(routing_id),
|
| + is_loading_(false),
|
| is_swapped_out_(false),
|
| is_detaching_(false),
|
| cookie_jar_(this) {
|
| @@ -2023,12 +2024,40 @@ void RenderFrameImpl::UpdateURL(blink::WebFrame* frame) {
|
| navigation_state->set_transition_type(PAGE_TRANSITION_LINK);
|
| }
|
|
|
| -void RenderFrameImpl::didStartLoading() {
|
| +void RenderFrameImpl::didStartLoading(bool to_different_document) {
|
| + if (is_loading_) {
|
| + DVLOG(1) << "didStartLoading called while loading";
|
| + return;
|
| + }
|
| +
|
| + is_loading_ = true;
|
| +
|
| + render_view_->didStartLoading(frame_);
|
| +
|
| Send(new FrameHostMsg_DidStartLoading(routing_id_));
|
| }
|
|
|
| void RenderFrameImpl::didStopLoading() {
|
| + if (!is_loading_) {
|
| + DVLOG(1) << "DidStopLoading called while not loading";
|
| + return;
|
| + }
|
| +
|
| + is_loading_ = false;
|
| +
|
| + render_view_->didStopLoading(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.
|
| + // NOTE: Sending of the IPC message happens through the top-level frame.
|
| Send(new FrameHostMsg_DidStopLoading(routing_id_));
|
| }
|
|
|
| +void RenderFrameImpl::didChangeLoadProgress(double load_progress) {
|
| + render_view_->didChangeLoadProgress(frame_, load_progress);
|
| +}
|
| +
|
| } // namespace content
|
|
|