| Index: content/browser/mojo_app_connection_impl.cc
|
| diff --git a/content/browser/mojo_app_connection_impl.cc b/content/browser/mojo_app_connection_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b04a99f38b3109ab60d62f28ca3eb2b2db2bb7c3
|
| --- /dev/null
|
| +++ b/content/browser/mojo_app_connection_impl.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/browser/mojo_app_connection_impl.h"
|
| +
|
| +#include "content/browser/mojo_shell_context_impl.h"
|
| +
|
| +namespace content {
|
| +
|
| +scoped_ptr<MojoAppConnection> MojoAppConnection::Create(const GURL& url) {
|
| + return scoped_ptr<MojoAppConnection>(new MojoAppConnectionImpl(url));
|
| +}
|
| +
|
| +MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url) {
|
| + MojoShellContextImpl::ConnectToApplication(
|
| + url, mojo::GetProxy(&remote_services_));
|
| +}
|
| +
|
| +MojoAppConnectionImpl::~MojoAppConnectionImpl() {
|
| +}
|
| +
|
| +void MojoAppConnectionImpl::ConnectToService(
|
| + const std::string& service_name,
|
| + mojo::ScopedMessagePipeHandle handle) {
|
| + remote_services_->ConnectToService(service_name, handle.Pass());
|
| +}
|
| +
|
| +} // namespace content
|
|
|