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

Unified Diff: chrome/browser/ui/tab_contents/core_tab_helper_delegate.h

Issue 143463012: Pass rendering state on swapping in a prerendered page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dev
Patch Set: sync Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_contents/core_tab_helper_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
diff --git a/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h b/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
index e06abb29ab39dd6e1baec96ffddfdf6ca51526df..3f9907d5ccdc7ea2215348347b5685ec6c5d3ef2 100644
--- a/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
+++ b/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
@@ -20,8 +20,12 @@ class WebContents;
class CoreTabHelperDelegate {
public:
// The caller is responsible for deleting |old_contents|.
+ // |did_finish_load| is true if WebContentsObserver::DidFinishLoad() has
+ // already been called for |new_contents|.
virtual void SwapTabContents(content::WebContents* old_contents,
- content::WebContents* new_contents);
+ content::WebContents* new_contents,
+ bool did_start_load,
+ bool did_finish_load);
// Whether the specified WebContents can be reloaded.
// Reloading can be disabled e.g. for the DevTools window.
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_contents/core_tab_helper_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698