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

Unified Diff: mojo/shell/out_of_process_native_runner.h

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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/network_fetcher.cc ('k') | mojo/shell/out_of_process_native_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/out_of_process_native_runner.h
diff --git a/mojo/shell/out_of_process_native_runner.h b/mojo/shell/out_of_process_native_runner.h
deleted file mode 100644
index 23bba66fbc377a841750912403f5e428f5162cc1..0000000000000000000000000000000000000000
--- a/mojo/shell/out_of_process_native_runner.h
+++ /dev/null
@@ -1,65 +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 SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
-#define SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/error_handler.h"
-#include "mojo/shell/application_manager/native_runner.h"
-
-namespace mojo {
-namespace shell {
-
-class ChildProcessHost;
-class Context;
-
-// 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:
- explicit OutOfProcessNativeRunner(Context* context);
- ~OutOfProcessNativeRunner() override;
-
- // |NativeRunner| method:
- void Start(const base::FilePath& app_path,
- NativeApplicationCleanup cleanup,
- InterfaceRequest<Application> application_request,
- const base::Closure& app_completed_callback) override;
-
- private:
- // |ChildController::StartApp()| callback:
- void AppCompleted(int32_t result);
-
- Context* const context_;
-
- 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:
- explicit OutOfProcessNativeRunnerFactory(Context* context)
- : context_(context) {}
- ~OutOfProcessNativeRunnerFactory() override {}
-
- scoped_ptr<NativeRunner> Create(const Options& options) override;
-
- private:
- Context* const context_;
-
- DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
« no previous file with comments | « mojo/shell/network_fetcher.cc ('k') | mojo/shell/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698