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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1736663003: Eliminate Quit() from Shell, and roll Shell & Connector together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@14cf
Patch Set: . Created 4 years, 9 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 6056 matching lines...) Expand 10 before | Expand all | Expand 10 after
6067 template <typename Interface> 6067 template <typename Interface>
6068 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { 6068 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) {
6069 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); 6069 GetServiceRegistry()->ConnectToRemoteService(std::move(request));
6070 } 6070 }
6071 6071
6072 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( 6072 mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication(
6073 const GURL& url) { 6073 const GURL& url) {
6074 if (!mojo_shell_) 6074 if (!mojo_shell_)
6075 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&mojo_shell_)); 6075 GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&mojo_shell_));
6076 mojo::shell::mojom::InterfaceProviderPtr interface_provider; 6076 mojo::shell::mojom::InterfaceProviderPtr interface_provider;
6077 mojo::shell::mojom::ConnectorPtr connector; 6077 mojo_shell_->Connect(
6078 mojo_shell_->GetConnector(GetProxy(&connector));
6079 connector->Connect(
6080 url.spec(), mojo::shell::mojom::Connector::kUserInherit, 6078 url.spec(), mojo::shell::mojom::Connector::kUserInherit,
6081 GetProxy(&interface_provider), nullptr, base::Bind(&OnGotInstanceID)); 6079 GetProxy(&interface_provider), nullptr, base::Bind(&OnGotInstanceID));
6082 return interface_provider; 6080 return interface_provider;
6083 } 6081 }
6084 6082
6085 media::RendererWebMediaPlayerDelegate* 6083 media::RendererWebMediaPlayerDelegate*
6086 RenderFrameImpl::GetWebMediaPlayerDelegate() { 6084 RenderFrameImpl::GetWebMediaPlayerDelegate() {
6087 if (!media_player_delegate_) 6085 if (!media_player_delegate_)
6088 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this); 6086 media_player_delegate_ = new media::RendererWebMediaPlayerDelegate(this);
6089 return media_player_delegate_; 6087 return media_player_delegate_;
(...skipping 28 matching lines...) Expand all
6118 int match_count, 6116 int match_count,
6119 int ordinal, 6117 int ordinal,
6120 const WebRect& selection_rect, 6118 const WebRect& selection_rect,
6121 bool final_status_update) { 6119 bool final_status_update) {
6122 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6120 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6123 selection_rect, ordinal, 6121 selection_rect, ordinal,
6124 final_status_update)); 6122 final_status_update));
6125 } 6123 }
6126 6124
6127 } // namespace content 6125 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698