1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2  * vim: sw=2 ts=4 et :
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef RemoteSandboxBrokerProcessParent_h_
8 #define RemoteSandboxBrokerProcessParent_h_
9 
10 #include "mozilla/Attributes.h"
11 #include "base/basictypes.h"
12 #include "base/file_path.h"
13 #include "base/thread.h"
14 #include "chrome/common/child_process_host.h"
15 #include "mozilla/ipc/GeckoChildProcessHost.h"
16 
17 class nsIRunnable;
18 
19 namespace mozilla {
20 
21 class RemoteSandboxBrokerProcessParent final
22     : public mozilla::ipc::GeckoChildProcessHost {
23  public:
24   RemoteSandboxBrokerProcessParent();
25 
26   RefPtr<ipc::ProcessHandlePromise> AsyncLaunch();
27 
CanShutdown()28   bool CanShutdown() override { return true; }
29 
30   using mozilla::ipc::GeckoChildProcessHost::GetChannel;
31   using mozilla::ipc::GeckoChildProcessHost::GetChildProcessHandle;
32 
33  private:
34   ~RemoteSandboxBrokerProcessParent();
35 
36   DISALLOW_COPY_AND_ASSIGN(RemoteSandboxBrokerProcessParent);
37 };
38 
39 }  // namespace mozilla
40 
41 #endif  // ifndef GMPProcessParent_h
42