1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_net_SocketProcessImpl_h
7 #define mozilla_net_SocketProcessImpl_h
9 #include "mozilla/ipc/ProcessChild.h"
10 #include "SocketProcessChild.h"
15 // This class owns the subprocess instance of socket child process.
16 // It is instantiated as a singleton in XRE_InitChildProcess.
17 class SocketProcessImpl final
: public mozilla::ipc::ProcessChild
{
19 typedef mozilla::ipc::ProcessChild ProcessChild
;
22 explicit SocketProcessImpl(ProcessId aParentPid
);
25 bool Init(int aArgc
, char* aArgv
[]) override
;
26 void CleanUp() override
;
29 SocketProcessChild mSocketProcessChild
;
30 DISALLOW_COPY_AND_ASSIGN(SocketProcessImpl
);
34 } // namespace mozilla
36 #endif // mozilla_net_SocketProcessImpl_h