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

Unified Diff: mojo/shell/runner/host/out_of_process_native_runner.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
Index: mojo/shell/runner/host/out_of_process_native_runner.h
diff --git a/mojo/shell/runner/host/out_of_process_native_runner.h b/mojo/shell/runner/host/out_of_process_native_runner.h
deleted file mode 100644
index 45d7cf8751778c2c125b23ae5de04119ec2e49eb..0000000000000000000000000000000000000000
--- a/mojo/shell/runner/host/out_of_process_native_runner.h
+++ /dev/null
@@ -1,76 +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 MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
-#define MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
-
-#include <stdint.h>
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/shell/native_runner.h"
-
-namespace base {
-class TaskRunner;
-}
-
-namespace mojo {
-namespace shell {
-
-class ChildProcessHost;
-class NativeRunnerDelegate;
-
-// An implementation of |NativeRunner| that loads/runs the given app (from the
-// file system) in a separate process (of its own).
-class OutOfProcessNativeRunner : public NativeRunner {
- public:
- OutOfProcessNativeRunner(base::TaskRunner* launch_process_runner,
- NativeRunnerDelegate* delegate);
- ~OutOfProcessNativeRunner() override;
-
- // NativeRunner:
- mojom::ShellClientPtr Start(
- const base::FilePath& app_path,
- const Identity& identity,
- bool start_sandboxed,
- const base::Callback<void(base::ProcessId)>& pid_available_callback,
- const base::Closure& app_completed_callback) override;
-
- private:
- void AppCompleted();
-
- base::TaskRunner* const launch_process_runner_;
- NativeRunnerDelegate* delegate_;
-
- base::FilePath app_path_;
- base::Closure app_completed_callback_;
-
- scoped_ptr<ChildProcessHost> child_process_host_;
-
- DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunner);
-};
-
-class OutOfProcessNativeRunnerFactory : public NativeRunnerFactory {
- public:
- OutOfProcessNativeRunnerFactory(base::TaskRunner* launch_process_runner,
- NativeRunnerDelegate* delegate);
- ~OutOfProcessNativeRunnerFactory() override;
-
- scoped_ptr<NativeRunner> Create(const base::FilePath& app_path) override;
-
- private:
- base::TaskRunner* const launch_process_runner_;
- NativeRunnerDelegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
« no previous file with comments | « mojo/shell/runner/host/native_application_support.cc ('k') | mojo/shell/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698