Index: services/shell/background/background_shell.h |
diff --git a/services/shell/background/background_shell.h b/services/shell/background/background_shell.h |
deleted file mode 100644 |
index 363b88bd3d77caffea278093e3bd7b7d71aaf766..0000000000000000000000000000000000000000 |
--- a/services/shell/background/background_shell.h |
+++ /dev/null |
@@ -1,69 +0,0 @@ |
-// Copyright 2016 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 SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_ |
-#define SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_ |
- |
-#include <memory> |
-#include <vector> |
- |
-#include "base/macros.h" |
-#include "mojo/public/cpp/bindings/interface_request.h" |
-#include "services/catalog/store.h" |
-#include "services/shell/public/interfaces/service.mojom.h" |
- |
-namespace catalog { |
-class Store; |
-} |
- |
-namespace shell { |
- |
-class NativeRunnerDelegate; |
-class ServiceManager; |
- |
-// BackgroundShell starts up the mojo shell on a background thread, and |
-// destroys the thread in the destructor. Once created use CreateApplication() |
-// to obtain an InterfaceRequest for the Application. The InterfaceRequest can |
-// then be bound to an ApplicationImpl. |
-class BackgroundShell { |
- public: |
- struct InitParams { |
- InitParams(); |
- ~InitParams(); |
- |
- NativeRunnerDelegate* native_runner_delegate = nullptr; |
- std::unique_ptr<catalog::Store> catalog_store; |
- // If true the edk is initialized. |
- bool init_edk = true; |
- }; |
- |
- BackgroundShell(); |
- ~BackgroundShell(); |
- |
- // Starts the background shell. |command_line_switches| are additional |
- // switches applied to any processes spawned by this call. |
- void Init(std::unique_ptr<InitParams> init_params); |
- |
- // Obtains an InterfaceRequest for the specified name. |
- mojom::ServiceRequest CreateServiceRequest( |
- const std::string& name); |
- |
- // Use to do processing on the thread running the Service Manager. The |
- // callback is supplied a pointer to the Service Manager. The callback does |
- // *not* own the Service Manager. |
- using ServiceManagerThreadCallback = base::Callback<void(ServiceManager*)>; |
- void ExecuteOnServiceManagerThread( |
- const ServiceManagerThreadCallback& callback); |
- |
- private: |
- class MojoThread; |
- |
- std::unique_ptr<MojoThread> thread_; |
- |
- DISALLOW_COPY_AND_ASSIGN(BackgroundShell); |
-}; |
- |
-} // namespace shell |
- |
-#endif // SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_ |