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

Unified Diff: mojo/shell/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/dynamic_application_loader_unittest.cc ('k') | mojo/shell/external_application_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/dynamic_service_runner.h
diff --git a/mojo/shell/dynamic_service_runner.h b/mojo/shell/dynamic_service_runner.h
deleted file mode 100644
index aa392f853097a47283e97f9b7dd43cc9274f6420..0000000000000000000000000000000000000000
--- a/mojo/shell/dynamic_service_runner.h
+++ /dev/null
@@ -1,56 +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_DYNAMIC_SERVICE_RUNNER_H_
-#define MOJO_SHELL_DYNAMIC_SERVICE_RUNNER_H_
-
-#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/system/core.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace mojo {
-namespace shell {
-
-class Context;
-
-// Abstraction for loading a service (from the file system) and running it (on
-// another thread or in a separate process).
-class DynamicServiceRunner {
- public:
- virtual ~DynamicServiceRunner() {}
-
- // Takes ownership of the file at |app_path|. Loads the app in that file and
- // runs it on some other thread/process. |app_completed_callback| is posted
- // (to the thread on which |Start()| was called) after |MojoMain()| completes.
- virtual void Start(const base::FilePath& app_path,
- ScopedMessagePipeHandle service_handle,
- const base::Closure& app_completed_callback) = 0;
-};
-
-class DynamicServiceRunnerFactory {
- public:
- virtual ~DynamicServiceRunnerFactory() {}
- virtual scoped_ptr<DynamicServiceRunner> Create(Context* context) = 0;
-};
-
-// A generic factory.
-template <class DynamicServiceRunnerImpl>
-class DynamicServiceRunnerFactoryImpl : public DynamicServiceRunnerFactory {
- public:
- DynamicServiceRunnerFactoryImpl() {}
- virtual ~DynamicServiceRunnerFactoryImpl() {}
- virtual scoped_ptr<DynamicServiceRunner> Create(Context* context) override {
- return scoped_ptr<DynamicServiceRunner>(
- new DynamicServiceRunnerImpl(context));
- }
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_DYNAMIC_SERVICE_RUNNER_H_
« no previous file with comments | « mojo/shell/dynamic_application_loader_unittest.cc ('k') | mojo/shell/external_application_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698