Bug 960774: Add ActorDestroy impl for all parent-side actors that don't have one. It will be required soon. r=bent

This commit is contained in:
Josh Aas 2014-05-02 13:44:13 -05:00
parent cf49cd697a
commit 23e8d13927
40 changed files with 181 additions and 2 deletions

View File

@ -26,8 +26,10 @@ public:
void DrawToCanvas(const nsIntSize& renderedSize,
const nsCString& aData);
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool Recv__delete__(const nsIntSize& renderedSize,
const nsCString& data);
const nsCString& data) MOZ_OVERRIDE;
private:
nsCOMPtr<nsICanvasRenderingContextInternal> mCanvas;

View File

@ -48,6 +48,12 @@ void DocumentRendererParent::DrawToCanvas(const nsIntSize& aSize,
mCanvas->Redraw(damageRect);
}
void
DocumentRendererParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005139
}
bool
DocumentRendererParent::Recv__delete__(const nsIntSize& renderedSize,
const nsCString& data)

View File

@ -18,6 +18,12 @@ SpeechSynthesisParent::~SpeechSynthesisParent()
MOZ_COUNT_DTOR(SpeechSynthesisParent);
}
void
SpeechSynthesisParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005141
}
bool
SpeechSynthesisParent::RecvReadVoiceList(InfallibleTArray<RemoteVoice>* aVoices,
InfallibleTArray<nsString>* aDefaults)
@ -81,6 +87,12 @@ SpeechSynthesisRequestParent::~SpeechSynthesisRequestParent()
MOZ_COUNT_DTOR(SpeechSynthesisRequestParent);
}
void
SpeechSynthesisRequestParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005141
}
bool
SpeechSynthesisRequestParent::RecvPause()
{

View File

@ -22,6 +22,8 @@ class SpeechSynthesisParent : public PSpeechSynthesisParent
friend class SpeechSynthesisRequestParent;
public:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
bool RecvReadVoiceList(InfallibleTArray<RemoteVoice>* aVoices,
InfallibleTArray<nsString>* aDefaults) MOZ_OVERRIDE;
@ -57,6 +59,8 @@ public:
protected:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool RecvPause() MOZ_OVERRIDE;
virtual bool RecvResume() MOZ_OVERRIDE;

View File

@ -25,6 +25,12 @@ FMRadioParent::~FMRadioParent()
IFMRadioService::Singleton()->RemoveObserver(this);
}
void
FMRadioParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005146
}
bool
FMRadioParent::RecvGetStatusInfo(StatusInfo* aStatusInfo)
{

View File

@ -22,6 +22,9 @@ public:
FMRadioParent();
~FMRadioParent();
virtual void
ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool
RecvGetStatusInfo(StatusInfo* aStatusInfo) MOZ_OVERRIDE;

View File

@ -2219,6 +2219,12 @@ IndexedDBDeleteDatabaseRequestParent::HandleEvent(nsIDOMEvent* aEvent)
return NS_OK;
}
void
IndexedDBDeleteDatabaseRequestParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005149
}
nsresult
IndexedDBDeleteDatabaseRequestParent::SetOpenRequest(
IDBOpenDBRequest* aOpenRequest)

View File

@ -863,6 +863,8 @@ protected:
IndexedDBDeleteDatabaseRequestParent(IDBFactory* aFactory);
virtual ~IndexedDBDeleteDatabaseRequestParent();
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
nsresult
SetOpenRequest(IDBOpenDBRequest* aOpenRequest);

View File

@ -474,6 +474,9 @@ public:
MOZ_ASSERT(NS_IsMainThread());
}
protected:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
private:
// This method is only called by the IPDL message machinery.
virtual bool
@ -2160,6 +2163,12 @@ InputStreamChild::Recv__delete__(const InputStreamParams& aParams,
return true;
}
void
InputStreamParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005150
}
bool
InputStreamParent::Recv__delete__(const InputStreamParams& aParams,
const OptionalFileDescriptorSet& aFDs)

View File

@ -309,6 +309,8 @@ public:
MemoryReportRequestParent();
virtual ~MemoryReportRequestParent();
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool Recv__delete__(const uint32_t& generation, const InfallibleTArray<MemoryReport>& report);
private:
ContentParent* Owner()
@ -322,6 +324,12 @@ MemoryReportRequestParent::MemoryReportRequestParent()
MOZ_COUNT_CTOR(MemoryReportRequestParent);
}
void
MemoryReportRequestParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005154
}
bool
MemoryReportRequestParent::Recv__delete__(const uint32_t& generation, const InfallibleTArray<MemoryReport>& childReports)
{

View File

@ -26,6 +26,12 @@ CrashReporterParent::AnnotateCrashReport(const nsCString& key,
#endif
}
void
CrashReporterParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005155
}
bool
CrashReporterParent::RecvAppendAppNotes(const nsCString& data)
{

View File

@ -77,6 +77,8 @@ public:
AnnotateCrashReport(const nsCString& key, const nsCString& data);
protected:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool
RecvAnnotateCrashReport(const nsCString& key, const nsCString& data) MOZ_OVERRIDE {
AnnotateCrashReport(key, data);

View File

@ -27,6 +27,12 @@ FileDescriptorSetParent::ForgetFileDescriptors(
mFileDescriptors.SwapElements(aFileDescriptors);
}
void
FileDescriptorSetParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005157
}
bool
FileDescriptorSetParent::RecvAddFileDescriptor(
const FileDescriptor& aFileDescriptor)

View File

@ -36,6 +36,8 @@ private:
FileDescriptorSetParent(const FileDescriptor& aFileDescriptor);
~FileDescriptorSetParent();
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool
RecvAddFileDescriptor(const FileDescriptor& aFileDescriptor) MOZ_OVERRIDE;

View File

@ -30,6 +30,12 @@ BrowserStreamParent::~BrowserStreamParent()
{
}
void
BrowserStreamParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005159
}
bool
BrowserStreamParent::AnswerNPN_RequestRead(const IPCByteRanges& ranges,
NPError* result)

View File

@ -26,6 +26,8 @@ public:
virtual bool IsBrowserStream() MOZ_OVERRIDE { return true; }
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool AnswerNPN_RequestRead(const IPCByteRanges& ranges,
NPError* result) MOZ_OVERRIDE;

View File

@ -17,6 +17,12 @@ using namespace mozilla::plugins::parent;
namespace mozilla {
namespace plugins {
void
PluginIdentifierParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005161
}
bool
PluginIdentifierParent::RecvRetain()
{

View File

@ -64,6 +64,8 @@ protected:
MOZ_COUNT_DTOR(PluginIdentifierParent);
}
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool RecvRetain() MOZ_OVERRIDE;
void AddTemporaryRef() {

View File

@ -56,6 +56,12 @@ using namespace mozilla::plugins;
using namespace mozilla::layers;
using namespace mozilla::gl;
void
StreamNotifyParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005162
}
bool
StreamNotifyParent::RecvRedirectNotifyResponse(const bool& allow)
{

View File

@ -643,6 +643,12 @@ PluginScriptableObjectParent::DropNPObject()
unused << SendUnprotect();
}
void
PluginScriptableObjectParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005163
}
bool
PluginScriptableObjectParent::AnswerHasMethod(PPluginIdentifierParent* aId,
bool* aHasMethod)

View File

@ -45,6 +45,9 @@ public:
void
InitializeLocal(NPObject* aObject);
virtual void
ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool
AnswerHasMethod(PPluginIdentifierParent* aId,
bool* aHasMethod) MOZ_OVERRIDE;

View File

@ -26,6 +26,12 @@ PluginStreamParent::PluginStreamParent(PluginInstanceParent* npp,
mStream = nullptr;
}
void
PluginStreamParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005166
}
bool
PluginStreamParent::AnswerNPN_Write(const Buffer& data, int32_t* written)
{

View File

@ -26,6 +26,8 @@ public:
virtual bool IsBrowserStream() MOZ_OVERRIDE { return false; }
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool AnswerNPN_Write(const Buffer& data, int32_t* written) MOZ_OVERRIDE;
virtual bool Answer__delete__(const NPError& reason, const bool& artificial) MOZ_OVERRIDE;

View File

@ -24,5 +24,11 @@ PluginSurfaceParent::~PluginSurfaceParent()
{
}
void
PluginSurfaceParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005167
}
}
}

View File

@ -27,6 +27,8 @@ public:
const bool transparent);
~PluginSurfaceParent();
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
gfxASurface* Surface() { return mSurface; }
private:

View File

@ -34,6 +34,8 @@ public:
mDestructionFlag = nullptr;
}
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
private:
bool RecvRedirectNotifyResponse(const bool& allow) MOZ_OVERRIDE;

View File

@ -378,6 +378,12 @@ DOMStorageDBParent::NewCache(const nsACString& aScope)
return new CacheParentBridge(this, aScope);
}
void
DOMStorageDBParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005169
}
bool
DOMStorageDBParent::RecvAsyncPreload(const nsCString& aScope, const bool& aPriority)
{

View File

@ -171,6 +171,7 @@ public:
private:
// IPC
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
bool RecvAsyncPreload(const nsCString& aScope, const bool& aPriority);
bool RecvPreload(const nsCString& aScope, const uint32_t& aAlreadyLoadedCount,
InfallibleTArray<nsString>* aKeys, InfallibleTArray<nsString>* aValues,

View File

@ -175,6 +175,12 @@ LayerTransactionParent::GetCompositorBackendType() const
}
/* virtual */
void
LayerTransactionParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005171
}
bool
LayerTransactionParent::RecvUpdateNoSwap(const InfallibleTArray<Edit>& cset,
const TargetConfig& targetConfig,

View File

@ -80,6 +80,8 @@ public:
virtual bool IsSameProcess() const MOZ_OVERRIDE;
protected:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool RecvUpdate(const EditArray& cset,
const TargetConfig& targetConfig,
const bool& isFirstPaint,

View File

@ -18,6 +18,12 @@ using mozilla::ipc::TestShellCommandParent;
using mozilla::ipc::PTestShellCommandParent;
using mozilla::dom::ContentParent;
void
TestShellParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005177
}
PTestShellCommandParent*
TestShellParent::AllocPTestShellCommandParent(const nsString& aCommand)
{

View File

@ -24,6 +24,8 @@ class TestShellCommandParent;
class TestShellParent : public PTestShellParent
{
public:
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
PTestShellCommandParent*
AllocPTestShellCommandParent(const nsString& aCommand);

View File

@ -61,5 +61,11 @@ ChannelDiverterParent::DivertTo(nsIStreamListener* newListener)
mDivertableChannelParent->DivertTo(newListener);
}
void
ChannelDiverterParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005179
}
} // namespace net
} // namespace mozilla

View File

@ -27,6 +27,9 @@ public:
bool Init(const ChannelDiverterArgs& aChannel);
void DivertTo(nsIStreamListener* newListener);
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
private:
nsRefPtr<ADivertableParentChannel> mDivertableChannelParent;
};

View File

@ -64,6 +64,12 @@ CookieServiceParent::~CookieServiceParent()
{
}
void
CookieServiceParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005181
}
bool
CookieServiceParent::RecvGetCookieString(const URIParams& aHost,
const bool& aIsForeign,

View File

@ -28,7 +28,9 @@ protected:
bool& aIsInBrowserElement,
bool& aIsPrivate);
virtual bool RecvGetCookieString(const URIParams& aHost,
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool RecvGetCookieString(const URIParams& aHost,
const bool& aIsForeign,
const bool& aFromHttp,
const IPC::SerializedLoadContext&

View File

@ -178,6 +178,12 @@ NeckoParent::CreateChannelLoadContext(PBrowserParent* aBrowser,
return nullptr;
}
void
NeckoParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005184
}
PHttpChannelParent*
NeckoParent::AllocPHttpChannelParent(PBrowserParent* aBrowser,
const SerializedLoadContext& aSerialized,

View File

@ -57,6 +57,8 @@ public:
const SerializedLoadContext& aSerialized,
nsCOMPtr<nsILoadContext> &aResult);
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual void
CloneManagees(ProtocolBase* aSource,
mozilla::ipc::ProtocolCloneContext* aCtx) MOZ_OVERRIDE;

View File

@ -17,6 +17,12 @@
namespace mozilla {
namespace net {
void
RemoteOpenFileParent::ActorDestroy(ActorDestroyReason aWhy)
{
// Implement me! Bug 1005186
}
bool
RemoteOpenFileParent::OpenSendCloseDelete()
{

View File

@ -22,6 +22,8 @@ public:
: mURI(aURI)
{}
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
bool OpenSendCloseDelete();
private: