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

Unified Diff: content/child/mojo/mojo_application.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/mojo/mojo_application.h ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/mojo/mojo_application.cc
diff --git a/content/child/mojo/mojo_application.cc b/content/child/mojo/mojo_application.cc
deleted file mode 100644
index a09352bd8bb35f4595005519a3764c00f478c184..0000000000000000000000000000000000000000
--- a/content/child/mojo/mojo_application.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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/child/mojo/mojo_application.h"
-
-#include <utility>
-
-#include "base/logging.h"
-#include "content/common/application_setup.mojom.h"
-#include "mojo/edk/embedder/embedder.h"
-
-namespace content {
-
-MojoApplication::MojoApplication() {
-}
-
-MojoApplication::~MojoApplication() {
-}
-
-void MojoApplication::InitWithToken(const std::string& token) {
- DCHECK(!interface_registry_.get());
- mojo::ScopedMessagePipeHandle handle =
- mojo::edk::CreateChildMessagePipe(token);
- DCHECK(handle.is_valid());
-
- mojom::ApplicationSetupPtr application_setup;
- application_setup.Bind(
- mojo::InterfacePtrInfo<mojom::ApplicationSetup>(std::move(handle), 0u));
-
- interface_registry_.reset(new shell::InterfaceRegistry(nullptr));
- shell::mojom::InterfaceProviderPtr exposed_interfaces;
- interface_registry_->Bind(GetProxy(&exposed_interfaces));
-
- shell::mojom::InterfaceProviderPtr remote_interfaces;
- shell::mojom::InterfaceProviderRequest remote_interfaces_request =
- GetProxy(&remote_interfaces);
- remote_interfaces_.reset(
- new shell::InterfaceProvider(std::move(remote_interfaces)));
- application_setup->ExchangeInterfaceProviders(
- std::move(remote_interfaces_request),
- std::move(exposed_interfaces));
-}
-
-} // namespace content
« no previous file with comments | « content/child/mojo/mojo_application.h ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698