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

Unified Diff: content/browser/mojo/mojo_application_host.h

Issue 2109483002: Remove MojoApplication[Host] & ApplicationSetup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@u2
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 | « no previous file | 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 59393ee740d1e77268ee0e533bf39cc9e798a561..0000000000000000000000000000000000000000
--- a/content/browser/mojo/mojo_application_host.h
+++ /dev/null
@@ -1,71 +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/content_export.h"
-#include "services/shell/public/cpp/interface_provider.h"
-#include "services/shell/public/cpp/interface_registry.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 InterfaceRegistry interface available so that child-provided interfaces
-// can be bound.
-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_; }
-
- shell::InterfaceRegistry* interface_registry() {
- return interface_registry_.get();
- }
- shell::InterfaceProvider* remote_interfaces() {
- return remote_interfaces_.get();
- }
-
-#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_;
- std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
- std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
-
-#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 | « no previous file | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698