mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1121673: Use move references in IPDL. r=bent
This commit is contained in:
parent
7ac0fa064b
commit
591c252165
@ -474,7 +474,7 @@ RemotePermissionRequest::DoAllow(JS::HandleValue aChoices)
|
||||
// PContentPermissionRequestChild
|
||||
bool
|
||||
RemotePermissionRequest::Recv__delete__(const bool& aAllow,
|
||||
const nsTArray<PermissionChoice>& aChoices)
|
||||
InfallibleTArray<PermissionChoice>&& aChoices)
|
||||
{
|
||||
if (aAllow && mWindow->IsCurrentInnerWindow()) {
|
||||
// Use 'undefined' if no choice is provided.
|
||||
|
@ -117,7 +117,7 @@ public:
|
||||
|
||||
// It will be called when prompt dismissed.
|
||||
virtual bool Recv__delete__(const bool &aAllow,
|
||||
const nsTArray<PermissionChoice>& aChoices) MOZ_OVERRIDE;
|
||||
InfallibleTArray<PermissionChoice>&& aChoices) MOZ_OVERRIDE;
|
||||
|
||||
void IPDLAddRef()
|
||||
{
|
||||
@ -146,3 +146,4 @@ private:
|
||||
};
|
||||
|
||||
#endif // nsContentPermissionHelper_h
|
||||
|
||||
|
@ -3036,7 +3036,7 @@ private:
|
||||
virtual bool
|
||||
RecvPBackgroundIDBTransactionConstructor(
|
||||
PBackgroundIDBTransactionParent* aActor,
|
||||
const nsTArray<nsString>& aObjectStoreNames,
|
||||
InfallibleTArray<nsString>&& aObjectStoreNames,
|
||||
const Mode& aMode)
|
||||
MOZ_OVERRIDE;
|
||||
|
||||
@ -6526,7 +6526,7 @@ Database::AllocPBackgroundIDBTransactionParent(
|
||||
bool
|
||||
Database::RecvPBackgroundIDBTransactionConstructor(
|
||||
PBackgroundIDBTransactionParent* aActor,
|
||||
const nsTArray<nsString>& aObjectStoreNames,
|
||||
InfallibleTArray<nsString>&& aObjectStoreNames,
|
||||
const Mode& aMode)
|
||||
{
|
||||
AssertIsOnBackgroundThread();
|
||||
|
@ -66,10 +66,10 @@ ContentBridgeChild::DeferredDestroy()
|
||||
bool
|
||||
ContentBridgeChild::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
return nsIContentChild::RecvAsyncMessage(aMsg, aData, aCpows, aPrincipal);
|
||||
return nsIContentChild::RecvAsyncMessage(aMsg, aData, Move(aCpows), aPrincipal);
|
||||
}
|
||||
|
||||
PBlobChild*
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
|
||||
virtual PBlobChild*
|
||||
|
@ -62,20 +62,22 @@ ContentBridgeParent::DeferredDestroy()
|
||||
bool
|
||||
ContentBridgeParent::RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals)
|
||||
{
|
||||
return nsIContentParent::RecvSyncMessage(aMsg, aData, aCpows, aPrincipal, aRetvals);
|
||||
return nsIContentParent::RecvSyncMessage(aMsg, aData, Move(aCpows),
|
||||
aPrincipal, aRetvals);
|
||||
}
|
||||
|
||||
bool
|
||||
ContentBridgeParent::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
return nsIContentParent::RecvAsyncMessage(aMsg, aData, aCpows, aPrincipal);
|
||||
return nsIContentParent::RecvAsyncMessage(aMsg, aData, Move(aCpows),
|
||||
aPrincipal);
|
||||
}
|
||||
|
||||
PBlobParent*
|
||||
|
@ -75,12 +75,12 @@ protected:
|
||||
protected:
|
||||
virtual bool RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals) MOZ_OVERRIDE;
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
|
||||
virtual jsipc::PJavaScriptParent* AllocPJavaScriptParent() MOZ_OVERRIDE;
|
||||
|
@ -1720,9 +1720,9 @@ ContentChild::DeallocPSpeechSynthesisChild(PSpeechSynthesisChild* aActor)
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvRegisterChrome(const InfallibleTArray<ChromePackage>& packages,
|
||||
const InfallibleTArray<ResourceMapping>& resources,
|
||||
const InfallibleTArray<OverrideMapping>& overrides,
|
||||
ContentChild::RecvRegisterChrome(InfallibleTArray<ChromePackage>&& packages,
|
||||
InfallibleTArray<ResourceMapping>&& resources,
|
||||
InfallibleTArray<OverrideMapping>&& overrides,
|
||||
const nsCString& locale,
|
||||
const bool& reset)
|
||||
{
|
||||
@ -1905,7 +1905,7 @@ ContentChild::RecvNotifyVisited(const URIParams& aURI)
|
||||
bool
|
||||
ContentChild::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
nsRefPtr<nsFrameMessageManager> cpm = nsFrameMessageManager::sChildProcessManager;
|
||||
@ -1942,7 +1942,7 @@ ContentChild::RecvGeolocationError(const uint16_t& errorCode)
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvUpdateDictionaryList(const InfallibleTArray<nsString>& aDictionaries)
|
||||
ContentChild::RecvUpdateDictionaryList(InfallibleTArray<nsString>&& aDictionaries)
|
||||
{
|
||||
mAvailableDictionaries = aDictionaries;
|
||||
mozInlineSpellChecker::UpdateCanEnableInlineSpellChecking();
|
||||
@ -2443,8 +2443,8 @@ ContentChild::RecvOnAppThemeChanged()
|
||||
bool
|
||||
ContentChild::RecvStartProfiler(const uint32_t& aEntries,
|
||||
const double& aInterval,
|
||||
const nsTArray<nsCString>& aFeatures,
|
||||
const nsTArray<nsCString>& aThreadNameFilters)
|
||||
nsTArray<nsCString>&& aFeatures,
|
||||
nsTArray<nsCString>&& aThreadNameFilters)
|
||||
{
|
||||
nsTArray<const char*> featureArray;
|
||||
for (size_t i = 0; i < aFeatures.Length(); ++i) {
|
||||
|
@ -276,9 +276,9 @@ public:
|
||||
virtual PSpeechSynthesisChild* AllocPSpeechSynthesisChild() MOZ_OVERRIDE;
|
||||
virtual bool DeallocPSpeechSynthesisChild(PSpeechSynthesisChild* aActor) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvRegisterChrome(const InfallibleTArray<ChromePackage>& packages,
|
||||
const InfallibleTArray<ResourceMapping>& resources,
|
||||
const InfallibleTArray<OverrideMapping>& overrides,
|
||||
virtual bool RecvRegisterChrome(InfallibleTArray<ChromePackage>&& packages,
|
||||
InfallibleTArray<ResourceMapping>&& resources,
|
||||
InfallibleTArray<OverrideMapping>&& overrides,
|
||||
const nsCString& locale,
|
||||
const bool& reset) MOZ_OVERRIDE;
|
||||
virtual bool RecvRegisterChromeItem(const ChromeRegistryItem& item) MOZ_OVERRIDE;
|
||||
@ -306,14 +306,14 @@ public:
|
||||
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvGeolocationUpdate(const GeoPosition& somewhere) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvGeolocationError(const uint16_t& errorCode) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvUpdateDictionaryList(const InfallibleTArray<nsString>& aDictionaries) MOZ_OVERRIDE;
|
||||
virtual bool RecvUpdateDictionaryList(InfallibleTArray<nsString>&& aDictionaries) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvAddPermission(const IPC::Permission& permission) MOZ_OVERRIDE;
|
||||
|
||||
@ -377,8 +377,8 @@ public:
|
||||
|
||||
virtual bool RecvStartProfiler(const uint32_t& aEntries,
|
||||
const double& aInterval,
|
||||
const nsTArray<nsCString>& aFeatures,
|
||||
const nsTArray<nsCString>& aThreadNameFilters) MOZ_OVERRIDE;
|
||||
nsTArray<nsCString>&& aFeatures,
|
||||
nsTArray<nsCString>&& aThreadNameFilters) MOZ_OVERRIDE;
|
||||
virtual bool RecvStopProfiler() MOZ_OVERRIDE;
|
||||
virtual bool RecvGetProfile(nsCString* aProfile) MOZ_OVERRIDE;
|
||||
virtual bool RecvShutdown() MOZ_OVERRIDE;
|
||||
|
@ -388,7 +388,8 @@ public:
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool Recv__delete__(const uint32_t& aGeneration, const InfallibleTArray<MemoryReport>& aReport) MOZ_OVERRIDE;
|
||||
virtual bool Recv__delete__(const uint32_t& aGeneration, InfallibleTArray<MemoryReport>&& aReport) MOZ_OVERRIDE;
|
||||
|
||||
private:
|
||||
ContentParent* Owner()
|
||||
{
|
||||
@ -408,7 +409,8 @@ MemoryReportRequestParent::ActorDestroy(ActorDestroyReason aWhy)
|
||||
}
|
||||
|
||||
bool
|
||||
MemoryReportRequestParent::Recv__delete__(const uint32_t& generation, const InfallibleTArray<MemoryReport>& childReports)
|
||||
MemoryReportRequestParent::Recv__delete__(const uint32_t& generation,
|
||||
nsTArray<MemoryReport>&& childReports)
|
||||
{
|
||||
nsRefPtr<nsMemoryReporterManager> mgr =
|
||||
nsMemoryReporterManager::GetOrCreate();
|
||||
@ -2140,7 +2142,7 @@ FindFdProtocolFdMapping(const nsTArray<ProtocolFdMapping>& aFds,
|
||||
ContentParent::ContentParent(ContentParent* aTemplate,
|
||||
const nsAString& aAppManifestURL,
|
||||
base::ProcessHandle aPid,
|
||||
const nsTArray<ProtocolFdMapping>& aFds)
|
||||
InfallibleTArray<ProtocolFdMapping>&& aFds)
|
||||
: mAppManifestURL(aAppManifestURL)
|
||||
, mIsForBrowser(false)
|
||||
, mIsNuwaProcess(false)
|
||||
@ -2714,7 +2716,7 @@ ContentParent::RecvNuwaWaitForFreeze()
|
||||
|
||||
bool
|
||||
ContentParent::RecvAddNewProcess(const uint32_t& aPid,
|
||||
const InfallibleTArray<ProtocolFdMapping>& aFds)
|
||||
InfallibleTArray<ProtocolFdMapping>&& aFds)
|
||||
{
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
if (!IsNuwaProcess()) {
|
||||
@ -2730,7 +2732,7 @@ ContentParent::RecvAddNewProcess(const uint32_t& aPid,
|
||||
content = new ContentParent(this,
|
||||
MAGIC_PREALLOCATED_APP_MANIFEST_URL,
|
||||
aPid,
|
||||
aFds);
|
||||
Move(aFds));
|
||||
content->Init();
|
||||
|
||||
size_t numNuwaPrefUpdates = sNuwaPrefUpdates ?
|
||||
@ -3902,32 +3904,33 @@ ContentParent::RecvCloseAlert(const nsString& aName,
|
||||
bool
|
||||
ContentParent::RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals)
|
||||
{
|
||||
return nsIContentParent::RecvSyncMessage(aMsg, aData, aCpows, aPrincipal,
|
||||
aRetvals);
|
||||
return nsIContentParent::RecvSyncMessage(aMsg, aData, Move(aCpows),
|
||||
aPrincipal, aRetvals);
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvRpcMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals)
|
||||
{
|
||||
return nsIContentParent::RecvRpcMessage(aMsg, aData, aCpows, aPrincipal,
|
||||
return nsIContentParent::RecvRpcMessage(aMsg, aData, Move(aCpows), aPrincipal,
|
||||
aRetvals);
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
return nsIContentParent::RecvAsyncMessage(aMsg, aData, aCpows, aPrincipal);
|
||||
return nsIContentParent::RecvAsyncMessage(aMsg, aData, Move(aCpows),
|
||||
aPrincipal);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -394,7 +394,7 @@ private:
|
||||
ContentParent(ContentParent* aTemplate,
|
||||
const nsAString& aAppManifestURL,
|
||||
base::ProcessHandle aPid,
|
||||
const nsTArray<ProtocolFdMapping>& aFds);
|
||||
InfallibleTArray<ProtocolFdMapping>&& aFds);
|
||||
#endif
|
||||
|
||||
// The common initialization for the constructors.
|
||||
@ -642,17 +642,17 @@ private:
|
||||
|
||||
virtual bool RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals) MOZ_OVERRIDE;
|
||||
virtual bool RecvRpcMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals) MOZ_OVERRIDE;
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvFilePathUpdateNotify(const nsString& aType,
|
||||
@ -713,7 +713,7 @@ private:
|
||||
virtual bool RecvNuwaWaitForFreeze() MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvAddNewProcess(const uint32_t& aPid,
|
||||
const InfallibleTArray<ProtocolFdMapping>& aFds) MOZ_OVERRIDE;
|
||||
InfallibleTArray<ProtocolFdMapping>&& aFds) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvCreateFakeVolume(const nsString& fsName, const nsString& mountPoint) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -201,8 +201,8 @@ FilePickerParent::RecvOpen(const int16_t& aSelectedType,
|
||||
const bool& aAddToRecentDocs,
|
||||
const nsString& aDefaultFile,
|
||||
const nsString& aDefaultExtension,
|
||||
const InfallibleTArray<nsString>& aFilters,
|
||||
const InfallibleTArray<nsString>& aFilterNames,
|
||||
InfallibleTArray<nsString>&& aFilters,
|
||||
InfallibleTArray<nsString>&& aFilterNames,
|
||||
const nsString& aDisplayDirectory)
|
||||
{
|
||||
if (!CreateFilePicker()) {
|
||||
|
@ -35,8 +35,8 @@ class FilePickerParent : public PFilePickerParent
|
||||
const bool& aAddToRecentDocs,
|
||||
const nsString& aDefaultFile,
|
||||
const nsString& aDefaultExtension,
|
||||
const InfallibleTArray<nsString>& aFilters,
|
||||
const InfallibleTArray<nsString>& aFilterNames,
|
||||
InfallibleTArray<nsString>&& aFilters,
|
||||
InfallibleTArray<nsString>&& aFilterNames,
|
||||
const nsString& aDisplayDirectory) MOZ_OVERRIDE;
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
||||
|
@ -2978,7 +2978,7 @@ TabChild::RecvLoadRemoteScript(const nsString& aURL, const bool& aRunInGlobalSco
|
||||
bool
|
||||
TabChild::RecvAsyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
if (mTabChildGlobal) {
|
||||
|
@ -375,7 +375,7 @@ public:
|
||||
const bool& aRunInGlobalScope) MOZ_OVERRIDE;
|
||||
virtual bool RecvAsyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvAppOfflineStatus(const uint32_t& aId, const bool& aOffline) MOZ_OVERRIDE;
|
||||
|
@ -1287,7 +1287,7 @@ TabParent::TryCapture(const WidgetGUIEvent& aEvent)
|
||||
bool
|
||||
TabParent::RecvSyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aJSONRetVal)
|
||||
{
|
||||
@ -1309,7 +1309,7 @@ TabParent::RecvSyncMessage(const nsString& aMessage,
|
||||
bool
|
||||
TabParent::RecvRpcMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aJSONRetVal)
|
||||
{
|
||||
@ -1331,7 +1331,7 @@ TabParent::RecvRpcMessage(const nsString& aMessage,
|
||||
bool
|
||||
TabParent::RecvAsyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
// FIXME Permission check for TabParent in Content process
|
||||
@ -1500,7 +1500,7 @@ TabParent::RecvNotifyIMETextChange(const uint32_t& aStart,
|
||||
bool
|
||||
TabParent::RecvNotifyIMESelectedCompositionRect(
|
||||
const uint32_t& aOffset,
|
||||
const InfallibleTArray<nsIntRect>& aRects,
|
||||
InfallibleTArray<nsIntRect>&& aRects,
|
||||
const uint32_t& aCaretOffset,
|
||||
const nsIntRect& aCaretRect)
|
||||
{
|
||||
@ -1581,7 +1581,7 @@ TabParent::RecvNotifyIMEEditorRect(const nsIntRect& aRect)
|
||||
bool
|
||||
TabParent::RecvNotifyIMEPositionChange(
|
||||
const nsIntRect& aEditorRect,
|
||||
const InfallibleTArray<nsIntRect>& aCompositionRects,
|
||||
InfallibleTArray<nsIntRect>&& aCompositionRects,
|
||||
const nsIntRect& aCaretRect)
|
||||
{
|
||||
mIMEEditorRect = aEditorRect;
|
||||
@ -1625,8 +1625,8 @@ TabParent::RecvRequestFocus(const bool& aCanRaise)
|
||||
|
||||
bool
|
||||
TabParent::RecvEnableDisableCommands(const nsString& aAction,
|
||||
const nsTArray<nsCString>& aEnabledCommands,
|
||||
const nsTArray<nsCString>& aDisabledCommands)
|
||||
nsTArray<nsCString>&& aEnabledCommands,
|
||||
nsTArray<nsCString>&& aDisabledCommands)
|
||||
{
|
||||
nsCOMPtr<nsIRemoteBrowser> remoteBrowser = do_QueryInterface(mFrameElement);
|
||||
if (remoteBrowser) {
|
||||
@ -2352,7 +2352,7 @@ TabParent::RecvContentReceivedInputBlock(const ScrollableLayerGuid& aGuid,
|
||||
|
||||
bool
|
||||
TabParent::RecvSetTargetAPZC(const uint64_t& aInputBlockId,
|
||||
const nsTArray<ScrollableLayerGuid>& aTargets)
|
||||
nsTArray<ScrollableLayerGuid>&& aTargets)
|
||||
{
|
||||
if (RenderFrameParent* rfp = GetRenderFrame()) {
|
||||
rfp->SetTargetAPZC(aInputBlockId, aTargets);
|
||||
|
@ -147,17 +147,17 @@ public:
|
||||
InfallibleTArray<FrameScriptInfo>* aFrameScripts) MOZ_OVERRIDE;
|
||||
virtual bool RecvSyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aJSONRetVal) MOZ_OVERRIDE;
|
||||
virtual bool RecvRpcMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aJSONRetVal) MOZ_OVERRIDE;
|
||||
virtual bool RecvAsyncMessage(const nsString& aMessage,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
||||
virtual bool RecvNotifyIMEFocus(const bool& aFocus,
|
||||
nsIMEUpdatePreference* aPreference,
|
||||
@ -168,7 +168,7 @@ public:
|
||||
const bool& aCausedByComposition) MOZ_OVERRIDE;
|
||||
virtual bool RecvNotifyIMESelectedCompositionRect(
|
||||
const uint32_t& aOffset,
|
||||
const InfallibleTArray<nsIntRect>& aRects,
|
||||
InfallibleTArray<nsIntRect>&& aRects,
|
||||
const uint32_t& aCaretOffset,
|
||||
const nsIntRect& aCaretRect) MOZ_OVERRIDE;
|
||||
virtual bool RecvNotifyIMESelection(const uint32_t& aSeqno,
|
||||
@ -182,7 +182,7 @@ public:
|
||||
virtual bool RecvNotifyIMEEditorRect(const nsIntRect& aRect) MOZ_OVERRIDE;
|
||||
virtual bool RecvNotifyIMEPositionChange(
|
||||
const nsIntRect& aEditoRect,
|
||||
const InfallibleTArray<nsIntRect>& aCompositionRects,
|
||||
InfallibleTArray<nsIntRect>&& aCompositionRects,
|
||||
const nsIntRect& aCaretRect) MOZ_OVERRIDE;
|
||||
virtual bool RecvEndIMEComposition(const bool& aCancel,
|
||||
nsString* aComposition) MOZ_OVERRIDE;
|
||||
@ -198,8 +198,8 @@ public:
|
||||
const int32_t& aFocusChange) MOZ_OVERRIDE;
|
||||
virtual bool RecvRequestFocus(const bool& aCanRaise) MOZ_OVERRIDE;
|
||||
virtual bool RecvEnableDisableCommands(const nsString& aAction,
|
||||
const nsTArray<nsCString>& aEnabledCommands,
|
||||
const nsTArray<nsCString>& aDisabledCommands) MOZ_OVERRIDE;
|
||||
nsTArray<nsCString>&& aEnabledCommands,
|
||||
nsTArray<nsCString>&& aDisabledCommands) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetCursor(const uint32_t& aValue, const bool& aForce) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetBackgroundColor(const nscolor& aValue) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetStatus(const uint32_t& aType, const nsString& aStatus) MOZ_OVERRIDE;
|
||||
@ -220,7 +220,7 @@ public:
|
||||
const uint64_t& aInputBlockId,
|
||||
const bool& aPreventDefault) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetTargetAPZC(const uint64_t& aInputBlockId,
|
||||
const nsTArray<ScrollableLayerGuid>& aTargets) MOZ_OVERRIDE;
|
||||
nsTArray<ScrollableLayerGuid>&& aTargets) MOZ_OVERRIDE;
|
||||
|
||||
virtual PColorPickerParent*
|
||||
AllocPColorPickerParent(const nsString& aTitle, const nsString& aInitialColor) MOZ_OVERRIDE;
|
||||
|
@ -115,7 +115,7 @@ nsIContentChild::GetOrCreateActorForBlob(File* aBlob)
|
||||
bool
|
||||
nsIContentChild::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
nsRefPtr<nsFrameMessageManager> cpm = nsFrameMessageManager::sChildProcessManager;
|
||||
|
@ -78,7 +78,7 @@ protected:
|
||||
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal);
|
||||
};
|
||||
|
||||
|
@ -180,7 +180,7 @@ nsIContentParent::GetOrCreateActorForBlob(File* aBlob)
|
||||
bool
|
||||
nsIContentParent::RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals)
|
||||
{
|
||||
@ -207,7 +207,7 @@ nsIContentParent::RecvSyncMessage(const nsString& aMsg,
|
||||
bool
|
||||
nsIContentParent::RecvRpcMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals)
|
||||
{
|
||||
@ -234,7 +234,7 @@ nsIContentParent::RecvRpcMessage(const nsString& aMsg,
|
||||
bool
|
||||
nsIContentParent::RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<CpowEntry>& aCpows,
|
||||
InfallibleTArray<CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal)
|
||||
{
|
||||
// FIXME Permission check in Content process
|
||||
|
@ -92,17 +92,17 @@ protected: // IPDL methods
|
||||
|
||||
virtual bool RecvSyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals);
|
||||
virtual bool RecvRpcMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal,
|
||||
InfallibleTArray<nsString>* aRetvals);
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg,
|
||||
const ClonedMessageData& aData,
|
||||
const InfallibleTArray<jsipc::CpowEntry>& aCpows,
|
||||
InfallibleTArray<jsipc::CpowEntry>&& aCpows,
|
||||
const IPC::Principal& aPrincipal);
|
||||
|
||||
protected: // members
|
||||
|
@ -211,7 +211,7 @@ bool
|
||||
GMPDecryptorChild::RecvCreateSession(const uint32_t& aCreateSessionToken,
|
||||
const uint32_t& aPromiseId,
|
||||
const nsCString& aInitDataType,
|
||||
const nsTArray<uint8_t>& aInitData,
|
||||
InfallibleTArray<uint8_t>&& aInitData,
|
||||
const GMPSessionType& aSessionType)
|
||||
{
|
||||
if (!mSession) {
|
||||
@ -247,7 +247,7 @@ GMPDecryptorChild::RecvLoadSession(const uint32_t& aPromiseId,
|
||||
bool
|
||||
GMPDecryptorChild::RecvUpdateSession(const uint32_t& aPromiseId,
|
||||
const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aResponse)
|
||||
InfallibleTArray<uint8_t>&& aResponse)
|
||||
{
|
||||
if (!mSession) {
|
||||
return false;
|
||||
@ -294,7 +294,7 @@ GMPDecryptorChild::RecvRemoveSession(const uint32_t& aPromiseId,
|
||||
|
||||
bool
|
||||
GMPDecryptorChild::RecvSetServerCertificate(const uint32_t& aPromiseId,
|
||||
const nsTArray<uint8_t>& aServerCert)
|
||||
InfallibleTArray<uint8_t>&& aServerCert)
|
||||
{
|
||||
if (!mSession) {
|
||||
return false;
|
||||
@ -309,7 +309,7 @@ GMPDecryptorChild::RecvSetServerCertificate(const uint32_t& aPromiseId,
|
||||
|
||||
bool
|
||||
GMPDecryptorChild::RecvDecrypt(const uint32_t& aId,
|
||||
const nsTArray<uint8_t>& aBuffer,
|
||||
InfallibleTArray<uint8_t>&& aBuffer,
|
||||
const GMPDecryptionData& aMetadata)
|
||||
{
|
||||
if (!mSession) {
|
||||
|
@ -92,7 +92,7 @@ private:
|
||||
virtual bool RecvCreateSession(const uint32_t& aCreateSessionToken,
|
||||
const uint32_t& aPromiseId,
|
||||
const nsCString& aInitDataType,
|
||||
const nsTArray<uint8_t>& aInitData,
|
||||
InfallibleTArray<uint8_t>&& aInitData,
|
||||
const GMPSessionType& aSessionType) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvLoadSession(const uint32_t& aPromiseId,
|
||||
@ -100,7 +100,7 @@ private:
|
||||
|
||||
virtual bool RecvUpdateSession(const uint32_t& aPromiseId,
|
||||
const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aResponse) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aResponse) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvCloseSession(const uint32_t& aPromiseId,
|
||||
const nsCString& aSessionId) MOZ_OVERRIDE;
|
||||
@ -109,12 +109,12 @@ private:
|
||||
const nsCString& aSessionId) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvDecrypt(const uint32_t& aId,
|
||||
const nsTArray<uint8_t>& aBuffer,
|
||||
InfallibleTArray<uint8_t>&& aBuffer,
|
||||
const GMPDecryptionData& aMetadata) MOZ_OVERRIDE;
|
||||
|
||||
// Resolve/reject promise on completion.
|
||||
virtual bool RecvSetServerCertificate(const uint32_t& aPromiseId,
|
||||
const nsTArray<uint8_t>& aServerCert) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aServerCert) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvDecryptingComplete() MOZ_OVERRIDE;
|
||||
|
||||
|
@ -214,7 +214,7 @@ GMPDecryptorParent::RecvRejectPromise(const uint32_t& aPromiseId,
|
||||
bool
|
||||
GMPDecryptorParent::RecvSessionMessage(const nsCString& aSessionId,
|
||||
const GMPSessionMessageType& aMessageType,
|
||||
const nsTArray<uint8_t>& aMessage)
|
||||
nsTArray<uint8_t>&& aMessage)
|
||||
{
|
||||
if (!mIsOpen) {
|
||||
NS_WARNING("Trying to use a dead GMP decrypter!");
|
||||
@ -266,7 +266,7 @@ GMPDecryptorParent::RecvSessionError(const nsCString& aSessionId,
|
||||
|
||||
bool
|
||||
GMPDecryptorParent::RecvKeyIdUsable(const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aKeyId)
|
||||
InfallibleTArray<uint8_t>&& aKeyId)
|
||||
{
|
||||
if (!mIsOpen) {
|
||||
NS_WARNING("Trying to use a dead GMP decrypter!");
|
||||
@ -278,7 +278,7 @@ GMPDecryptorParent::RecvKeyIdUsable(const nsCString& aSessionId,
|
||||
|
||||
bool
|
||||
GMPDecryptorParent::RecvKeyIdNotUsable(const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aKeyId)
|
||||
InfallibleTArray<uint8_t>&& aKeyId)
|
||||
{
|
||||
if (!mIsOpen) {
|
||||
NS_WARNING("Trying to use a dead GMP decrypter!");
|
||||
@ -302,7 +302,7 @@ GMPDecryptorParent::RecvSetCaps(const uint64_t& aCaps)
|
||||
bool
|
||||
GMPDecryptorParent::RecvDecrypted(const uint32_t& aId,
|
||||
const GMPErr& aErr,
|
||||
const nsTArray<uint8_t>& aBuffer)
|
||||
InfallibleTArray<uint8_t>&& aBuffer)
|
||||
{
|
||||
if (!mIsOpen) {
|
||||
NS_WARNING("Trying to use a dead GMP decrypter!");
|
||||
|
@ -79,7 +79,7 @@ private:
|
||||
|
||||
virtual bool RecvSessionMessage(const nsCString& aSessionId,
|
||||
const GMPSessionMessageType& aMessageType,
|
||||
const nsTArray<uint8_t>& aMessage) MOZ_OVERRIDE;
|
||||
nsTArray<uint8_t>&& aMessage) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvExpirationChange(const nsCString& aSessionId,
|
||||
const double& aExpiryTime) MOZ_OVERRIDE;
|
||||
@ -92,14 +92,14 @@ private:
|
||||
const nsCString& aMessage) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvKeyIdUsable(const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aKeyId) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aKeyId) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvKeyIdNotUsable(const nsCString& aSessionId,
|
||||
const nsTArray<uint8_t>& aKeyId) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aKeyId) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvDecrypted(const uint32_t& aId,
|
||||
const GMPErr& aErr,
|
||||
const nsTArray<uint8_t>& aBuffer) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aBuffer) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvSetCaps(const uint64_t& aCaps) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -242,7 +242,7 @@ GMPStorageChild::RecvOpenComplete(const nsCString& aRecordName,
|
||||
bool
|
||||
GMPStorageChild::RecvReadComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus,
|
||||
const InfallibleTArray<uint8_t>& aBytes)
|
||||
InfallibleTArray<uint8_t>&& aBytes)
|
||||
{
|
||||
if (mShutdown) {
|
||||
return true;
|
||||
@ -330,7 +330,7 @@ private:
|
||||
};
|
||||
|
||||
bool
|
||||
GMPStorageChild::RecvRecordNames(const InfallibleTArray<nsCString>& aRecordNames,
|
||||
GMPStorageChild::RecvRecordNames(InfallibleTArray<nsCString>&& aRecordNames,
|
||||
const GMPErr& aStatus)
|
||||
{
|
||||
RecordIteratorContext ctx;
|
||||
|
@ -85,10 +85,10 @@ protected:
|
||||
const GMPErr& aStatus) MOZ_OVERRIDE;
|
||||
virtual bool RecvReadComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus,
|
||||
const InfallibleTArray<uint8_t>& aBytes) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aBytes) MOZ_OVERRIDE;
|
||||
virtual bool RecvWriteComplete(const nsCString& aRecordName,
|
||||
const GMPErr& aStatus) MOZ_OVERRIDE;
|
||||
virtual bool RecvRecordNames(const InfallibleTArray<nsCString>& aRecordNames,
|
||||
virtual bool RecvRecordNames(InfallibleTArray<nsCString>&& aRecordNames,
|
||||
const GMPErr& aStatus) MOZ_OVERRIDE;
|
||||
virtual bool RecvShutdown() MOZ_OVERRIDE;
|
||||
|
||||
|
@ -540,7 +540,7 @@ GMPStorageParent::RecvRead(const nsCString& aRecordName)
|
||||
|
||||
bool
|
||||
GMPStorageParent::RecvWrite(const nsCString& aRecordName,
|
||||
const InfallibleTArray<uint8_t>& aBytes)
|
||||
InfallibleTArray<uint8_t>&& aBytes)
|
||||
{
|
||||
LOGD(("%s::%s: %p record=%s", __CLASS__, __FUNCTION__, this, aRecordName.get()));
|
||||
|
||||
|
@ -42,7 +42,7 @@ protected:
|
||||
virtual bool RecvOpen(const nsCString& aRecordName) MOZ_OVERRIDE;
|
||||
virtual bool RecvRead(const nsCString& aRecordName) MOZ_OVERRIDE;
|
||||
virtual bool RecvWrite(const nsCString& aRecordName,
|
||||
const InfallibleTArray<uint8_t>& aBytes) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aBytes) MOZ_OVERRIDE;
|
||||
virtual bool RecvGetRecordNames() MOZ_OVERRIDE;
|
||||
virtual bool RecvClose(const nsCString& aRecordName) MOZ_OVERRIDE;
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
||||
|
@ -107,7 +107,7 @@ GMPVideoDecoderChild::Error(GMPErr aError)
|
||||
|
||||
bool
|
||||
GMPVideoDecoderChild::RecvInitDecode(const GMPVideoCodec& aCodecSettings,
|
||||
const nsTArray<uint8_t>& aCodecSpecific,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific,
|
||||
const int32_t& aCoreCount)
|
||||
{
|
||||
if (!mVideoDecoder) {
|
||||
@ -126,7 +126,7 @@ GMPVideoDecoderChild::RecvInitDecode(const GMPVideoCodec& aCodecSettings,
|
||||
bool
|
||||
GMPVideoDecoderChild::RecvDecode(const GMPVideoEncodedFrameData& aInputFrame,
|
||||
const bool& aMissingFrames,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
const int64_t& aRenderTimeMs)
|
||||
{
|
||||
if (!mVideoDecoder) {
|
||||
@ -146,7 +146,7 @@ GMPVideoDecoderChild::RecvDecode(const GMPVideoEncodedFrameData& aInputFrame,
|
||||
}
|
||||
|
||||
bool
|
||||
GMPVideoDecoderChild::RecvChildShmemForPool(Shmem& aFrameBuffer)
|
||||
GMPVideoDecoderChild::RecvChildShmemForPool(Shmem&& aFrameBuffer)
|
||||
{
|
||||
if (aFrameBuffer.IsWritable()) {
|
||||
mVideoHost.SharedMemMgr()->MgrDeallocShmem(GMPSharedMem::kGMPFrameData,
|
||||
|
@ -63,13 +63,13 @@ public:
|
||||
private:
|
||||
// PGMPVideoDecoderChild
|
||||
virtual bool RecvInitDecode(const GMPVideoCodec& aCodecSettings,
|
||||
const nsTArray<uint8_t>& aCodecSpecific,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific,
|
||||
const int32_t& aCoreCount) MOZ_OVERRIDE;
|
||||
virtual bool RecvDecode(const GMPVideoEncodedFrameData& aInputFrame,
|
||||
const bool& aMissingFrames,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
const int64_t& aRenderTimeMs) MOZ_OVERRIDE;
|
||||
virtual bool RecvChildShmemForPool(Shmem& aFrameBuffer) MOZ_OVERRIDE;
|
||||
virtual bool RecvChildShmemForPool(Shmem&& aFrameBuffer) MOZ_OVERRIDE;
|
||||
virtual bool RecvReset() MOZ_OVERRIDE;
|
||||
virtual bool RecvDrain() MOZ_OVERRIDE;
|
||||
virtual bool RecvDecodingComplete() MOZ_OVERRIDE;
|
||||
|
@ -322,7 +322,7 @@ GMPVideoDecoderParent::RecvError(const GMPErr& aError)
|
||||
}
|
||||
|
||||
bool
|
||||
GMPVideoDecoderParent::RecvParentShmemForPool(Shmem& aEncodedBuffer)
|
||||
GMPVideoDecoderParent::RecvParentShmemForPool(Shmem&& aEncodedBuffer)
|
||||
{
|
||||
if (aEncodedBuffer.IsWritable()) {
|
||||
mVideoHost.SharedMemMgr()->MgrDeallocShmem(GMPSharedMem::kGMPEncodedData,
|
||||
|
@ -71,7 +71,7 @@ private:
|
||||
virtual bool RecvDrainComplete() MOZ_OVERRIDE;
|
||||
virtual bool RecvResetComplete() MOZ_OVERRIDE;
|
||||
virtual bool RecvError(const GMPErr& aError) MOZ_OVERRIDE;
|
||||
virtual bool RecvParentShmemForPool(Shmem& aEncodedBuffer) MOZ_OVERRIDE;
|
||||
virtual bool RecvParentShmemForPool(Shmem&& aEncodedBuffer) MOZ_OVERRIDE;
|
||||
virtual bool AnswerNeedShmem(const uint32_t& aFrameBufferSize,
|
||||
Shmem* aMem) MOZ_OVERRIDE;
|
||||
virtual bool Recv__delete__() MOZ_OVERRIDE;
|
||||
|
@ -68,7 +68,7 @@ GMPVideoEncoderChild::Error(GMPErr aError)
|
||||
|
||||
bool
|
||||
GMPVideoEncoderChild::RecvInitEncode(const GMPVideoCodec& aCodecSettings,
|
||||
const nsTArray<uint8_t>& aCodecSpecific,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific,
|
||||
const int32_t& aNumberOfCores,
|
||||
const uint32_t& aMaxPayloadSize)
|
||||
{
|
||||
@ -89,8 +89,8 @@ GMPVideoEncoderChild::RecvInitEncode(const GMPVideoCodec& aCodecSettings,
|
||||
|
||||
bool
|
||||
GMPVideoEncoderChild::RecvEncode(const GMPVideoi420FrameData& aInputFrame,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo,
|
||||
const nsTArray<GMPVideoFrameType>& aFrameTypes)
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
InfallibleTArray<GMPVideoFrameType>&& aFrameTypes)
|
||||
{
|
||||
if (!mVideoEncoder) {
|
||||
return false;
|
||||
@ -109,7 +109,7 @@ GMPVideoEncoderChild::RecvEncode(const GMPVideoi420FrameData& aInputFrame,
|
||||
}
|
||||
|
||||
bool
|
||||
GMPVideoEncoderChild::RecvChildShmemForPool(Shmem& aEncodedBuffer)
|
||||
GMPVideoEncoderChild::RecvChildShmemForPool(Shmem&& aEncodedBuffer)
|
||||
{
|
||||
if (aEncodedBuffer.IsWritable()) {
|
||||
mVideoHost.SharedMemMgr()->MgrDeallocShmem(GMPSharedMem::kGMPEncodedData,
|
||||
|
@ -59,13 +59,13 @@ public:
|
||||
private:
|
||||
// PGMPVideoEncoderChild
|
||||
virtual bool RecvInitEncode(const GMPVideoCodec& aCodecSettings,
|
||||
const nsTArray<uint8_t>& aCodecSpecific,
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecific,
|
||||
const int32_t& aNumberOfCores,
|
||||
const uint32_t& aMaxPayloadSize) MOZ_OVERRIDE;
|
||||
virtual bool RecvEncode(const GMPVideoi420FrameData& aInputFrame,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo,
|
||||
const nsTArray<GMPVideoFrameType>& aFrameTypes) MOZ_OVERRIDE;
|
||||
virtual bool RecvChildShmemForPool(Shmem& aEncodedBuffer) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo,
|
||||
InfallibleTArray<GMPVideoFrameType>&& aFrameTypes) MOZ_OVERRIDE;
|
||||
virtual bool RecvChildShmemForPool(Shmem&& aEncodedBuffer) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetChannelParameters(const uint32_t& aPacketLoss,
|
||||
const uint32_t& aRTT) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetRates(const uint32_t& aNewBitRate,
|
||||
|
@ -288,7 +288,7 @@ EncodedCallback(GMPVideoEncoderCallbackProxy* aCallback,
|
||||
|
||||
bool
|
||||
GMPVideoEncoderParent::RecvEncoded(const GMPVideoEncodedFrameData& aEncodedFrame,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo)
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo)
|
||||
{
|
||||
if (!mCallback) {
|
||||
return false;
|
||||
@ -320,7 +320,7 @@ GMPVideoEncoderParent::RecvError(const GMPErr& aError)
|
||||
}
|
||||
|
||||
bool
|
||||
GMPVideoEncoderParent::RecvParentShmemForPool(Shmem& aFrameBuffer)
|
||||
GMPVideoEncoderParent::RecvParentShmemForPool(Shmem&& aFrameBuffer)
|
||||
{
|
||||
if (aFrameBuffer.IsWritable()) {
|
||||
mVideoHost.SharedMemMgr()->MgrDeallocShmem(GMPSharedMem::kGMPFrameData,
|
||||
|
@ -66,9 +66,9 @@ private:
|
||||
// PGMPVideoEncoderParent
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
||||
virtual bool RecvEncoded(const GMPVideoEncodedFrameData& aEncodedFrame,
|
||||
const nsTArray<uint8_t>& aCodecSpecificInfo) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aCodecSpecificInfo) MOZ_OVERRIDE;
|
||||
virtual bool RecvError(const GMPErr& aError) MOZ_OVERRIDE;
|
||||
virtual bool RecvParentShmemForPool(Shmem& aFrameBuffer) MOZ_OVERRIDE;
|
||||
virtual bool RecvParentShmemForPool(Shmem&& aFrameBuffer) MOZ_OVERRIDE;
|
||||
virtual bool AnswerNeedShmem(const uint32_t& aEncodedBufferSize,
|
||||
Shmem* aMem) MOZ_OVERRIDE;
|
||||
virtual bool Recv__delete__() MOZ_OVERRIDE;
|
||||
|
@ -235,7 +235,7 @@ UDPSocketChild::RecvCallbackClosed()
|
||||
|
||||
bool
|
||||
UDPSocketChild::RecvCallbackReceivedData(const UDPAddressInfo& aAddressInfo,
|
||||
const InfallibleTArray<uint8_t>& aData)
|
||||
InfallibleTArray<uint8_t>&& aData)
|
||||
{
|
||||
nsresult rv = mSocket->CallListenerReceivedData(aAddressInfo.addr(), aAddressInfo.port(),
|
||||
aData.Elements(), aData.Length());
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
virtual bool RecvCallbackOpened(const UDPAddressInfo& aAddressInfo) MOZ_OVERRIDE;
|
||||
virtual bool RecvCallbackClosed() MOZ_OVERRIDE;
|
||||
virtual bool RecvCallbackReceivedData(const UDPAddressInfo& aAddressInfo,
|
||||
const InfallibleTArray<uint8_t>& aData) MOZ_OVERRIDE;
|
||||
InfallibleTArray<uint8_t>&& aData) MOZ_OVERRIDE;
|
||||
virtual bool RecvCallbackError(const nsCString& aMessage,
|
||||
const nsCString& aFilename,
|
||||
const uint32_t& aLineNumber) MOZ_OVERRIDE;
|
||||
|
@ -34,7 +34,6 @@ public:
|
||||
virtual bool RecvOutgoingData(const UDPData& aData, const UDPSocketAddr& aAddr) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvClose() MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvRequestDelete() MOZ_OVERRIDE;
|
||||
virtual bool RecvJoinMulticast(const nsCString& aMulticastAddress,
|
||||
const nsCString& aInterface) MOZ_OVERRIDE;
|
||||
|
@ -332,9 +332,9 @@ NotificationPermissionRequest::GetTypes(nsIArray** aTypes)
|
||||
{
|
||||
nsTArray<nsString> emptyOptions;
|
||||
return nsContentPermissionUtils::CreatePermissionArray(NS_LITERAL_CSTRING("desktop-notification"),
|
||||
NS_LITERAL_CSTRING("unused"),
|
||||
emptyOptions,
|
||||
aTypes);
|
||||
NS_LITERAL_CSTRING("unused"),
|
||||
emptyOptions,
|
||||
aTypes);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(NotificationTask, nsIRunnable)
|
||||
|
@ -855,7 +855,7 @@ PluginInstanceChild::AnswerNPP_HandleEvent(const NPRemoteEvent& event,
|
||||
|
||||
bool
|
||||
PluginInstanceChild::AnswerNPP_HandleEvent_Shmem(const NPRemoteEvent& event,
|
||||
Shmem& mem,
|
||||
Shmem&& mem,
|
||||
int16_t* handled,
|
||||
Shmem* rtnmem)
|
||||
{
|
||||
@ -919,7 +919,7 @@ PluginInstanceChild::AnswerNPP_HandleEvent_Shmem(const NPRemoteEvent& event,
|
||||
#else
|
||||
bool
|
||||
PluginInstanceChild::AnswerNPP_HandleEvent_Shmem(const NPRemoteEvent& event,
|
||||
Shmem& mem,
|
||||
Shmem&& mem,
|
||||
int16_t* handled,
|
||||
Shmem* rtnmem)
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ protected:
|
||||
AnswerNPP_HandleEvent(const NPRemoteEvent& event, int16_t* handled) MOZ_OVERRIDE;
|
||||
virtual bool
|
||||
AnswerNPP_HandleEvent_Shmem(const NPRemoteEvent& event,
|
||||
Shmem& mem,
|
||||
Shmem&& mem,
|
||||
int16_t* handled,
|
||||
Shmem* rtnmem) MOZ_OVERRIDE;
|
||||
virtual bool
|
||||
|
@ -2131,8 +2131,8 @@ bool
|
||||
PluginModuleChild::RecvPPluginInstanceConstructor(PPluginInstanceChild* aActor,
|
||||
const nsCString& aMimeType,
|
||||
const uint16_t& aMode,
|
||||
const InfallibleTArray<nsCString>& aNames,
|
||||
const InfallibleTArray<nsCString>& aValues)
|
||||
InfallibleTArray<nsCString>&& aNames,
|
||||
InfallibleTArray<nsCString>&& aValues)
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_METHOD;
|
||||
AssertPluginThread();
|
||||
@ -2478,8 +2478,8 @@ PluginModuleChild::ProcessNativeEvents() {
|
||||
bool
|
||||
PluginModuleChild::RecvStartProfiler(const uint32_t& aEntries,
|
||||
const double& aInterval,
|
||||
const nsTArray<nsCString>& aFeatures,
|
||||
const nsTArray<nsCString>& aThreadNameFilters)
|
||||
nsTArray<nsCString>&& aFeatures,
|
||||
nsTArray<nsCString>&& aThreadNameFilters)
|
||||
{
|
||||
nsTArray<const char*> featureArray;
|
||||
for (size_t i = 0; i < aFeatures.Length(); ++i) {
|
||||
|
@ -101,8 +101,8 @@ protected:
|
||||
RecvPPluginInstanceConstructor(PPluginInstanceChild* aActor,
|
||||
const nsCString& aMimeType,
|
||||
const uint16_t& aMode,
|
||||
const InfallibleTArray<nsCString>& aNames,
|
||||
const InfallibleTArray<nsCString>& aValues)
|
||||
InfallibleTArray<nsCString>&& aNames,
|
||||
InfallibleTArray<nsCString>&& aValues)
|
||||
MOZ_OVERRIDE;
|
||||
virtual bool
|
||||
AnswerNP_Shutdown(NPError *rv) MOZ_OVERRIDE;
|
||||
@ -149,8 +149,8 @@ protected:
|
||||
|
||||
virtual bool RecvStartProfiler(const uint32_t& aEntries,
|
||||
const double& aInterval,
|
||||
const nsTArray<nsCString>& aFeatures,
|
||||
const nsTArray<nsCString>& aThreadNameFilters) MOZ_OVERRIDE;
|
||||
nsTArray<nsCString>&& aFeatures,
|
||||
nsTArray<nsCString>&& aThreadNameFilters) MOZ_OVERRIDE;
|
||||
virtual bool RecvStopProfiler() MOZ_OVERRIDE;
|
||||
virtual bool AnswerGetProfile(nsCString* aProfile) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -753,7 +753,7 @@ PluginScriptableObjectChild::AnswerHasMethod(const PluginIdentifier& aId,
|
||||
|
||||
bool
|
||||
PluginScriptableObjectChild::AnswerInvoke(const PluginIdentifier& aId,
|
||||
const InfallibleTArray<Variant>& aArgs,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
@ -823,7 +823,7 @@ PluginScriptableObjectChild::AnswerInvoke(const PluginIdentifier& aId,
|
||||
}
|
||||
|
||||
bool
|
||||
PluginScriptableObjectChild::AnswerInvokeDefault(const InfallibleTArray<Variant>& aArgs,
|
||||
PluginScriptableObjectChild::AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
@ -1074,7 +1074,7 @@ PluginScriptableObjectChild::AnswerEnumerate(InfallibleTArray<PluginIdentifier>*
|
||||
}
|
||||
|
||||
bool
|
||||
PluginScriptableObjectChild::AnswerConstruct(const InfallibleTArray<Variant>& aArgs,
|
||||
PluginScriptableObjectChild::AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
|
@ -63,12 +63,12 @@ public:
|
||||
|
||||
virtual bool
|
||||
AnswerInvoke(const PluginIdentifier& aId,
|
||||
const InfallibleTArray<Variant>& aArgs,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
AnswerInvokeDefault(const InfallibleTArray<Variant>& aArgs,
|
||||
AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
@ -97,7 +97,7 @@ public:
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
AnswerConstruct(const InfallibleTArray<Variant>& aArgs,
|
||||
AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -783,7 +783,7 @@ PluginScriptableObjectParent::AnswerHasMethod(const PluginIdentifier& aId,
|
||||
|
||||
bool
|
||||
PluginScriptableObjectParent::AnswerInvoke(const PluginIdentifier& aId,
|
||||
const InfallibleTArray<Variant>& aArgs,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
@ -873,7 +873,7 @@ PluginScriptableObjectParent::AnswerInvoke(const PluginIdentifier& aId,
|
||||
}
|
||||
|
||||
bool
|
||||
PluginScriptableObjectParent::AnswerInvokeDefault(const InfallibleTArray<Variant>& aArgs,
|
||||
PluginScriptableObjectParent::AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
@ -1193,7 +1193,7 @@ PluginScriptableObjectParent::AnswerEnumerate(InfallibleTArray<PluginIdentifier>
|
||||
}
|
||||
|
||||
bool
|
||||
PluginScriptableObjectParent::AnswerConstruct(const InfallibleTArray<Variant>& aArgs,
|
||||
PluginScriptableObjectParent::AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess)
|
||||
{
|
||||
|
@ -54,12 +54,12 @@ public:
|
||||
|
||||
virtual bool
|
||||
AnswerInvoke(const PluginIdentifier& aId,
|
||||
const InfallibleTArray<Variant>& aArgs,
|
||||
InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
AnswerInvokeDefault(const InfallibleTArray<Variant>& aArgs,
|
||||
AnswerInvokeDefault(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
AnswerConstruct(const InfallibleTArray<Variant>& aArgs,
|
||||
AnswerConstruct(InfallibleTArray<Variant>&& aArgs,
|
||||
Variant* aResult,
|
||||
bool* aSuccess) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -217,7 +217,7 @@ PluginWidgetParent::RecvMove(const double& aX, const double& aY)
|
||||
}
|
||||
|
||||
bool
|
||||
PluginWidgetParent::RecvSetWindowClipRegion(const nsTArray<nsIntRect>& Regions,
|
||||
PluginWidgetParent::RecvSetWindowClipRegion(InfallibleTArray<nsIntRect>&& Regions,
|
||||
const bool& aIntersectWithExisting)
|
||||
{
|
||||
ENSURE_CHANNEL;
|
||||
|
@ -36,8 +36,8 @@ public:
|
||||
virtual bool RecvGetNativePluginPort(uintptr_t* value) MOZ_OVERRIDE;
|
||||
virtual bool RecvResize(const nsIntRect& aRect) MOZ_OVERRIDE;
|
||||
virtual bool RecvMove(const double& aX, const double& aY) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetWindowClipRegion(const nsTArray<nsIntRect>& Regions,
|
||||
const bool& aIntersectWithExisting) MOZ_OVERRIDE;
|
||||
virtual bool RecvSetWindowClipRegion(InfallibleTArray<nsIntRect>&& Regions,
|
||||
const bool& aIntersectWithExisting) MOZ_OVERRIDE;
|
||||
|
||||
private:
|
||||
// The tab our connection is associated with.
|
||||
|
@ -214,7 +214,7 @@ DOMStorageDBChild::RecvObserve(const nsCString& aTopic,
|
||||
}
|
||||
|
||||
bool
|
||||
DOMStorageDBChild::RecvScopesHavingData(const InfallibleTArray<nsCString>& aScopes)
|
||||
DOMStorageDBChild::RecvScopesHavingData(nsTArray<nsCString>&& aScopes)
|
||||
{
|
||||
for (uint32_t i = 0; i < aScopes.Length(); ++i) {
|
||||
ScopesHavingData().PutEntry(aScopes[i]);
|
||||
|
@ -74,7 +74,7 @@ private:
|
||||
const nsString& aValue);
|
||||
bool RecvLoadDone(const nsCString& aScope,
|
||||
const nsresult& aRv);
|
||||
bool RecvScopesHavingData(const InfallibleTArray<nsCString>& aScopes);
|
||||
bool RecvScopesHavingData(nsTArray<nsCString>&& aScopes);
|
||||
bool RecvLoadUsage(const nsCString& aScope,
|
||||
const int64_t& aUsage);
|
||||
bool RecvError(const nsresult& aRv);
|
||||
|
@ -845,7 +845,7 @@ ImageBridgeChild::DeallocPTextureChild(PTextureChild* actor)
|
||||
}
|
||||
|
||||
bool
|
||||
ImageBridgeChild::RecvParentAsyncMessages(const InfallibleTArray<AsyncParentMessageData>& aMessages)
|
||||
ImageBridgeChild::RecvParentAsyncMessages(InfallibleTArray<AsyncParentMessageData>&& aMessages)
|
||||
{
|
||||
for (AsyncParentMessageArray::index_type i = 0; i < aMessages.Length(); ++i) {
|
||||
const AsyncParentMessageData& message = aMessages[i];
|
||||
|
@ -189,7 +189,7 @@ public:
|
||||
DeallocPTextureChild(PTextureChild* actor) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
RecvParentAsyncMessages(const InfallibleTArray<AsyncParentMessageData>& aMessages) MOZ_OVERRIDE;
|
||||
RecvParentAsyncMessages(InfallibleTArray<AsyncParentMessageData>&& aMessages) MOZ_OVERRIDE;
|
||||
|
||||
TemporaryRef<ImageClient> CreateImageClient(CompositableType aType);
|
||||
TemporaryRef<ImageClient> CreateImageClientNow(CompositableType aType);
|
||||
|
@ -111,7 +111,7 @@ private:
|
||||
};
|
||||
|
||||
bool
|
||||
ImageBridgeParent::RecvUpdate(const EditArray& aEdits, EditReplyArray* aReply)
|
||||
ImageBridgeParent::RecvUpdate(EditArray&& aEdits, EditReplyArray* aReply)
|
||||
{
|
||||
AutoImageBridgeParentAsyncMessageSender autoAsyncMessageSender(this);
|
||||
|
||||
@ -144,10 +144,10 @@ ImageBridgeParent::RecvUpdate(const EditArray& aEdits, EditReplyArray* aReply)
|
||||
}
|
||||
|
||||
bool
|
||||
ImageBridgeParent::RecvUpdateNoSwap(const EditArray& aEdits)
|
||||
ImageBridgeParent::RecvUpdateNoSwap(EditArray&& aEdits)
|
||||
{
|
||||
InfallibleTArray<EditReply> noReplies;
|
||||
bool success = RecvUpdate(aEdits, &noReplies);
|
||||
bool success = RecvUpdate(Move(aEdits), &noReplies);
|
||||
NS_ABORT_IF_FALSE(noReplies.Length() == 0, "RecvUpdateNoSwap requires a sync Update to carry Edits");
|
||||
return success;
|
||||
}
|
||||
@ -268,7 +268,7 @@ ImageBridgeParent::SendAsyncMessage(const InfallibleTArray<AsyncParentMessageDat
|
||||
}
|
||||
|
||||
bool
|
||||
ImageBridgeParent::RecvChildAsyncMessages(const InfallibleTArray<AsyncChildMessageData>& aMessages)
|
||||
ImageBridgeParent::RecvChildAsyncMessages(InfallibleTArray<AsyncChildMessageData>&& aMessages)
|
||||
{
|
||||
for (AsyncChildMessageArray::index_type i = 0; i < aMessages.Length(); ++i) {
|
||||
const AsyncChildMessageData& message = aMessages[i];
|
||||
|
@ -71,8 +71,8 @@ public:
|
||||
}
|
||||
|
||||
// PImageBridge
|
||||
virtual bool RecvUpdate(const EditArray& aEdits, EditReplyArray* aReply) MOZ_OVERRIDE;
|
||||
virtual bool RecvUpdateNoSwap(const EditArray& aEdits) MOZ_OVERRIDE;
|
||||
virtual bool RecvUpdate(EditArray&& aEdits, EditReplyArray* aReply) MOZ_OVERRIDE;
|
||||
virtual bool RecvUpdateNoSwap(EditArray&& aEdits) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool IsAsync() const MOZ_OVERRIDE { return true; }
|
||||
|
||||
@ -85,7 +85,7 @@ public:
|
||||
virtual bool DeallocPTextureParent(PTextureParent* actor) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
RecvChildAsyncMessages(const InfallibleTArray<AsyncChildMessageData>& aMessages) MOZ_OVERRIDE;
|
||||
RecvChildAsyncMessages(InfallibleTArray<AsyncChildMessageData>&& aMessages) MOZ_OVERRIDE;
|
||||
|
||||
// Shutdown step 1
|
||||
virtual bool RecvWillStop() MOZ_OVERRIDE;
|
||||
|
@ -75,7 +75,7 @@ LayerTransactionChild::DeallocPCompositableChild(PCompositableChild* actor)
|
||||
}
|
||||
|
||||
bool
|
||||
LayerTransactionChild::RecvParentAsyncMessages(const InfallibleTArray<AsyncParentMessageData>& aMessages)
|
||||
LayerTransactionChild::RecvParentAsyncMessages(InfallibleTArray<AsyncParentMessageData>&& aMessages)
|
||||
{
|
||||
for (AsyncParentMessageArray::index_type i = 0; i < aMessages.Length(); ++i) {
|
||||
const AsyncParentMessageData& message = aMessages[i];
|
||||
|
@ -70,7 +70,7 @@ protected:
|
||||
virtual bool DeallocPTextureChild(PTextureChild* actor) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
RecvParentAsyncMessages(const InfallibleTArray<AsyncParentMessageData>& aMessages) MOZ_OVERRIDE;
|
||||
RecvParentAsyncMessages(InfallibleTArray<AsyncParentMessageData>&& aMessages) MOZ_OVERRIDE;
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -190,7 +190,7 @@ LayerTransactionParent::GetCompositorBackendType() const
|
||||
}
|
||||
|
||||
bool
|
||||
LayerTransactionParent::RecvUpdateNoSwap(const InfallibleTArray<Edit>& cset,
|
||||
LayerTransactionParent::RecvUpdateNoSwap(InfallibleTArray<Edit>&& cset,
|
||||
const uint64_t& aTransactionId,
|
||||
const TargetConfig& targetConfig,
|
||||
const bool& isFirstPaint,
|
||||
@ -199,7 +199,7 @@ LayerTransactionParent::RecvUpdateNoSwap(const InfallibleTArray<Edit>& cset,
|
||||
const bool& isRepeatTransaction,
|
||||
const mozilla::TimeStamp& aTransactionStart)
|
||||
{
|
||||
return RecvUpdate(cset, aTransactionId, targetConfig, isFirstPaint,
|
||||
return RecvUpdate(Move(cset), aTransactionId, targetConfig, isFirstPaint,
|
||||
scheduleComposite, paintSequenceNumber, isRepeatTransaction,
|
||||
aTransactionStart, nullptr);
|
||||
}
|
||||
@ -220,7 +220,7 @@ private:
|
||||
};
|
||||
|
||||
bool
|
||||
LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
LayerTransactionParent::RecvUpdate(InfallibleTArray<Edit>&& cset,
|
||||
const uint64_t& aTransactionId,
|
||||
const TargetConfig& targetConfig,
|
||||
const bool& isFirstPaint,
|
||||
@ -878,7 +878,7 @@ LayerTransactionParent::DeallocPTextureParent(PTextureParent* actor)
|
||||
}
|
||||
|
||||
bool
|
||||
LayerTransactionParent::RecvChildAsyncMessages(const InfallibleTArray<AsyncChildMessageData>& aMessages)
|
||||
LayerTransactionParent::RecvChildAsyncMessages(InfallibleTArray<AsyncChildMessageData>&& aMessages)
|
||||
{
|
||||
AutoLayerTransactionParentAsyncMessageSender autoAsyncMessageSender(this);
|
||||
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
protected:
|
||||
virtual bool RecvShutdown() MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvUpdate(const EditArray& cset,
|
||||
virtual bool RecvUpdate(EditArray&& cset,
|
||||
const uint64_t& aTransactionId,
|
||||
const TargetConfig& targetConfig,
|
||||
const bool& isFirstPaint,
|
||||
@ -113,7 +113,7 @@ protected:
|
||||
const mozilla::TimeStamp& aTransactionStart,
|
||||
EditReplyArray* reply) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvUpdateNoSwap(const EditArray& cset,
|
||||
virtual bool RecvUpdateNoSwap(EditArray&& cset,
|
||||
const uint64_t& aTransactionId,
|
||||
const TargetConfig& targetConfig,
|
||||
const bool& isFirstPaint,
|
||||
@ -147,7 +147,7 @@ protected:
|
||||
virtual bool DeallocPTextureParent(PTextureParent* actor) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool
|
||||
RecvChildAsyncMessages(const InfallibleTArray<AsyncChildMessageData>& aMessages) MOZ_OVERRIDE;
|
||||
RecvChildAsyncMessages(InfallibleTArray<AsyncChildMessageData>&& aMessages) MOZ_OVERRIDE;
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -502,8 +502,8 @@ public:
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvVibrate(const InfallibleTArray<unsigned int>& pattern,
|
||||
const InfallibleTArray<uint64_t> &id,
|
||||
RecvVibrate(InfallibleTArray<unsigned int>&& pattern,
|
||||
InfallibleTArray<uint64_t>&& id,
|
||||
PBrowserParent *browserParent) MOZ_OVERRIDE
|
||||
{
|
||||
// We give all content vibration permission.
|
||||
@ -516,7 +516,7 @@ public:
|
||||
}
|
||||
|
||||
virtual bool
|
||||
RecvCancelVibrate(const InfallibleTArray<uint64_t> &id,
|
||||
RecvCancelVibrate(InfallibleTArray<uint64_t> &&id,
|
||||
PBrowserParent *browserParent) MOZ_OVERRIDE
|
||||
{
|
||||
TabParent *tabParent = static_cast<TabParent*>(browserParent);
|
||||
|
@ -430,9 +430,9 @@ public:
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool RecvLoad(const InfallibleTArray<nsCString>& aArgv,
|
||||
const InfallibleTArray<nsCString>& aEnv,
|
||||
const InfallibleTArray<FDRemap>& aFdsremap,
|
||||
virtual bool RecvLoad(InfallibleTArray<nsCString>&& aArgv,
|
||||
InfallibleTArray<nsCString>&& aEnv,
|
||||
InfallibleTArray<FDRemap>&& aFdsremap,
|
||||
const uint32_t& aPrivs,
|
||||
const int32_t& aCookie);
|
||||
|
||||
@ -453,9 +453,9 @@ _ProcLoaderChildDestroy(ProcLoaderChild *aChild)
|
||||
}
|
||||
|
||||
bool
|
||||
ProcLoaderChild::RecvLoad(const InfallibleTArray<nsCString>& aArgv,
|
||||
const InfallibleTArray<nsCString>& aEnv,
|
||||
const InfallibleTArray<FDRemap>& aFdsRemap,
|
||||
ProcLoaderChild::RecvLoad(InfallibleTArray<nsCString>&& aArgv,
|
||||
InfallibleTArray<nsCString>&& aEnv,
|
||||
InfallibleTArray<FDRemap>&& aFdsRemap,
|
||||
const uint32_t& aPrivs,
|
||||
const int32_t& aCookie) {
|
||||
if (!sProcLoaderServing) {
|
||||
|
@ -663,6 +663,10 @@ class ExprCall(Node):
|
||||
self.func = func
|
||||
self.args = args
|
||||
|
||||
class ExprMove(ExprCall):
|
||||
def __init__(self, arg):
|
||||
ExprCall.__init__(self, ExprVar("mozilla::Move"), args=[arg])
|
||||
|
||||
class ExprNew(Node):
|
||||
# XXX taking some poetic license ...
|
||||
def __init__(self, ctype, args=[ ], newargs=None):
|
||||
|
@ -47,7 +47,7 @@ class CxxCodeGen(CodePrinter, Visitor):
|
||||
elif t.ptrptr: ts += '**'
|
||||
elif t.ptrconstptr: ts += '* const*'
|
||||
|
||||
if t.ref: ts += '&'
|
||||
ts += '&' * t.ref
|
||||
|
||||
self.write(ts)
|
||||
|
||||
@ -357,6 +357,9 @@ class CxxCodeGen(CodePrinter, Visitor):
|
||||
self.writeExprList(ec.args)
|
||||
self.write(')')
|
||||
|
||||
def visitExprMove(self, em):
|
||||
self.visitExprCall(em)
|
||||
|
||||
def visitExprNew(self, en):
|
||||
self.write('new ')
|
||||
if en.newargs is not None:
|
||||
|
@ -548,6 +548,13 @@ def _cxxConstRefType(ipdltype, side):
|
||||
t.ref = 1
|
||||
return t
|
||||
|
||||
def _cxxMoveRefType(ipdltype, side):
|
||||
t = _cxxBareType(ipdltype, side)
|
||||
if ipdltype.isIPDL() and (ipdltype.isArray() or ipdltype.isShmem()):
|
||||
t.ref = 2
|
||||
return t
|
||||
return _cxxConstRefType(ipdltype, side)
|
||||
|
||||
def _cxxPtrToType(ipdltype, side):
|
||||
t = _cxxBareType(ipdltype, side)
|
||||
if ipdltype.isIPDL() and ipdltype.isActor():
|
||||
@ -602,6 +609,10 @@ necessarily a C++ reference."""
|
||||
"""Return this decl's C++ type as a const, 'reference' type."""
|
||||
return _cxxConstRefType(self.ipdltype, side)
|
||||
|
||||
def rvalueRefType(self, side):
|
||||
"""Return this decl's C++ type as an r-value 'reference' type."""
|
||||
return _cxxMoveRefType(self.ipdltype, side)
|
||||
|
||||
def ptrToType(self, side):
|
||||
return _cxxPtrToType(self.ipdltype, side)
|
||||
|
||||
@ -614,6 +625,12 @@ necessarily a C++ reference."""
|
||||
return self.bareType(side)
|
||||
return self.constRefType(side)
|
||||
|
||||
def moveType(self, side):
|
||||
"""Return this decl's C++ Type with move semantics."""
|
||||
if self.ipdltype.isIPDL() and self.ipdltype.isActor():
|
||||
return self.bareType(side)
|
||||
return self.rvalueRefType(side);
|
||||
|
||||
def outType(self, side):
|
||||
"""Return this decl's C++ Type with outparam semantics."""
|
||||
t = self.bareType(side)
|
||||
@ -939,6 +956,8 @@ class MessageDecl(ipdl.ast.MessageDecl):
|
||||
def makeDecl(d, sems):
|
||||
if sems is 'in':
|
||||
return Decl(d.inType(side), d.name)
|
||||
elif sems is 'move':
|
||||
return Decl(d.moveType(side), d.name)
|
||||
elif sems is 'out':
|
||||
return Decl(d.outType(side), d.name)
|
||||
else: assert 0
|
||||
@ -962,7 +981,7 @@ class MessageDecl(ipdl.ast.MessageDecl):
|
||||
cxxargs = [ ]
|
||||
|
||||
if params:
|
||||
cxxargs.extend([ p.var() for p in self.params ])
|
||||
cxxargs.extend([ ExprMove(p.var()) for p in self.params ])
|
||||
|
||||
for ret in self.returns:
|
||||
if retsems is 'in':
|
||||
@ -2809,7 +2828,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
implicit = (not isdtor)
|
||||
recvDecl = MethodDecl(
|
||||
md.recvMethod().name,
|
||||
params=md.makeCxxParams(paramsems='in', returnsems='out',
|
||||
params=md.makeCxxParams(paramsems='move', returnsems='out',
|
||||
side=self.side, implicit=implicit),
|
||||
ret=Type.BOOL, virtual=1)
|
||||
|
||||
|
@ -84,10 +84,10 @@ class JavaScriptBase : public WrapperOwner, public WrapperAnswer, public Base
|
||||
bool *result) {
|
||||
return Answer::RecvIsExtensible(ObjectId::deserialize(objId), rs, result);
|
||||
}
|
||||
bool RecvCallOrConstruct(const uint64_t &objId, const nsTArray<JSParam> &argv,
|
||||
const bool &construct, ReturnStatus *rs, JSVariant *result,
|
||||
nsTArray<JSParam> *outparams) {
|
||||
return Answer::RecvCallOrConstruct(ObjectId::deserialize(objId), argv, construct, rs, result, outparams);
|
||||
bool RecvCallOrConstruct(const uint64_t &objId, InfallibleTArray<JSParam> &&argv,
|
||||
const bool &construct, ReturnStatus *rs, JSVariant *result,
|
||||
nsTArray<JSParam> *outparams) {
|
||||
return Answer::RecvCallOrConstruct(ObjectId::deserialize(objId), Move(argv), construct, rs, result, outparams);
|
||||
}
|
||||
bool RecvHasInstance(const uint64_t &objId, const JSVariant &v, ReturnStatus *rs, bool *bp) {
|
||||
return Answer::RecvHasInstance(ObjectId::deserialize(objId), v, rs, bp);
|
||||
|
@ -387,7 +387,7 @@ WrapperAnswer::RecvIsExtensible(const ObjectId &objId, ReturnStatus *rs, bool *r
|
||||
|
||||
bool
|
||||
WrapperAnswer::RecvCallOrConstruct(const ObjectId &objId,
|
||||
const nsTArray<JSParam> &argv,
|
||||
InfallibleTArray<JSParam> &&argv,
|
||||
const bool &construct,
|
||||
ReturnStatus *rs,
|
||||
JSVariant *result,
|
||||
|
@ -46,7 +46,7 @@ class WrapperAnswer : public virtual JavaScriptShared
|
||||
|
||||
bool RecvIsExtensible(const ObjectId &objId, ReturnStatus *rs,
|
||||
bool *result);
|
||||
bool RecvCallOrConstruct(const ObjectId &objId, const nsTArray<JSParam> &argv,
|
||||
bool RecvCallOrConstruct(const ObjectId &objId, InfallibleTArray<JSParam> &&argv,
|
||||
const bool &construct, ReturnStatus *rs, JSVariant *result,
|
||||
nsTArray<JSParam> *outparams);
|
||||
bool RecvHasInstance(const ObjectId &objId, const JSVariant &v, ReturnStatus *rs, bool *bp);
|
||||
|
@ -136,7 +136,7 @@ RtspControllerChild::RecvOnMediaDataAvailable(
|
||||
const nsCString& data,
|
||||
const uint32_t& length,
|
||||
const uint32_t& offset,
|
||||
const InfallibleTArray<RtspMetadataParam>& metaArray)
|
||||
InfallibleTArray<RtspMetadataParam>&& metaArray)
|
||||
{
|
||||
nsRefPtr<RtspMetaData> meta = new RtspMetaData();
|
||||
nsresult rv = meta->DeserializeRtspMetaData(metaArray);
|
||||
@ -164,7 +164,7 @@ RtspControllerChild::GetMetaDataLength()
|
||||
bool
|
||||
RtspControllerChild::RecvOnConnected(
|
||||
const uint8_t& index,
|
||||
const InfallibleTArray<RtspMetadataParam>& metaArray)
|
||||
InfallibleTArray<RtspMetadataParam>&& metaArray)
|
||||
{
|
||||
// Deserialize meta data.
|
||||
nsRefPtr<RtspMetaData> meta = new RtspMetaData();
|
||||
|
@ -33,14 +33,14 @@ class RtspControllerChild : public nsIStreamingProtocolController
|
||||
~RtspControllerChild();
|
||||
|
||||
bool RecvOnConnected(const uint8_t& index,
|
||||
const InfallibleTArray<RtspMetadataParam>& meta);
|
||||
InfallibleTArray<RtspMetadataParam>&& meta);
|
||||
|
||||
bool RecvOnMediaDataAvailable(
|
||||
const uint8_t& index,
|
||||
const nsCString& data,
|
||||
const uint32_t& length,
|
||||
const uint32_t& offset,
|
||||
const InfallibleTArray<RtspMetadataParam>& meta);
|
||||
InfallibleTArray<RtspMetadataParam>&& meta);
|
||||
|
||||
bool RecvOnDisconnected(const uint8_t& index,
|
||||
const nsresult& reason);
|
||||
|
Loading…
Reference in New Issue
Block a user