summaryrefslogtreecommitdiffstats
path: root/chromium/mojo/shell/app_child_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/mojo/shell/app_child_process.h')
-rw-r--r--chromium/mojo/shell/app_child_process.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/mojo/shell/app_child_process.h b/chromium/mojo/shell/app_child_process.h
new file mode 100644
index 00000000000..b5b1eb6660e
--- /dev/null
+++ b/chromium/mojo/shell/app_child_process.h
@@ -0,0 +1,30 @@
+// 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_APP_CHILD_PROCESS_H_
+#define MOJO_SHELL_APP_CHILD_PROCESS_H_
+
+#include "base/macros.h"
+#include "mojo/shell/child_process.h"
+
+namespace mojo {
+namespace shell {
+
+// An implementation of |ChildProcess| for a |TYPE_APP| child process, which
+// runs a single app (loaded from the file system) on its main thread.
+class AppChildProcess : public ChildProcess {
+ public:
+ AppChildProcess();
+ virtual ~AppChildProcess();
+
+ virtual void Main() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppChildProcess);
+};
+
+} // namespace shell
+} // namespace mojo
+
+#endif // MOJO_SHELL_APP_CHILD_PROCESS_H_