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

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

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/child_thread_impl.cc ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/mojo/mojo_application.h
diff --git a/content/child/mojo/mojo_application.h b/content/child/mojo/mojo_application.h
deleted file mode 100644
index c1005b9373f6fe28dd7299255062d43056e955b9..0000000000000000000000000000000000000000
--- a/content/child/mojo/mojo_application.h
+++ /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.
-
-#ifndef CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
-#define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "services/shell/public/cpp/interface_provider.h"
-#include "services/shell/public/cpp/interface_registry.h"
-
-namespace content {
-
-// MojoApplication represents the code needed to setup a child process as a
-// Mojo application. Instantiate MojoApplication and call InitWithToken() with
-// a token passed from the process host. It makes the ServiceRegistry interface
-// available.
-class MojoApplication {
- public:
- MojoApplication();
- virtual ~MojoApplication();
-
- // Initializes this MojoApplicaiton with a message pipe obtained using
- // |token|.
- void InitWithToken(const std::string& token);
-
- shell::InterfaceRegistry* interface_registry() {
- return interface_registry_.get();
- }
- shell::InterfaceProvider* remote_interfaces() {
- return remote_interfaces_.get();
- }
-
- private:
- std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
- std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
-
- DISALLOW_COPY_AND_ASSIGN(MojoApplication);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698