2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
#ifndef dom_tabs_ContentThread_h
|
|
|
|
#define dom_tabs_ContentThread_h 1
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-05-14 03:44:53 +04:00
|
|
|
#include "mozilla/ipc/ProcessChild.h"
|
2010-02-01 06:19:21 +03:00
|
|
|
#include "mozilla/ipc/ScopedXREEmbed.h"
|
2010-07-19 22:33:33 +04:00
|
|
|
#include "ContentChild.h"
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2016-06-04 10:42:40 +03:00
|
|
|
#if defined(XP_WIN)
|
2019-02-14 21:56:20 +03:00
|
|
|
# include "mozilla/mscom/ProcessRuntime.h"
|
2016-06-04 10:42:40 +03:00
|
|
|
#endif
|
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
namespace mozilla {
|
2009-08-12 20:18:08 +04:00
|
|
|
namespace dom {
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2009-08-12 20:18:08 +04:00
|
|
|
/**
|
2010-07-19 22:33:33 +04:00
|
|
|
* ContentProcess is a singleton on the content process which represents
|
2010-05-14 03:44:53 +04:00
|
|
|
* the main thread where tab instances live.
|
2009-08-12 20:18:08 +04:00
|
|
|
*/
|
2010-07-19 22:33:33 +04:00
|
|
|
class ContentProcess : public mozilla::ipc::ProcessChild {
|
2016-01-05 12:59:30 +03:00
|
|
|
typedef mozilla::ipc::ProcessChild ProcessChild;
|
2010-05-14 03:44:53 +04:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
public:
|
2016-01-05 12:59:30 +03:00
|
|
|
explicit ContentProcess(ProcessId aParentPid) : ProcessChild(aParentPid) {}
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2020-03-06 12:11:40 +03:00
|
|
|
~ContentProcess() = default;
|
2010-05-14 03:44:53 +04:00
|
|
|
|
2017-02-05 08:52:38 +03:00
|
|
|
virtual bool Init(int aArgc, char* aArgv[]) override;
|
2016-01-05 12:59:30 +03:00
|
|
|
virtual void CleanUp() override;
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-05-14 03:44:53 +04:00
|
|
|
private:
|
2016-01-05 12:59:30 +03:00
|
|
|
ContentChild mContent;
|
|
|
|
mozilla::ipc::ScopedXREEmbed mXREEmbed;
|
2016-08-30 23:32:21 +03:00
|
|
|
|
2016-06-04 10:42:40 +03:00
|
|
|
#if defined(XP_WIN)
|
|
|
|
// This object initializes and configures COM.
|
2019-02-14 21:56:20 +03:00
|
|
|
mozilla::mscom::ProcessRuntime mCOMRuntime;
|
2016-06-04 10:42:40 +03:00
|
|
|
#endif
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2016-01-05 12:59:30 +03:00
|
|
|
DISALLOW_EVIL_CONSTRUCTORS(ContentProcess);
|
2009-07-01 00:39:22 +04:00
|
|
|
};
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
#endif // ifndef dom_tabs_ContentThread_h
|