mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
fd79887e5f
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
37 lines
962 B
C++
37 lines
962 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
|
|
/* 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/. */
|
|
|
|
#ifndef mozilla_extensions_ExtensionsChild_h
|
|
#define mozilla_extensions_ExtensionsChild_h
|
|
|
|
#include "mozilla/extensions/PExtensionsChild.h"
|
|
#include "nsISupportsImpl.h"
|
|
|
|
namespace mozilla {
|
|
namespace extensions {
|
|
|
|
class ExtensionsChild final : public nsISupports, public PExtensionsChild {
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
|
|
static already_AddRefed<ExtensionsChild> GetSingleton();
|
|
|
|
static ExtensionsChild& Get();
|
|
|
|
private:
|
|
ExtensionsChild() = default;
|
|
~ExtensionsChild() = default;
|
|
|
|
void Init();
|
|
|
|
protected:
|
|
void ActorDestroy(ActorDestroyReason aWhy) override;
|
|
};
|
|
|
|
} // namespace extensions
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_extensions_ExtensionsChild_h
|