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

Unified Diff: content/browser/mojo/mojo_application_host.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/browser/mojo/constants.cc ('k') | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_application_host.h
diff --git a/content/browser/mojo/mojo_application_host.h b/content/browser/mojo/mojo_application_host.h
deleted file mode 100644
index 8f02d4ccaa7d5bb2c0ef67c1447837619d2483bb..0000000000000000000000000000000000000000
--- a/content/browser/mojo/mojo_application_host.h
+++ /dev/null
@@ -1,63 +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_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
-#define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
-
-#include <memory>
-#include <string>
-
-#include "base/macros.h"
-#include "build/build_config.h"
-#include "content/common/application_setup.mojom.h"
-#include "content/common/mojo/service_registry_impl.h"
-
-#if defined(OS_ANDROID)
-#include "content/public/browser/android/service_registry_android.h"
-#endif
-
-namespace IPC {
-class Sender;
-}
-
-namespace content {
-
-// MojoApplicationHost represents the code needed on the browser side to setup
-// a child process as a Mojo application. The child process should use the token
-// from GetToken() to initialize its MojoApplication. MojoApplicationHost makes
-// the ServiceRegistry interface available so that child-provided services can
-// be invoked.
-class CONTENT_EXPORT MojoApplicationHost {
- public:
- explicit MojoApplicationHost(const std::string& child_token);
- ~MojoApplicationHost();
-
- // Returns a token to pass to the child process to initialize its
- // MojoApplication.
- const std::string& GetToken() { return token_; }
-
- ServiceRegistry* service_registry() { return &service_registry_; }
-
-#if defined(OS_ANDROID)
- ServiceRegistryAndroid* service_registry_android() {
- return service_registry_android_.get();
- }
-#endif
-
- private:
- const std::string token_;
-
- std::unique_ptr<mojom::ApplicationSetup> application_setup_;
- ServiceRegistryImpl service_registry_;
-
-#if defined(OS_ANDROID)
- std::unique_ptr<ServiceRegistryAndroid> service_registry_android_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
« no previous file with comments | « content/browser/mojo/constants.cc ('k') | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698