Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / dom / ipc / ContentProcess.h
blob46d34098e7472a4bd70d8330c81928147dab66d1
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 http://mozilla.org/MPL/2.0/. */
7 #ifndef dom_tabs_ContentThread_h
8 #define dom_tabs_ContentThread_h 1
10 #include "mozilla/ipc/ProcessChild.h"
11 #include "ContentChild.h"
12 #include "nsXREDirProvider.h"
14 #if defined(XP_WIN)
15 # include "mozilla/mscom/ProcessRuntime.h"
16 #endif
18 namespace mozilla::dom {
20 /**
21 * ContentProcess is a singleton on the content process which represents
22 * the main thread where tab instances live.
24 class ContentProcess : public mozilla::ipc::ProcessChild {
25 using ProcessChild = mozilla::ipc::ProcessChild;
27 public:
28 ContentProcess(ProcessId aParentPid, const nsID& aMessageChannelId);
29 ~ContentProcess();
31 virtual bool Init(int aArgc, char* aArgv[]) override;
32 virtual void CleanUp() override;
34 private:
35 ContentChild mContent;
36 #if defined(XP_WIN)
37 // This object initializes and configures COM. This must happen prior to
38 // constructing mXREEmbed.
39 mozilla::mscom::ProcessRuntime mCOMRuntime;
40 #endif
41 nsXREDirProvider mDirProvider;
44 } // namespace mozilla::dom
46 #endif // ifndef dom_tabs_ContentThread_h