| 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 8a400cd6c2de1ad0e401ba182b537b46536ee28e..0f8b1df5ef3e43a7c29d77a5445f81b074bb5f21 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();
|
| @@ -1985,11 +1985,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 {
|
| @@ -2902,7 +2902,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));
|
| @@ -2919,9 +2919,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);
|
| }
|
|
|
|
|