Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 9d5fb1f8fba8cc1dec10b8e3d6d6ea6f83d10cb7..cf1d73944c7bb537339c95731c8ce69d0d44dd90 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -2579,6 +2579,7 @@ void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { |
// loading, or done loading. |
void WebContentsImpl::SetIsLoading(RenderViewHost* render_view_host, |
bool is_loading, |
+ bool to_different_document, |
LoadNotificationDetails* details) { |
if (is_loading == is_loading_) |
return; |
@@ -2597,7 +2598,7 @@ void WebContentsImpl::SetIsLoading(RenderViewHost* render_view_host, |
waiting_for_response_ = is_loading; |
if (delegate_) |
- delegate_->LoadingStateChanged(this); |
+ delegate_->LoadingStateChanged(this, to_different_document); |
NotifyNavigationStateChanged(INVALIDATE_TYPE_LOAD); |
std::string url = (details ? details->url.possibly_invalid_spec() : "NULL"); |
@@ -2872,7 +2873,7 @@ void WebContentsImpl::RenderViewTerminated(RenderViewHost* rvh, |
dialog_manager_->CancelActiveAndPendingDialogs(this); |
ClearPowerSaveBlockers(rvh); |
- SetIsLoading(rvh, false, NULL); |
+ SetIsLoading(rvh, false, true, NULL); |
NotifyDisconnected(); |
SetIsCrashed(status, error_code); |
GetView()->OnTabCrashed(GetCrashedStatus(), crashed_error_code_); |
@@ -3001,8 +3002,10 @@ void WebContentsImpl::RequestMove(const gfx::Rect& new_bounds) { |
delegate_->MoveContents(this, new_bounds); |
} |
-void WebContentsImpl::DidStartLoading(RenderFrameHost* render_frame_host) { |
- SetIsLoading(render_frame_host->GetRenderViewHost(), true, NULL); |
+void WebContentsImpl::DidStartLoading(RenderFrameHost* render_frame_host, |
+ bool to_different_document) { |
+ SetIsLoading(render_frame_host->GetRenderViewHost(), true, |
+ to_different_document, NULL); |
Charlie Reis
2014/03/10 20:07:46
nit: Align with first argument.
|
} |
void WebContentsImpl::DidStopLoading(RenderFrameHost* render_frame_host) { |
@@ -3027,7 +3030,8 @@ void WebContentsImpl::DidStopLoading(RenderFrameHost* render_frame_host) { |
controller_.GetCurrentEntryIndex())); |
} |
- SetIsLoading(render_frame_host->GetRenderViewHost(), false, details.get()); |
+ SetIsLoading(render_frame_host->GetRenderViewHost(), false, true, |
+ details.get()); |
Charlie Reis
2014/03/10 20:07:46
nit: align with first argument.
|
} |
void WebContentsImpl::DidCancelLoading() { |