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

Side by Side Diff: content/browser/mojo_app_connection_impl.cc

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing docs and removed some cruft Created 5 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
(Empty)
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.
4
5 #include "content/browser/mojo_app_connection_impl.h"
6
7 #include "content/browser/mojo_shell_context_impl.h"
8
9 namespace content {
10
11 scoped_ptr<MojoAppConnection> MojoAppConnection::Create(const GURL& url) {
12 return scoped_ptr<MojoAppConnection>(new MojoAppConnectionImpl(url));
13 }
14
15 MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url) {
16 MojoShellContextImpl::ConnectToApplication(
17 url, mojo::GetProxy(&remote_services_));
18 }
19
20 MojoAppConnectionImpl::~MojoAppConnectionImpl() {
21 }
22
23 void MojoAppConnectionImpl::ConnectToService(
24 const std::string& service_name,
25 mojo::ScopedMessagePipeHandle handle) {
26 remote_services_->ConnectToService(service_name, handle.Pass());
27 }
28
29 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698