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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2938313002: Don't show current RenderWidgetHostView while interstitial is showing. (Closed)
Patch Set: Fix typo. Created 3 years, 6 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
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index f02483729b5a2a8063c1b5548ec920bc0adeb087..0c3e3cf4e08ef38c4bda038fc7221b0eb9ad144b 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -755,6 +755,7 @@ class CONTENT_EXPORT WebContentsImpl
RenderViewHost* new_host) override;
NavigationControllerImpl& GetControllerForRenderManager() override;
NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override;
+ InterstitialPageImpl* GetInterstitialForRenderManager() override;
bool FocusLocationBarByDefault() override;
void SetFocusToLocationBar(bool select_all) override;
bool IsHidden() override;
@@ -1359,6 +1360,12 @@ class CONTENT_EXPORT WebContentsImpl
// See ResumeLoadingCreatedWebContents.
bool is_resume_pending_;
+ // The interstitial page currently shown, if any. Not owned by this class: the
+ // InterstitialPage is self-owned and deletes itself asynchronously when
+ // hidden. Because it may outlive this WebContents, it enters a disabled state
+ // when hidden or preparing for destruction.
+ InterstitialPageImpl* interstitial_page_;
+
// Data for current page -----------------------------------------------------
// When a title cannot be taken from any entry, this title will be used.
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698