1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 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 https://mozilla.org/MPL/2.0/. */ 6 7 #include "RemoteSandboxBrokerProcessChild.h" 8 9 #include "mozilla/ipc/IOThreadChild.h" 10 #include "mozilla/BackgroundHangMonitor.h" 11 12 using mozilla::ipc::IOThreadChild; 13 14 namespace mozilla { 15 RemoteSandboxBrokerProcessChild(ProcessId aParentPid)16RemoteSandboxBrokerProcessChild::RemoteSandboxBrokerProcessChild( 17 ProcessId aParentPid) 18 : ProcessChild(aParentPid) {} 19 ~RemoteSandboxBrokerProcessChild()20RemoteSandboxBrokerProcessChild::~RemoteSandboxBrokerProcessChild() {} 21 Init(int aArgc,char * aArgv[])22bool RemoteSandboxBrokerProcessChild::Init(int aArgc, char* aArgv[]) { 23 BackgroundHangMonitor::Startup(); 24 return mSandboxBrokerChild.Init(ParentPid(), 25 IOThreadChild::TakeInitialPort()); 26 } 27 CleanUp()28void RemoteSandboxBrokerProcessChild::CleanUp() { 29 BackgroundHangMonitor::Shutdown(); 30 } 31 32 } // namespace mozilla 33