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 d8e4d6e21caa423232c2a17eca697dcb5679e589..b0d8de898ef3c20e2ce49b0a80911f5a83702711 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -217,7 +217,7 @@ void MakeNavigateParams(const NavigationEntryImpl& entry, |
} |
params->referrer = entry.GetReferrer(); |
params->transition = entry.GetTransitionType(); |
- params->state = entry.GetContentState(); |
+ params->page_state = entry.GetPageState(); |
params->navigation_type = |
GetNavigationType(controller.GetBrowserContext(), entry, reload_type); |
params->request_time = base::Time::Now(); |
@@ -1940,11 +1940,11 @@ void WebContentsImpl::ViewSource() { |
} |
void WebContentsImpl::ViewFrameSource(const GURL& url, |
- const std::string& content_state) { |
+ const PageState& page_state) { |
if (!delegate_) |
return; |
- delegate_->ViewSourceForFrame(this, url, content_state); |
+ delegate_->ViewSourceForFrame(this, url, page_state); |
} |
int WebContentsImpl::GetMinimumZoomPercent() const { |
@@ -2849,7 +2849,7 @@ void WebContentsImpl::DidNavigate( |
void WebContentsImpl::UpdateState(RenderViewHost* rvh, |
int32 page_id, |
- const std::string& state) { |
+ const PageState& page_state) { |
// Ensure that this state update comes from either the active RVH or one of |
// the swapped out RVHs. We don't expect to hear from any other RVHs. |
DCHECK(rvh == GetRenderViewHost() || render_manager_.IsOnSwappedOutList(rvh)); |
@@ -2866,9 +2866,9 @@ void WebContentsImpl::UpdateState(RenderViewHost* rvh, |
return; |
NavigationEntry* entry = controller_.GetEntryAtIndex(entry_index); |
- if (state == entry->GetContentState()) |
+ if (page_state == entry->GetPageState()) |
return; // Nothing to update. |
- entry->SetContentState(state); |
+ entry->SetPageState(page_state); |
controller_.NotifyEntryChanged(entry, entry_index); |
} |