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

Unified Diff: mojo/shell/out_of_process_dynamic_service_runner.h

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_application_loader.cc ('k') | mojo/shell/out_of_process_dynamic_service_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_dynamic_service_runner.h
diff --git a/mojo/shell/out_of_process_dynamic_service_runner.h b/mojo/shell/out_of_process_dynamic_service_runner.h
deleted file mode 100644
index 18e335f38451c524140e3641ee63210f136b498e..0000000000000000000000000000000000000000
--- a/mojo/shell/out_of_process_dynamic_service_runner.h
+++ /dev/null
@@ -1,52 +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_OUT_OF_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
-#define MOJO_SHELL_OUT_OF_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "mojo/shell/app_child_process.mojom.h"
-#include "mojo/shell/app_child_process_host.h"
-#include "mojo/shell/dynamic_service_runner.h"
-
-namespace mojo {
-namespace shell {
-
-// An implementation of |DynamicServiceRunner| that loads/runs the given app
-// (from the file system) in a separate process (of its own).
-class OutOfProcessDynamicServiceRunner
- : public DynamicServiceRunner,
- public AppChildControllerClient {
- public:
- explicit OutOfProcessDynamicServiceRunner(Context* context);
- ~OutOfProcessDynamicServiceRunner() override;
-
- // |DynamicServiceRunner| method:
- void Start(const base::FilePath& app_path,
- ScopedMessagePipeHandle service_handle,
- const base::Closure& app_completed_callback) override;
-
- private:
- // |AppChildControllerClient| method:
- void AppCompleted(int32_t result) override;
-
- Context* const context_;
-
- base::FilePath app_path_;
- base::Closure app_completed_callback_;
-
- scoped_ptr<AppChildProcessHost> app_child_process_host_;
-
- DISALLOW_COPY_AND_ASSIGN(OutOfProcessDynamicServiceRunner);
-};
-
-typedef DynamicServiceRunnerFactoryImpl<OutOfProcessDynamicServiceRunner>
- OutOfProcessDynamicServiceRunnerFactory;
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_OUT_OF_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
« no previous file with comments | « mojo/shell/network_application_loader.cc ('k') | mojo/shell/out_of_process_dynamic_service_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698