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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness Created 3 years, 8 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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 735
736 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { 736 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() {
737 return delegate_.get(); 737 return delegate_.get();
738 } 738 }
739 739
740 void InterstitialPageImpl::DontCreateViewForTesting() { 740 void InterstitialPageImpl::DontCreateViewForTesting() {
741 create_view_ = false; 741 create_view_ = false;
742 } 742 }
743 743
744 void InterstitialPageImpl::CreateNewWindow( 744 void InterstitialPageImpl::CreateNewWindow(
745 SiteInstance* source_site_instance, 745 RenderFrameHost* opener,
746 int32_t render_view_route_id, 746 int32_t render_view_route_id,
747 int32_t main_frame_route_id, 747 int32_t main_frame_route_id,
748 int32_t main_frame_widget_route_id, 748 int32_t main_frame_widget_route_id,
749 const mojom::CreateNewWindowParams& params, 749 const mojom::CreateNewWindowParams& params,
750 SessionStorageNamespace* session_storage_namespace) { 750 SessionStorageNamespace* session_storage_namespace) {
751 NOTREACHED() << "InterstitialPage does not support showing popups."; 751 NOTREACHED() << "InterstitialPage does not support showing popups.";
752 } 752 }
753 753
754 void InterstitialPageImpl::SetFocusedFrame(FrameTreeNode* node, 754 void InterstitialPageImpl::SetFocusedFrame(FrameTreeNode* node,
755 SiteInstance* source) { 755 SiteInstance* source) {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() { 985 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() {
986 WebContentsImpl* web_contents_impl = 986 WebContentsImpl* web_contents_impl =
987 static_cast<WebContentsImpl*>(web_contents_); 987 static_cast<WebContentsImpl*>(web_contents_);
988 if (!web_contents_impl) 988 if (!web_contents_impl)
989 return nullptr; 989 return nullptr;
990 990
991 return web_contents_impl->GetInputEventRouter(); 991 return web_contents_impl->GetInputEventRouter();
992 } 992 }
993 993
994 } // namespace content 994 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698