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

Unified Diff: mojo/shell/child_process.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/app_child_process_host.cc ('k') | mojo/shell/child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/child_process.h
diff --git a/mojo/shell/child_process.h b/mojo/shell/child_process.h
deleted file mode 100644
index 81780a3f1e43f7c8b49a70c2051fad8385b30a93..0000000000000000000000000000000000000000
--- a/mojo/shell/child_process.h
+++ /dev/null
@@ -1,57 +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_CHILD_PROCESS_H_
-#define MOJO_SHELL_CHILD_PROCESS_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/edk/embedder/scoped_platform_handle.h"
-
-namespace base {
-class CommandLine;
-}
-
-namespace mojo {
-namespace shell {
-
-// A base class for child processes -- i.e., code that is actually run within
-// the child process. (Instances are manufactured by |Create()|.)
-class ChildProcess {
- public:
- enum Type {
- TYPE_TEST,
- // Hosts a single app (see app_child_process(_host).*).
- TYPE_APP
- };
-
- virtual ~ChildProcess();
-
- // Returns null if the command line doesn't indicate that this is a child
- // process. |main()| should call this, and if it returns non-null it should
- // call |Main()| (without a message loop on the current thread).
- static scoped_ptr<ChildProcess> Create(const base::CommandLine& command_line);
-
- // To be implemented by subclasses. This is the "entrypoint" for a child
- // process. Run with no message loop for the main thread.
- virtual void Main() = 0;
-
- protected:
- ChildProcess();
-
- embedder::ScopedPlatformHandle* platform_channel() {
- return &platform_channel_;
- }
-
- private:
- // Available in |Main()| (after a successful |Create()|).
- embedder::ScopedPlatformHandle platform_channel_;
-
- DISALLOW_COPY_AND_ASSIGN(ChildProcess);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_CHILD_PROCESS_H_
« no previous file with comments | « mojo/shell/app_child_process_host.cc ('k') | mojo/shell/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698