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"
15 # include "mozilla/mscom/ProcessRuntime.h"
18 namespace mozilla::dom
{
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
;
28 ContentProcess(ProcessId aParentPid
, const nsID
& aMessageChannelId
);
31 virtual bool Init(int aArgc
, char* aArgv
[]) override
;
32 virtual void CleanUp() override
;
35 ContentChild mContent
;
37 // This object initializes and configures COM. This must happen prior to
38 // constructing mXREEmbed.
39 mozilla::mscom::ProcessRuntime mCOMRuntime
;
41 nsXREDirProvider mDirProvider
;
44 } // namespace mozilla::dom
46 #endif // ifndef dom_tabs_ContentThread_h