forked from mirrors/gecko-dev
This is the start of an actor which will be automatically instantiated in the parent and each content process which can be used to route most process-level IPC traffic needed by the extensions framework. It should allow the extensions framework to keep its IPC glue close to the code that uses it, and simplify matters for child-side code which needs to run in both parent and content processes. Differential Revision: https://phabricator.services.mozilla.com/D103212
30 lines
892 B
C++
30 lines
892 B
C++
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* 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/. */
|
|
|
|
include protocol PExtensions;
|
|
include protocol PWindowGlobal;
|
|
|
|
include DOMTypes;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
/**
|
|
* PInProcess is intended for use as an alternative actor manager to PContent
|
|
* for async actors which want to be used uniformly in both Content->Chrome and
|
|
* Chrome->Chrome circumstances.
|
|
*
|
|
* `mozilla::dom::InProcess{Parent, Child}::Singleton()` should be used to get
|
|
* an instance of this actor.
|
|
*/
|
|
async refcounted protocol PInProcess
|
|
{
|
|
manages PExtensions;
|
|
manages PWindowGlobal;
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|