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

Unified Diff: services/shell/background/background_shell.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « services/shell/background/DEPS ('k') | services/shell/background/background_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « services/shell/background/DEPS ('k') | services/shell/background/background_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698