зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1174624 - Add PortIdentifier copy code in order to communicate with same process. r=baku
This commit is contained in:
Родитель
7422895e7a
Коммит
fa2b32d1a6
|
@ -210,7 +210,7 @@ public:
|
||||||
return Move(mTransferredPorts);
|
return Move(mTransferredPorts);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsTArray<MessagePortIdentifier>& PortIdentifiers()
|
nsTArray<MessagePortIdentifier>& PortIdentifiers() const
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mSupportsTransferring);
|
MOZ_ASSERT(mSupportsTransferring);
|
||||||
return mPortIdentifiers;
|
return mPortIdentifiers;
|
||||||
|
@ -310,7 +310,7 @@ protected:
|
||||||
// This array contains the identifiers of the MessagePorts. Based on these we
|
// This array contains the identifiers of the MessagePorts. Based on these we
|
||||||
// are able to reconnect the new transferred ports with the other
|
// are able to reconnect the new transferred ports with the other
|
||||||
// MessageChannel ports.
|
// MessageChannel ports.
|
||||||
nsTArray<MessagePortIdentifier> mPortIdentifiers;
|
mutable nsTArray<MessagePortIdentifier> mPortIdentifiers;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
nsCOMPtr<nsIThread> mCreationThread;
|
nsCOMPtr<nsIThread> mCreationThread;
|
||||||
|
|
|
@ -41,6 +41,8 @@ StructuredCloneData::Copy(const StructuredCloneData& aData)
|
||||||
NS_ENSURE_TRUE(mSharedData, false);
|
NS_ENSURE_TRUE(mSharedData, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PortIdentifiers().AppendElements(aData.PortIdentifiers());
|
||||||
|
|
||||||
MOZ_ASSERT(BlobImpls().IsEmpty());
|
MOZ_ASSERT(BlobImpls().IsEmpty());
|
||||||
BlobImpls().AppendElements(aData.BlobImpls());
|
BlobImpls().AppendElements(aData.BlobImpls());
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче