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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 | « mojo/shell/background/DEPS ('k') | mojo/shell/background/background_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/background_shell.h
diff --git a/mojo/shell/background/background_shell.h b/mojo/shell/background/background_shell.h
deleted file mode 100644
index 070b5b1ba55d2a8e42551989b7b3122d345aeda6..0000000000000000000000000000000000000000
--- a/mojo/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 MOJO_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
-#define MOJO_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/services/catalog/store.h"
-#include "mojo/shell/public/interfaces/shell_client.mojom.h"
-
-namespace catalog {
-class Store;
-}
-
-namespace mojo {
-namespace shell {
-
-class NativeRunnerDelegate;
-class Shell;
-
-// 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;
- scoped_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(scoped_ptr<InitParams> init_params);
-
- // Obtains an InterfaceRequest for the specified name.
- mojom::ShellClientRequest CreateShellClientRequest(
- const std::string& name);
-
- // Use to do processing on the thread running the shell. The callback is
- // supplied a pointer to the Shell. The callback does *not* own the Shell.
- using ShellThreadCallback = base::Callback<void(Shell*)>;
- void ExecuteOnShellThread(const ShellThreadCallback& callback);
-
- private:
- class MojoThread;
-
- scoped_ptr<MojoThread> thread_;
-
- DISALLOW_COPY_AND_ASSIGN(BackgroundShell);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
« no previous file with comments | « mojo/shell/background/DEPS ('k') | mojo/shell/background/background_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698