1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/frame_host/frame_mojo_shell.h"
7 #include "content/browser/mojo/mojo_shell_context.h"
8 #include "content/public/browser/render_frame_host.h"
9 #include "content/public/browser/site_instance.h"
13 FrameMojoShell::FrameMojoShell(RenderFrameHost
* frame_host
)
14 : frame_host_(frame_host
) {
17 FrameMojoShell::~FrameMojoShell() {
20 void FrameMojoShell::BindRequest(
21 mojo::InterfaceRequest
<mojo::Shell
> shell_request
) {
22 bindings_
.AddBinding(this, shell_request
.Pass());
25 void FrameMojoShell::ConnectToApplication(
26 mojo::URLRequestPtr application_url
,
27 mojo::InterfaceRequest
<mojo::ServiceProvider
> services
,
28 mojo::ServiceProviderPtr exposed_services
) {
29 MojoShellContext::ConnectToApplication(
30 GURL(application_url
->url
), frame_host_
->GetSiteInstance()->GetSiteURL(),
34 void FrameMojoShell::QuitApplication() {
37 } // namespace content