replaced by .editorconfig # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D287843
62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
/* 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 dom_base_MessageManagerCallback_h_
|
|
#define dom_base_MessageManagerCallback_h_
|
|
|
|
#include "mozilla/NotNull.h"
|
|
#include "mozilla/RefPtr.h"
|
|
#include "nsError.h"
|
|
#include "nsStringFwd.h"
|
|
#include "nsTArrayForwardDeclare.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class ErrorResult;
|
|
|
|
namespace dom {
|
|
|
|
class ContentChild;
|
|
class ContentParent;
|
|
class ProcessMessageManager;
|
|
|
|
namespace ipc {
|
|
|
|
class StructuredCloneData;
|
|
|
|
class MessageManagerCallback {
|
|
public:
|
|
virtual ~MessageManagerCallback() = default;
|
|
|
|
virtual bool DoLoadMessageManagerScript(const nsAString& aURL,
|
|
bool aRunInGlobalScope) {
|
|
return true;
|
|
}
|
|
|
|
virtual bool DoSendBlockingMessage(
|
|
const nsAString& aMessage, NotNull<ipc::StructuredCloneData*> aData,
|
|
nsTArray<NotNull<RefPtr<ipc::StructuredCloneData>>>* aRetVal) {
|
|
return true;
|
|
}
|
|
|
|
virtual nsresult DoSendAsyncMessage(
|
|
const nsAString& aMessage, NotNull<ipc::StructuredCloneData*> aData) {
|
|
return NS_OK;
|
|
}
|
|
|
|
virtual mozilla::dom::ProcessMessageManager* GetProcessMessageManager()
|
|
const {
|
|
return nullptr;
|
|
}
|
|
|
|
virtual void DoGetRemoteType(nsACString& aRemoteType,
|
|
ErrorResult& aError) const;
|
|
};
|
|
|
|
} // namespace ipc
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif
|