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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1496483002: OOPIF: Support session restore by combining/splitting frame PageStates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some tests Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 4220 matching lines...) Expand 10 before | Expand all | Expand 10 after
4231 // replacement (e.g., auto-subframe), in which case the swap out of the old 4231 // replacement (e.g., auto-subframe), in which case the swap out of the old
4232 // RenderFrameHost runs in the background after the old FrameNavigationEntry 4232 // RenderFrameHost runs in the background after the old FrameNavigationEntry
4233 // has already been replaced and destroyed. 4233 // has already been replaced and destroyed.
4234 if (frame_entry->site_instance() != rfhi->GetSiteInstance()) 4234 if (frame_entry->site_instance() != rfhi->GetSiteInstance())
4235 return; 4235 return;
4236 4236
4237 if (page_state == frame_entry->page_state()) 4237 if (page_state == frame_entry->page_state())
4238 return; // Nothing to update. 4238 return; // Nothing to update.
4239 4239
4240 frame_entry->set_page_state(page_state); 4240 frame_entry->set_page_state(page_state);
4241 entry->UpdatePageState();
4241 controller_.NotifyEntryChanged(entry); 4242 controller_.NotifyEntryChanged(entry);
4242 } 4243 }
4243 4244
4244 void WebContentsImpl::UpdateTitle(RenderFrameHost* render_frame_host, 4245 void WebContentsImpl::UpdateTitle(RenderFrameHost* render_frame_host,
4245 int32 page_id, 4246 int32 page_id,
4246 const base::string16& title, 4247 const base::string16& title,
4247 base::i18n::TextDirection title_direction) { 4248 base::i18n::TextDirection title_direction) {
4248 // If we have a title, that's a pretty good indication that we've started 4249 // If we have a title, that's a pretty good indication that we've started
4249 // getting useful data. 4250 // getting useful data.
4250 SetNotWaitingForResponse(); 4251 SetNotWaitingForResponse();
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
4840 return NULL; 4841 return NULL;
4841 } 4842 }
4842 4843
4843 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4844 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4844 force_disable_overscroll_content_ = force_disable; 4845 force_disable_overscroll_content_ = force_disable;
4845 if (view_) 4846 if (view_)
4846 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4847 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4847 } 4848 }
4848 4849
4849 } // namespace content 4850 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698