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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 533
534 WebContents* InterstitialPageImpl::OpenURL(const OpenURLParams& params) { 534 WebContents* InterstitialPageImpl::OpenURL(const OpenURLParams& params) {
535 NOTREACHED(); 535 NOTREACHED();
536 return nullptr; 536 return nullptr;
537 } 537 }
538 538
539 const std::string& InterstitialPageImpl::GetUserAgentOverride() const { 539 const std::string& InterstitialPageImpl::GetUserAgentOverride() const {
540 return base::EmptyString(); 540 return base::EmptyString();
541 } 541 }
542 542
543 bool InterstitialPageImpl::ShowingInterstitialPage() const {
544 // An interstitial page never shows a second interstitial.
545 return false;
546 }
547
543 RendererPreferences InterstitialPageImpl::GetRendererPrefs( 548 RendererPreferences InterstitialPageImpl::GetRendererPrefs(
544 BrowserContext* browser_context) const { 549 BrowserContext* browser_context) const {
545 delegate_->OverrideRendererPrefs(&renderer_preferences_); 550 delegate_->OverrideRendererPrefs(&renderer_preferences_);
546 return renderer_preferences_; 551 return renderer_preferences_;
547 } 552 }
548 553
549 void InterstitialPageImpl::RenderWidgetDeleted( 554 void InterstitialPageImpl::RenderWidgetDeleted(
550 RenderWidgetHostImpl* render_widget_host) { 555 RenderWidgetHostImpl* render_widget_host) {
551 // TODO(creis): Remove this method once we verify the shutdown path is sane. 556 // TODO(creis): Remove this method once we verify the shutdown path is sane.
552 CHECK(!web_contents_); 557 CHECK(!web_contents_);
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() { 993 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() {
989 WebContentsImpl* web_contents_impl = 994 WebContentsImpl* web_contents_impl =
990 static_cast<WebContentsImpl*>(web_contents_); 995 static_cast<WebContentsImpl*>(web_contents_);
991 if (!web_contents_impl) 996 if (!web_contents_impl)
992 return nullptr; 997 return nullptr;
993 998
994 return web_contents_impl->GetInputEventRouter(); 999 return web_contents_impl->GetInputEventRouter();
995 } 1000 }
996 1001
997 } // namespace content 1002 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | content/browser/frame_host/interstitial_page_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698