2020-04-30 19:49:50 +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
|
|
|
|
* 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_dom_ProcessActor_h
|
|
|
|
#define mozilla_dom_ProcessActor_h
|
|
|
|
|
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "mozilla/dom/BrowsingContext.h"
|
|
|
|
#include "mozilla/ErrorResult.h"
|
|
|
|
#include "nsIURI.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "mozilla/dom/JSActor.h"
|
2020-07-08 17:22:22 +03:00
|
|
|
#include "mozilla/dom/JSActorManager.h"
|
2020-04-30 19:49:50 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2020-07-08 17:22:22 +03:00
|
|
|
// Common base class for Content{Parent, Child} and InProcess{Parent, Child}.
|
|
|
|
class ProcessActor : public JSActorManager {
|
2020-04-30 19:49:50 +03:00
|
|
|
protected:
|
|
|
|
virtual ~ProcessActor() = default;
|
|
|
|
|
2020-07-08 17:22:22 +03:00
|
|
|
already_AddRefed<JSActorProtocol> MatchingJSActorProtocol(
|
|
|
|
JSActorService* aActorSvc, const nsACString& aName,
|
|
|
|
ErrorResult& aRv) final;
|
|
|
|
|
2020-07-08 23:15:59 +03:00
|
|
|
virtual const nsACString& GetRemoteType() const = 0;
|
2020-04-30 19:49:50 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_ProcessActor_h
|