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

Unified Diff: mojo/shell/in_process_dynamic_service_runner.h

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 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 | « mojo/shell/filename_util.cc ('k') | mojo/shell/in_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/in_process_dynamic_service_runner.h
diff --git a/mojo/shell/in_process_dynamic_service_runner.h b/mojo/shell/in_process_dynamic_service_runner.h
deleted file mode 100644
index 9b93ded9131c78726610a05f19d0d20231c9d910..0000000000000000000000000000000000000000
--- a/mojo/shell/in_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_IN_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
-#define MOJO_SHELL_IN_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/scoped_native_library.h"
-#include "base/threading/simple_thread.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) on a separate thread (in the current process).
-class InProcessDynamicServiceRunner
- : public DynamicServiceRunner,
- public base::DelegateSimpleThread::Delegate {
- public:
- explicit InProcessDynamicServiceRunner(Context* context);
- ~InProcessDynamicServiceRunner() override;
-
- // |DynamicServiceRunner| method:
- void Start(const base::FilePath& app_path,
- ScopedMessagePipeHandle service_handle,
- const base::Closure& app_completed_callback) override;
-
- private:
- // |base::DelegateSimpleThread::Delegate| method:
- void Run() override;
-
- base::FilePath app_path_;
- ScopedMessagePipeHandle service_handle_;
- base::Callback<bool(void)> app_completed_callback_runner_;
-
- base::ScopedNativeLibrary app_library_;
- scoped_ptr<base::DelegateSimpleThread> thread_;
-
- DISALLOW_COPY_AND_ASSIGN(InProcessDynamicServiceRunner);
-};
-
-typedef DynamicServiceRunnerFactoryImpl<InProcessDynamicServiceRunner>
- InProcessDynamicServiceRunnerFactory;
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_IN_PROCESS_DYNAMIC_SERVICE_RUNNER_H_
« no previous file with comments | « mojo/shell/filename_util.cc ('k') | mojo/shell/in_process_dynamic_service_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698