1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef MOJO_SHELL_APP_CHILD_PROCESS_H_ 6#define MOJO_SHELL_APP_CHILD_PROCESS_H_ 7 8#include "base/macros.h" 9#include "mojo/shell/child_process.h" 10 11namespace mojo { 12namespace shell { 13 14// An implementation of |ChildProcess| for a |TYPE_APP| child process, which 15// runs a single app (loaded from the file system) on its main thread. 16class AppChildProcess : public ChildProcess { 17 public: 18 AppChildProcess(); 19 virtual ~AppChildProcess(); 20 21 virtual void Main() OVERRIDE; 22 23 private: 24 DISALLOW_COPY_AND_ASSIGN(AppChildProcess); 25}; 26 27} // namespace shell 28} // namespace mojo 29 30#endif // MOJO_SHELL_APP_CHILD_PROCESS_H_ 31