зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
This commit is contained in:
Родитель
d267b10514
Коммит
9985829ecc
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -35,7 +35,7 @@ BroadcastDomainSetChange(DomainSetType aSetType, DomainSetChangeType aChangeType
|
|||
SerializeURI(aDomain, uri);
|
||||
|
||||
for (uint32_t i = 0; i < parents.Length(); i++) {
|
||||
unused << parents[i]->SendDomainSetChanged(aSetType, aChangeType, uri);
|
||||
Unused << parents[i]->SendDomainSetChanged(aSetType, aChangeType, uri);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -749,7 +749,7 @@ SendManifestEntry(const ChromeRegistryItem &aItem)
|
|||
return;
|
||||
|
||||
for (uint32_t i = 0; i < parents.Length(); i++) {
|
||||
unused << parents[i]->SendRegisterChromeItem(aItem);
|
||||
Unused << parents[i]->SendRegisterChromeItem(aItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5107,7 +5107,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI,
|
|||
// asserts). Satisfy that assertion now since GetDoc will force
|
||||
// creation of one if it hasn't already been created.
|
||||
if (mScriptGlobal) {
|
||||
unused << mScriptGlobal->GetDoc();
|
||||
Unused << mScriptGlobal->GetDoc();
|
||||
}
|
||||
|
||||
// Display a message box
|
||||
|
|
|
@ -56,7 +56,7 @@ using mozilla::ipc::BackgroundChild;
|
|||
using mozilla::ipc::IsOnBackgroundThread;
|
||||
using mozilla::ipc::PBackgroundChild;
|
||||
using mozilla::ipc::PrincipalInfo;
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using mozilla::HashString;
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -478,7 +478,7 @@ private:
|
|||
FinishOnOwningThread();
|
||||
|
||||
if (!mActorDestroyed) {
|
||||
unused << Send__delete__(this, mResult);
|
||||
Unused << Send__delete__(this, mResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -993,7 +993,7 @@ ParentRunnable::Run()
|
|||
|
||||
// Metadata is now open.
|
||||
if (!SendOnOpenMetadataForRead(mMetadata)) {
|
||||
unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
Unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -1035,7 +1035,7 @@ ParentRunnable::Run()
|
|||
FileDescriptor::PlatformHandleType handle =
|
||||
FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(mFileDesc));
|
||||
if (!SendOnOpenCacheFile(mFileSize, FileDescriptor(handle))) {
|
||||
unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
Unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -1451,7 +1451,7 @@ ChildRunnable::Run()
|
|||
Release();
|
||||
|
||||
if (!mActorDestroyed) {
|
||||
unused << Send__delete__(this, JS::AsmJSCache_Success);
|
||||
Unused << Send__delete__(this, JS::AsmJSCache_Success);
|
||||
}
|
||||
|
||||
mState = eFinished;
|
||||
|
|
|
@ -210,7 +210,7 @@ public:
|
|||
rv = NS_DispatchToMainThread(mEncodingCompleteEvent);
|
||||
if (NS_FAILED(rv)) {
|
||||
// Better to leak than to crash.
|
||||
unused << mEncodingCompleteEvent.forget();
|
||||
Unused << mEncodingCompleteEvent.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "nsIDOMEvent.h"
|
||||
#include "nsWeakPtr.h"
|
||||
|
||||
using mozilla::unused; // <snicker>
|
||||
using mozilla::Unused; // <snicker>
|
||||
using namespace mozilla::dom;
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -473,7 +473,7 @@ nsContentPermissionRequestProxy::nsContentPermissionRequesterProxy
|
|||
|
||||
mGetCallback = aCallback;
|
||||
mWaitGettingResult = true;
|
||||
unused << mParent->SendGetVisibility();
|
||||
Unused << mParent->SendGetVisibility();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -608,7 +608,7 @@ nsContentPermissionRequestProxy::Cancel()
|
|||
|
||||
nsTArray<PermissionChoice> emptyChoices;
|
||||
|
||||
unused << ContentPermissionRequestParent::Send__delete__(mParent, false, emptyChoices);
|
||||
Unused << ContentPermissionRequestParent::Send__delete__(mParent, false, emptyChoices);
|
||||
mParent = nullptr;
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -672,7 +672,7 @@ nsContentPermissionRequestProxy::Allow(JS::HandleValue aChoices)
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
unused << ContentPermissionRequestParent::Send__delete__(mParent, true, choices);
|
||||
Unused << ContentPermissionRequestParent::Send__delete__(mParent, true, choices);
|
||||
mParent = nullptr;
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -776,7 +776,7 @@ RemotePermissionRequest::RecvGetVisibility()
|
|||
|
||||
bool isActive = false;
|
||||
docshell->GetIsActive(&isActive);
|
||||
unused << SendNotifyVisibility(isActive);
|
||||
Unused << SendNotifyVisibility(isActive);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -787,6 +787,6 @@ RemotePermissionRequest::NotifyVisibility(bool isVisible)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyVisibility(isVisible);
|
||||
Unused << SendNotifyVisibility(isVisible);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -1123,7 +1123,7 @@ void
|
|||
ActivateOrDeactivateChild(TabParent* aParent, void* aArg)
|
||||
{
|
||||
bool active = static_cast<bool>(aArg);
|
||||
unused << aParent->SendParentActivated(active);
|
||||
Unused << aParent->SendParentActivated(active);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -990,8 +990,8 @@ nsFrameLoader::SwapWithOtherRemoteLoader(nsFrameLoader* aOther,
|
|||
|
||||
mInSwap = aOther->mInSwap = false;
|
||||
|
||||
unused << mRemoteBrowser->SendSwappedWithOtherRemoteLoader();
|
||||
unused << aOther->mRemoteBrowser->SendSwappedWithOtherRemoteLoader();
|
||||
Unused << mRemoteBrowser->SendSwappedWithOtherRemoteLoader();
|
||||
Unused << aOther->mRemoteBrowser->SendSwappedWithOtherRemoteLoader();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2296,7 +2296,7 @@ nsFrameLoader::TryRemoteBrowser()
|
|||
nsGkAtoms::mozpasspointerevents,
|
||||
nsGkAtoms::_true,
|
||||
eCaseMatters)) {
|
||||
unused << mRemoteBrowser->SendSetUpdateHitRegion(true);
|
||||
Unused << mRemoteBrowser->SendSetUpdateHitRegion(true);
|
||||
}
|
||||
|
||||
ReallyLoadFrameScripts();
|
||||
|
@ -2341,14 +2341,14 @@ nsFrameLoader::DeactivateRemoteFrame() {
|
|||
void
|
||||
nsFrameLoader::ActivateUpdateHitRegion() {
|
||||
if (mRemoteBrowser) {
|
||||
unused << mRemoteBrowser->SendSetUpdateHitRegion(true);
|
||||
Unused << mRemoteBrowser->SendSetUpdateHitRegion(true);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsFrameLoader::DeactivateUpdateHitRegion() {
|
||||
if (mRemoteBrowser) {
|
||||
unused << mRemoteBrowser->SendSetUpdateHitRegion(false);
|
||||
Unused << mRemoteBrowser->SendSetUpdateHitRegion(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2857,7 +2857,7 @@ nsFrameLoader::RequestNotifyAfterRemotePaint()
|
|||
{
|
||||
// If remote browsing (e10s), handle this with the TabParent.
|
||||
if (mRemoteBrowser) {
|
||||
unused << mRemoteBrowser->SendRequestNotifyAfterRemotePaint();
|
||||
Unused << mRemoteBrowser->SendRequestNotifyAfterRemotePaint();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -11623,7 +11623,7 @@ nsGlobalWindow::SetTimeoutOrInterval(nsIScriptTimeoutHandler *aHandler,
|
|||
}
|
||||
|
||||
// The timeout is now also held in the timer's closure.
|
||||
unused << copy.forget();
|
||||
Unused << copy.forget();
|
||||
} else {
|
||||
// If we are frozen, however, then we instead simply set
|
||||
// timeout->mTimeRemaining to be the "time remaining" in the timeout (i.e.,
|
||||
|
@ -12029,7 +12029,7 @@ nsGlobalWindow::RunTimeout(nsTimeout *aTimeout)
|
|||
// through a timeout that fired while a modal (to this window)
|
||||
// dialog was open or through other non-obvious paths.
|
||||
MOZ_ASSERT(dummy_timeout->HasRefCntOne(), "dummy_timeout may leak");
|
||||
unused << timeoutExtraRef.forget().take();
|
||||
Unused << timeoutExtraRef.forget().take();
|
||||
|
||||
mTimeoutInsertionPoint = last_insertion_point;
|
||||
|
||||
|
|
|
@ -819,8 +819,8 @@ NotifyOffThreadScriptLoadCompletedRunnable::~NotifyOffThreadScriptLoadCompletedR
|
|||
} else {
|
||||
MOZ_ASSERT(false, "We really shouldn't leak!");
|
||||
// Better to leak than crash.
|
||||
unused << mRequest.forget();
|
||||
unused << mLoader.forget();
|
||||
Unused << mRequest.forget();
|
||||
Unused << mLoader.forget();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -890,7 +890,7 @@ nsScriptLoader::AttemptAsyncScriptCompile(nsScriptLoadRequest* aRequest)
|
|||
mDocument->BlockOnload();
|
||||
aRequest->mProgress = nsScriptLoadRequest::Progress_Compiling;
|
||||
|
||||
unused << runnable.forget();
|
||||
Unused << runnable.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ BluetoothDaemonA2dpModule::ConnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ BluetoothDaemonA2dpModule::DisconnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ BluetoothDaemonAvrcpModule::GetPlayStatusRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ BluetoothDaemonAvrcpModule::ListPlayerAppAttrRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ BluetoothDaemonAvrcpModule::ListPlayerAppValueRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppValueRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppAttrTextRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppValueTextRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ BluetoothDaemonAvrcpModule::GetElementAttrRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ BluetoothDaemonAvrcpModule::SetPlayerAppValueRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ BluetoothDaemonAvrcpModule::RegisterNotificationRspCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -288,7 +288,7 @@ BluetoothDaemonAvrcpModule::SetVolumeCmd(uint8_t aVolume,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ BluetoothDaemonCoreModule::EnableCmd(BluetoothResultHandler* aRes)
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ BluetoothDaemonCoreModule::DisableCmd(BluetoothResultHandler* aRes)
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ BluetoothDaemonCoreModule::GetAdapterPropertiesCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ BluetoothDaemonCoreModule::GetAdapterPropertyCmd(BluetoothPropertyType aType,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ BluetoothDaemonCoreModule::SetAdapterPropertyCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ BluetoothDaemonCoreModule::GetRemoteDevicePropertiesCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ BluetoothDaemonCoreModule::GetRemoteDevicePropertyCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ BluetoothDaemonCoreModule::SetRemoteDevicePropertyCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ BluetoothDaemonCoreModule::GetRemoteServiceRecordCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ BluetoothDaemonCoreModule::GetRemoteServicesCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,7 @@ BluetoothDaemonCoreModule::StartDiscoveryCmd(BluetoothResultHandler* aRes)
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -292,7 +292,7 @@ BluetoothDaemonCoreModule::CancelDiscoveryCmd(BluetoothResultHandler* aRes)
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,7 @@ BluetoothDaemonCoreModule::CreateBondCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ BluetoothDaemonCoreModule::RemoveBondCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -363,7 +363,7 @@ BluetoothDaemonCoreModule::CancelBondCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ BluetoothDaemonCoreModule::PinReplyCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -411,7 +411,7 @@ BluetoothDaemonCoreModule::SspReplyCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -433,7 +433,7 @@ BluetoothDaemonCoreModule::DutModeConfigureCmd(bool aEnable,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -457,7 +457,7 @@ BluetoothDaemonCoreModule::DutModeSendCmd(uint16_t aOpcode,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -481,7 +481,7 @@ BluetoothDaemonCoreModule::LeTestModeCmd(uint16_t aOpcode,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ BluetoothDaemonGattModule::ClientRegisterCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ BluetoothDaemonGattModule::ClientUnregisterCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ BluetoothDaemonGattModule::ClientScanCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ BluetoothDaemonGattModule::ClientConnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ BluetoothDaemonGattModule::ClientDisconnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ BluetoothDaemonGattModule::ClientListenCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ BluetoothDaemonGattModule::ClientRefreshCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -250,7 +250,7 @@ BluetoothDaemonGattModule::ClientSearchServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -279,7 +279,7 @@ BluetoothDaemonGattModule::ClientGetIncludedServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -309,7 +309,7 @@ BluetoothDaemonGattModule::ClientGetCharacteristicCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ BluetoothDaemonGattModule::ClientGetDescriptorCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -369,7 +369,7 @@ BluetoothDaemonGattModule::ClientReadCharacteristicCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -396,7 +396,7 @@ BluetoothDaemonGattModule::ClientWriteCharacteristicCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -425,7 +425,7 @@ BluetoothDaemonGattModule::ClientReadDescriptorCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -453,7 +453,7 @@ BluetoothDaemonGattModule::ClientWriteDescriptorCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -477,7 +477,7 @@ BluetoothDaemonGattModule::ClientExecuteWriteCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -505,7 +505,7 @@ BluetoothDaemonGattModule::ClientRegisterNotificationCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -533,7 +533,7 @@ BluetoothDaemonGattModule::ClientDeregisterNotificationCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -558,7 +558,7 @@ BluetoothDaemonGattModule::ClientReadRemoteRssiCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -580,7 +580,7 @@ BluetoothDaemonGattModule::ClientGetDeviceTypeCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -616,7 +616,7 @@ BluetoothDaemonGattModule::ClientSetAdvDataCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -650,7 +650,7 @@ BluetoothDaemonGattModule::ClientTestCommandCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -672,7 +672,7 @@ BluetoothDaemonGattModule::ServerRegisterCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -694,7 +694,7 @@ BluetoothDaemonGattModule::ServerUnregisterCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -724,7 +724,7 @@ BluetoothDaemonGattModule::ServerConnectPeripheralCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -751,7 +751,7 @@ BluetoothDaemonGattModule::ServerDisconnectPeripheralCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -777,7 +777,7 @@ BluetoothDaemonGattModule::ServerAddServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -804,7 +804,7 @@ BluetoothDaemonGattModule::ServerAddIncludedServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -835,7 +835,7 @@ BluetoothDaemonGattModule::ServerAddCharacteristicCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -864,7 +864,7 @@ BluetoothDaemonGattModule::ServerAddDescriptorCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -891,7 +891,7 @@ BluetoothDaemonGattModule::ServerStartServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -916,7 +916,7 @@ BluetoothDaemonGattModule::ServerStopServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -941,7 +941,7 @@ BluetoothDaemonGattModule::ServerDeleteServiceCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -970,7 +970,7 @@ BluetoothDaemonGattModule::ServerSendIndicationCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -1003,7 +1003,7 @@ BluetoothDaemonGattModule::ServerSendResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ BluetoothDaemonHandsfreeModule::ConnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ BluetoothDaemonHandsfreeModule::DisconnectCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ BluetoothDaemonHandsfreeModule::ConnectAudioCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ BluetoothDaemonHandsfreeModule::DisconnectAudioCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -162,7 +162,7 @@ BluetoothDaemonHandsfreeModule::StartVoiceRecognitionCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ BluetoothDaemonHandsfreeModule::StopVoiceRecognitionCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,7 @@ BluetoothDaemonHandsfreeModule::VolumeControlCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -246,7 +246,7 @@ BluetoothDaemonHandsfreeModule::DeviceStatusNotificationCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,7 @@ BluetoothDaemonHandsfreeModule::CopsResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ BluetoothDaemonHandsfreeModule::CindResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -355,7 +355,7 @@ BluetoothDaemonHandsfreeModule::FormattedAtResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ BluetoothDaemonHandsfreeModule::AtResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -430,7 +430,7 @@ BluetoothDaemonHandsfreeModule::ClccResponseCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -463,7 +463,7 @@ BluetoothDaemonHandsfreeModule::PhoneStateChangeCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -488,7 +488,7 @@ BluetoothDaemonHandsfreeModule::ConfigureWbsCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -445,7 +445,7 @@ BluetoothDaemonInterface::Init(
|
|||
// If we could not cleanup properly before and an old
|
||||
// instance of the daemon is still running, we kill it
|
||||
// here.
|
||||
unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd"));
|
||||
Unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd"));
|
||||
|
||||
mResultHandlerQ.AppendElement(aRes);
|
||||
|
||||
|
@ -1006,7 +1006,7 @@ BluetoothDaemonInterface::OnConnectError(int aIndex)
|
|||
mCmdChannel->Close();
|
||||
case CMD_CHANNEL:
|
||||
// Stop daemon and close listen socket
|
||||
unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd"));
|
||||
Unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd"));
|
||||
mListenSocket->Close();
|
||||
case LISTEN_SOCKET:
|
||||
if (!mResultHandlerQ.IsEmpty()) {
|
||||
|
|
|
@ -77,7 +77,7 @@ BluetoothDaemonSetupModule::RegisterModuleCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ BluetoothDaemonSetupModule::UnregisterModuleCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ BluetoothDaemonSetupModule::ConfigurationCmd(
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ BluetoothDaemonSocketModule::ListenCmd(BluetoothSocketType aType,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ BluetoothDaemonSocketModule::ConnectCmd(const BluetoothAddress& aBdAddr,
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
unused << pdu.forget();
|
||||
Unused << pdu.forget();
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -2301,7 +2301,7 @@ BluetoothServiceBluedroid::RemoteDevicePropertiesNotification(
|
|||
break;
|
||||
}
|
||||
}
|
||||
unused << NS_WARN_IF(i == mGetRemoteServiceRecordArray.Length());
|
||||
Unused << NS_WARN_IF(i == mGetRemoteServiceRecordArray.Length());
|
||||
} else if (p.mType == PROPERTY_UNKNOWN) {
|
||||
/* Bug 1065999: working around unknown properties */
|
||||
} else {
|
||||
|
|
|
@ -1234,7 +1234,7 @@ AppendDeviceName(BluetoothSignal& aSignal)
|
|||
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
class SetPairingConfirmationTask : public Task
|
||||
|
@ -1660,7 +1660,7 @@ private:
|
|||
|
||||
NS_ENSURE_TRUE(success, false);
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1699,7 +1699,7 @@ public:
|
|||
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << handler.forget(); /* picked up by callback handler */
|
||||
Unused << handler.forget(); /* picked up by callback handler */
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -2390,7 +2390,7 @@ protected:
|
|||
return false;
|
||||
}
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -2450,7 +2450,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -2523,7 +2523,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -2791,7 +2791,7 @@ protected:
|
|||
|
||||
NS_ENSURE_TRUE(success, false);
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -2954,7 +2954,7 @@ public:
|
|||
1000, msg);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -3099,7 +3099,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
|
||||
/**
|
||||
* FIXME: Bug 820274
|
||||
|
@ -3168,7 +3168,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@ -3622,7 +3622,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << handler.forget(); // picked up by callback handler
|
||||
Unused << handler.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -3927,7 +3927,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -4057,7 +4057,7 @@ public:
|
|||
DBUS_TYPE_INVALID);
|
||||
NS_ENSURE_TRUE_VOID(success);
|
||||
|
||||
unused << mRunnable.forget(); // picked up by callback handler
|
||||
Unused << mRunnable.forget(); // picked up by callback handler
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -454,7 +454,7 @@ BluetoothService::SetEnabled(bool aEnabled)
|
|||
GetAllBluetoothActors(childActors);
|
||||
|
||||
for (uint32_t index = 0; index < childActors.Length(); index++) {
|
||||
unused << childActors[index]->SendEnabled(aEnabled);
|
||||
Unused << childActors[index]->SendEnabled(aEnabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "BluetoothReplyRunnable.h"
|
||||
#include "BluetoothService.h"
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
USING_BLUETOOTH_NAMESPACE
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -99,7 +99,7 @@ BluetoothParent::BeginShutdown()
|
|||
{
|
||||
// Only do something here if we haven't yet begun the shutdown sequence.
|
||||
if (mShutdownState == Running) {
|
||||
unused << SendBeginShutdown();
|
||||
Unused << SendBeginShutdown();
|
||||
mShutdownState = SentBeginShutdown;
|
||||
}
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ BluetoothParent::DeallocPBluetoothRequestParent(PBluetoothRequestParent* aActor)
|
|||
void
|
||||
BluetoothParent::Notify(const BluetoothSignal& aSignal)
|
||||
{
|
||||
unused << SendNotify(aSignal);
|
||||
Unused << SendNotify(aSignal);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
|
@ -60,7 +60,7 @@ BroadcastChannelParent::RecvClose()
|
|||
mService->UnregisterActor(this);
|
||||
mService = nullptr;
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ BroadcastChannelParent::CheckAndDeliver(const ClonedMessageData& aData,
|
|||
newData.blobsParent()[i] = blobParent;
|
||||
}
|
||||
|
||||
unused << SendNotify(newData);
|
||||
Unused << SendNotify(newData);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
namespace {
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using mozilla::dom::cache::CachePushStreamChild;
|
||||
using mozilla::dom::cache::CacheReadStream;
|
||||
using mozilla::dom::cache::CacheReadStreamOrVoid;
|
||||
|
@ -54,7 +54,7 @@ CleanupChildFds(CacheReadStream& aReadStream, CleanupAction aAction)
|
|||
MOZ_ASSERT(fdSetActor);
|
||||
|
||||
if (aAction == Delete) {
|
||||
unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
}
|
||||
|
||||
// FileDescriptorSet doesn't clear its fds in its ActorDestroy, so we
|
||||
|
@ -114,7 +114,7 @@ CleanupParentFds(CacheReadStream& aReadStream, CleanupAction aAction)
|
|||
MOZ_ASSERT(fdSetActor);
|
||||
|
||||
if (aAction == Delete) {
|
||||
unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
}
|
||||
|
||||
// FileDescriptorSet doesn't clear its fds in its ActorDestroy, so we
|
||||
|
@ -482,7 +482,7 @@ AutoParentOpResult::~AutoParentOpResult()
|
|||
if (action == Forget || result.actorParent() == nullptr) {
|
||||
break;
|
||||
}
|
||||
unused << PCacheParent::Send__delete__(result.actorParent());
|
||||
Unused << PCacheParent::Send__delete__(result.actorParent());
|
||||
}
|
||||
default:
|
||||
// other types do not need clean up
|
||||
|
@ -490,7 +490,7 @@ AutoParentOpResult::~AutoParentOpResult()
|
|||
}
|
||||
|
||||
if (action == Delete && mStreamControl) {
|
||||
unused << PCacheStreamControlParent::Send__delete__(mStreamControl);
|
||||
Unused << PCacheStreamControlParent::Send__delete__(mStreamControl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ CacheChild::StartDestroy()
|
|||
MOZ_ASSERT(!mListener);
|
||||
|
||||
// Start actor destruction from parent process
|
||||
unused << SendTeardown();
|
||||
Unused << SendTeardown();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -56,7 +56,7 @@ CacheOpParent::Execute(ManagerId* aManagerId)
|
|||
RefPtr<Manager> manager;
|
||||
nsresult rv = Manager::GetOrCreate(aManagerId, getter_AddRefs(manager));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
unused << Send__delete__(this, ErrorResult(rv), void_t());
|
||||
Unused << Send__delete__(this, ErrorResult(rv), void_t());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ CacheOpParent::OnPrincipalVerified(nsresult aRv, ManagerId* aManagerId)
|
|||
mVerifier = nullptr;
|
||||
|
||||
if (NS_WARN_IF(NS_FAILED(aRv))) {
|
||||
unused << Send__delete__(this, ErrorResult(aRv), void_t());
|
||||
Unused << Send__delete__(this, ErrorResult(aRv), void_t());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ CacheOpParent::OnOpComplete(ErrorResult&& aRv, const CacheOpResult& aResult,
|
|||
// Never send an op-specific result if we have an error. Instead, send
|
||||
// void_t() to ensure that we don't leak actors on the child side.
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
unused << Send__delete__(this, aRv, void_t());
|
||||
Unused << Send__delete__(this, aRv, void_t());
|
||||
aRv.SuppressException(); // We serialiazed it, as best we could.
|
||||
return;
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ CacheOpParent::OnOpComplete(ErrorResult&& aRv, const CacheOpResult& aResult,
|
|||
result.Add(aSavedRequestList[i], aStreamList);
|
||||
}
|
||||
|
||||
unused << Send__delete__(this, aRv, result.SendAsOpResult());
|
||||
Unused << Send__delete__(this, aRv, result.SendAsOpResult());
|
||||
}
|
||||
|
||||
already_AddRefed<nsIInputStream>
|
||||
|
|
|
@ -192,7 +192,7 @@ CachePushStreamChild::DoRead()
|
|||
|
||||
// If we read any data from the stream, send it across.
|
||||
if (!buffer.IsEmpty()) {
|
||||
unused << SendBuffer(buffer);
|
||||
Unused << SendBuffer(buffer);
|
||||
}
|
||||
|
||||
if (rv == NS_BASE_STREAM_WOULD_BLOCK) {
|
||||
|
@ -255,7 +255,7 @@ CachePushStreamChild::OnEnd(nsresult aRv)
|
|||
}
|
||||
|
||||
// This will trigger an ActorDestroy() from the parent side
|
||||
unused << SendClose(aRv);
|
||||
Unused << SendClose(aRv);
|
||||
}
|
||||
|
||||
} // namespace cache
|
||||
|
|
|
@ -79,7 +79,7 @@ bool
|
|||
CachePushStreamParent::RecvClose(const nsresult& aRv)
|
||||
{
|
||||
mWriter->CloseWithStatus(aRv);
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace mozilla {
|
|||
namespace dom {
|
||||
namespace cache {
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using mozilla::ErrorResult;
|
||||
using mozilla::dom::workers::WorkerPrivate;
|
||||
using mozilla::ipc::BackgroundChild;
|
||||
|
|
|
@ -53,7 +53,7 @@ CacheStorageChild::ExecuteOp(nsIGlobalObject* aGlobal, Promise* aPromise,
|
|||
nsISupports* aParent, const CacheOpArgs& aArgs)
|
||||
{
|
||||
mNumChildActors += 1;
|
||||
unused << SendPCacheOpConstructor(
|
||||
Unused << SendPCacheOpConstructor(
|
||||
new CacheOpChild(GetFeature(), aGlobal, aParent, aPromise), aArgs);
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ CacheStorageChild::StartDestroy()
|
|||
MOZ_ASSERT(!mListener);
|
||||
|
||||
// Start actor destruction from parent process
|
||||
unused << SendTeardown();
|
||||
Unused << SendTeardown();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -101,7 +101,7 @@ CacheStorageParent::RecvPCacheOpConstructor(PCacheOpParent* aActor,
|
|||
}
|
||||
|
||||
if (NS_WARN_IF(NS_FAILED(mVerifiedStatus))) {
|
||||
unused << CacheOpParent::Send__delete__(actor, ErrorResult(mVerifiedStatus),
|
||||
Unused << CacheOpParent::Send__delete__(actor, ErrorResult(mVerifiedStatus),
|
||||
void_t());
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ CacheStreamControlChild::SerializeFds(CacheReadStream* aReadStreamOut,
|
|||
if (!aFds.IsEmpty()) {
|
||||
fdSet = Manager()->SendPFileDescriptorSetConstructor(aFds[0]);
|
||||
for (uint32_t i = 1; i < aFds.Length(); ++i) {
|
||||
unused << fdSet->SendAddFileDescriptor(aFds[i]);
|
||||
Unused << fdSet->SendAddFileDescriptor(aFds[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,14 +128,14 @@ CacheStreamControlChild::DeserializeFds(const CacheReadStream& aReadStream,
|
|||
fdSetActor->ForgetFileDescriptors(aFdsOut);
|
||||
MOZ_ASSERT(!aFdsOut.IsEmpty());
|
||||
|
||||
unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
}
|
||||
|
||||
void
|
||||
CacheStreamControlChild::NoteClosedAfterForget(const nsID& aId)
|
||||
{
|
||||
NS_ASSERT_OWNINGTHREAD(CacheStreamControlChild);
|
||||
unused << SendNoteClosed(aId);
|
||||
Unused << SendNoteClosed(aId);
|
||||
|
||||
// A stream has closed. If we delayed StartDestry() due to this stream
|
||||
// being read, then we should check to see if any of the remaining streams
|
||||
|
|
|
@ -61,7 +61,7 @@ CacheStreamControlParent::SerializeFds(CacheReadStream* aReadStreamOut,
|
|||
if (!aFds.IsEmpty()) {
|
||||
fdSet = Manager()->SendPFileDescriptorSetConstructor(aFds[0]);
|
||||
for (uint32_t i = 1; i < aFds.Length(); ++i) {
|
||||
unused << fdSet->SendAddFileDescriptor(aFds[i]);
|
||||
Unused << fdSet->SendAddFileDescriptor(aFds[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ CacheStreamControlParent::Close(const nsID& aId)
|
|||
{
|
||||
NS_ASSERT_OWNINGTHREAD(CacheStreamControlParent);
|
||||
NotifyClose(aId);
|
||||
unused << SendClose(aId);
|
||||
Unused << SendClose(aId);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -149,7 +149,7 @@ CacheStreamControlParent::CloseAll()
|
|||
{
|
||||
NS_ASSERT_OWNINGTHREAD(CacheStreamControlParent);
|
||||
NotifyCloseAll();
|
||||
unused << SendCloseAll();
|
||||
Unused << SendCloseAll();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -187,7 +187,7 @@ BodyCancelWrite(nsIFile* aBaseDir, nsISupports* aCopyContext)
|
|||
MOZ_ASSERT(aCopyContext);
|
||||
|
||||
nsresult rv = NS_CancelAsyncCopy(aCopyContext, NS_ERROR_ABORT);
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
|
||||
// The partially written file must be cleaned up after the async copy
|
||||
// makes its callback.
|
||||
|
|
|
@ -138,7 +138,7 @@ public:
|
|||
}
|
||||
|
||||
rv = BodyDeleteFiles(dbDir, mDeletedBodyIdList);
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
|
||||
aResolver->Resolve(rv);
|
||||
}
|
||||
|
@ -897,7 +897,7 @@ private:
|
|||
}
|
||||
|
||||
rv = trans.Commit();
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
|
||||
DoResolve(rv);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace mozilla {
|
|||
namespace dom {
|
||||
namespace cache {
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using mozilla::ipc::FileDescriptor;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -78,7 +78,7 @@ SerializeNormalStream(nsIInputStream* aStream, CacheReadStream& aReadStreamOut)
|
|||
|
||||
fdSet = manager->SendPFileDescriptorSetConstructor(fds[0]);
|
||||
for (uint32_t i = 1; i < fds.Length(); ++i) {
|
||||
unused << fdSet->SendAddFileDescriptor(fds[i]);
|
||||
Unused << fdSet->SendAddFileDescriptor(fds[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1026,7 +1026,7 @@ CanvasRenderingContext2D::ParseColor(const nsAString& aString,
|
|||
mCanvasElement, nullptr, presShell);
|
||||
}
|
||||
|
||||
unused << nsRuleNode::ComputeColor(
|
||||
Unused << nsRuleNode::ComputeColor(
|
||||
value, presShell ? presShell->GetPresContext() : nullptr, parentContext,
|
||||
*aColor);
|
||||
}
|
||||
|
@ -4888,7 +4888,7 @@ CanvasRenderingContext2D::DrawWindow(nsGlobalWindow& window, double x,
|
|||
}
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell = presContext->PresShell();
|
||||
unused << shell->RenderDocument(r, renderDocFlags, backgroundColor, thebes);
|
||||
Unused << shell->RenderDocument(r, renderDocFlags, backgroundColor, thebes);
|
||||
if (drawDT) {
|
||||
RefPtr<SourceSurface> snapshot = drawDT->Snapshot();
|
||||
RefPtr<DataSourceSurface> data = snapshot->GetDataSurface();
|
||||
|
|
|
@ -1326,7 +1326,7 @@ DataStoreService::EnableDataStore(uint32_t aAppId, const nsAString& aName,
|
|||
ContentParent::GetAll(children);
|
||||
for (uint32_t i = 0; i < children.Length(); i++) {
|
||||
if (children[i]->NeedsDataStoreInfos()) {
|
||||
unused << children[i]->SendDataStoreNotify(aAppId, nsAutoString(aName),
|
||||
Unused << children[i]->SendDataStoreNotify(aAppId, nsAutoString(aName),
|
||||
nsAutoString(aManifestURL));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -415,7 +415,7 @@ DeviceStorageRequestParent::PostFreeSpaceResultEvent::CancelableRun() {
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
FreeSpaceStorageResponse response(mFreeSpace);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -437,7 +437,7 @@ DeviceStorageRequestParent::PostUsedSpaceResultEvent::CancelableRun() {
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
UsedSpaceStorageResponse response(mUsedSpace);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -455,7 +455,7 @@ DeviceStorageRequestParent::PostErrorEvent::CancelableRun() {
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
ErrorResponse response(mError);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -472,7 +472,7 @@ DeviceStorageRequestParent::PostSuccessEvent::CancelableRun() {
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
SuccessResponse response;
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -509,14 +509,14 @@ DeviceStorageRequestParent::PostBlobSuccessEvent::CancelableRun() {
|
|||
BlobParent* actor = cp->GetOrCreateActorForBlobImpl(blob);
|
||||
if (!actor) {
|
||||
ErrorResponse response(NS_LITERAL_STRING(POST_ERROR_EVENT_UNKNOWN));
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
BlobResponse response;
|
||||
response.blobParent() = actor;
|
||||
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,7 @@ DeviceStorageRequestParent::PostEnumerationSuccessEvent::CancelableRun() {
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
EnumerationResponse response(mStorageType, mRelPath, mPaths);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -867,7 +867,7 @@ DeviceStorageRequestParent::PostPathResultEvent::CancelableRun()
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
SuccessResponse response;
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -890,7 +890,7 @@ DeviceStorageRequestParent::PostFileDescriptorResultEvent::CancelableRun()
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
FileDescriptorResponse response(mFileDescriptor);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -918,7 +918,7 @@ DeviceStorageRequestParent::PostFormatResultEvent::CancelableRun()
|
|||
}
|
||||
|
||||
FormatStorageResponse response(state);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -946,7 +946,7 @@ DeviceStorageRequestParent::PostMountResultEvent::CancelableRun()
|
|||
}
|
||||
|
||||
MountStorageResponse response(state);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -974,7 +974,7 @@ DeviceStorageRequestParent::PostUnmountResultEvent::CancelableRun()
|
|||
}
|
||||
|
||||
UnmountStorageResponse response(state);
|
||||
unused << mParent->Send__delete__(mParent, response);
|
||||
Unused << mParent->Send__delete__(mParent, response);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -255,7 +255,7 @@ void
|
|||
EventTargetChainItem::PreHandleEvent(EventChainPreVisitor& aVisitor)
|
||||
{
|
||||
aVisitor.Reset();
|
||||
unused << mTarget->PreHandleEvent(aVisitor);
|
||||
Unused << mTarget->PreHandleEvent(aVisitor);
|
||||
SetForceContentDispatch(aVisitor.mForceContentDispatch);
|
||||
SetWantsWillHandleEvent(aVisitor.mWantsWillHandleEvent);
|
||||
SetMayHaveListenerManager(aVisitor.mMayHaveListenerManager);
|
||||
|
|
|
@ -417,7 +417,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext,
|
|||
("ISM: IMEStateManager::OnChangeFocusInternal(), notifying previous "
|
||||
"focused child process of parent process or another child process "
|
||||
"getting focus"));
|
||||
unused << sActiveTabParent->SendStopIMEStateManagement();
|
||||
Unused << sActiveTabParent->SendStopIMEStateManagement();
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIWidget> widget =
|
||||
|
@ -445,7 +445,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext,
|
|||
// to be restored by the child process asynchronously. Therefore,
|
||||
// some key events which are fired immediately after closing menu
|
||||
// may not be handled by IME.
|
||||
unused << newTabParent->
|
||||
Unused << newTabParent->
|
||||
SendMenuKeyboardListenerInstalled(sInstalledMenuKeyboardListener);
|
||||
setIMEState = sInstalledMenuKeyboardListener;
|
||||
} else if (focusActuallyChanging) {
|
||||
|
|
|
@ -140,7 +140,7 @@ TextComposition::OnCompositionEventDiscarded(
|
|||
|
||||
if (mTabParent) {
|
||||
// The composition event should be discarded in the child process too.
|
||||
unused << mTabParent->SendCompositionEvent(*aCompositionEvent);
|
||||
Unused << mTabParent->SendCompositionEvent(*aCompositionEvent);
|
||||
}
|
||||
|
||||
// XXX If composition events are discarded, should we dispatch them with
|
||||
|
@ -218,7 +218,7 @@ TextComposition::DispatchCompositionEvent(
|
|||
// If the content is a container of TabParent, composition should be in the
|
||||
// remote process.
|
||||
if (mTabParent) {
|
||||
unused << mTabParent->SendCompositionEvent(*aCompositionEvent);
|
||||
Unused << mTabParent->SendCompositionEvent(*aCompositionEvent);
|
||||
aCompositionEvent->mFlags.mPropagationStopped = true;
|
||||
if (aCompositionEvent->CausesDOMTextEvent()) {
|
||||
mLastData = aCompositionEvent->mData;
|
||||
|
@ -386,7 +386,7 @@ TextComposition::HandleSelectionEvent(nsPresContext* aPresContext,
|
|||
// If the content is a container of TabParent, composition should be in the
|
||||
// remote process.
|
||||
if (aTabParent) {
|
||||
unused << aTabParent->SendSelectionEvent(*aSelectionEvent);
|
||||
Unused << aTabParent->SendSelectionEvent(*aSelectionEvent);
|
||||
aSelectionEvent->mFlags.mPropagationStopped = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -781,8 +781,8 @@ FetchDriver::AsyncOnChannelRedirect(nsIChannel* aOldChannel,
|
|||
// be ignored.
|
||||
MOZ_ASSERT(!mFoundOpaqueRedirect);
|
||||
mFoundOpaqueRedirect = true;
|
||||
unused << OnStartRequest(aOldChannel, nullptr);
|
||||
unused << OnStopRequest(aOldChannel, nullptr, NS_OK);
|
||||
Unused << OnStartRequest(aOldChannel, nullptr);
|
||||
Unused << OnStopRequest(aOldChannel, nullptr, NS_OK);
|
||||
|
||||
aOldChannel->Cancel(NS_BINDING_FAILED);
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ GetRequestURLFromDocument(nsIDocument* aDocument, const nsAString& aInput,
|
|||
// This fails with URIs with weird protocols, even when they are valid,
|
||||
// so we ignore the failure
|
||||
nsAutoCString credentials;
|
||||
unused << resolvedURI->GetUserPass(credentials);
|
||||
Unused << resolvedURI->GetUserPass(credentials);
|
||||
if (!credentials.IsEmpty()) {
|
||||
aRv.ThrowTypeError<MSG_URL_HAS_CREDENTIALS>(&aInput);
|
||||
return;
|
||||
|
@ -148,7 +148,7 @@ GetRequestURLFromChrome(const nsAString& aInput, nsAString& aRequestURL,
|
|||
// This fails with URIs with weird protocols, even when they are valid,
|
||||
// so we ignore the failure
|
||||
nsAutoCString credentials;
|
||||
unused << uri->GetUserPass(credentials);
|
||||
Unused << uri->GetUserPass(credentials);
|
||||
if (!credentials.IsEmpty()) {
|
||||
aRv.ThrowTypeError<MSG_URL_HAS_CREDENTIALS>(&aInput);
|
||||
return;
|
||||
|
|
|
@ -1003,7 +1003,7 @@ FileHandleThreadPool::Cleanup()
|
|||
MOZ_ASSERT(completeCallback);
|
||||
MOZ_ASSERT(completeCallback->mCallback);
|
||||
|
||||
unused << completeCallback->mCallback->Run();
|
||||
Unused << completeCallback->mCallback->Run();
|
||||
}
|
||||
|
||||
mCompleteCallbacks.Clear();
|
||||
|
@ -1651,7 +1651,7 @@ FileHandle::SendCompleteNotification(bool aAborted)
|
|||
AssertIsOnBackgroundThread();
|
||||
|
||||
if (!IsActorDestroyed()) {
|
||||
unused << SendComplete(aAborted);
|
||||
Unused << SendComplete(aAborted);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2280,7 +2280,7 @@ ProgressRunnable::Run()
|
|||
{
|
||||
AssertIsOnBackgroundThread();
|
||||
|
||||
unused << mCopyFileHandleOp->SendProgress(mProgress, mProgressMax);
|
||||
Unused << mCopyFileHandleOp->SendProgress(mProgress, mProgressMax);
|
||||
|
||||
mCopyFileHandleOp = nullptr;
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ FileSystemTaskBase::HandleResult()
|
|||
return;
|
||||
}
|
||||
if (mRequestParent && mRequestParent->IsRunning()) {
|
||||
unused << mRequestParent->Send__delete__(mRequestParent,
|
||||
Unused << mRequestParent->Send__delete__(mRequestParent,
|
||||
GetRequestResult());
|
||||
} else {
|
||||
HandlerCallback();
|
||||
|
|
|
@ -98,41 +98,41 @@ FMRadioParent::Notify(const FMRadioEventType& aType)
|
|||
{
|
||||
switch (aType) {
|
||||
case FrequencyChanged:
|
||||
unused << SendNotifyFrequencyChanged(
|
||||
Unused << SendNotifyFrequencyChanged(
|
||||
IFMRadioService::Singleton()->GetFrequency());
|
||||
break;
|
||||
case EnabledChanged:
|
||||
unused << SendNotifyEnabledChanged(
|
||||
Unused << SendNotifyEnabledChanged(
|
||||
IFMRadioService::Singleton()->IsEnabled(),
|
||||
IFMRadioService::Singleton()->GetFrequency());
|
||||
break;
|
||||
case RDSEnabledChanged:
|
||||
unused << SendNotifyRDSEnabledChanged(
|
||||
Unused << SendNotifyRDSEnabledChanged(
|
||||
IFMRadioService::Singleton()->IsRDSEnabled());
|
||||
break;
|
||||
case PIChanged: {
|
||||
Nullable<unsigned short> pi =
|
||||
IFMRadioService::Singleton()->GetPi();
|
||||
unused << SendNotifyPIChanged(!pi.IsNull(),
|
||||
Unused << SendNotifyPIChanged(!pi.IsNull(),
|
||||
pi.IsNull() ? 0 : pi.Value());
|
||||
break;
|
||||
}
|
||||
case PTYChanged: {
|
||||
Nullable<uint8_t> pty = IFMRadioService::Singleton()->GetPty();
|
||||
unused << SendNotifyPTYChanged(!pty.IsNull(),
|
||||
Unused << SendNotifyPTYChanged(!pty.IsNull(),
|
||||
pty.IsNull() ? 0 : pty.Value());
|
||||
break;
|
||||
}
|
||||
case PSChanged: {
|
||||
nsAutoString psname;
|
||||
IFMRadioService::Singleton()->GetPs(psname);
|
||||
unused << SendNotifyPSChanged(psname);
|
||||
Unused << SendNotifyPSChanged(psname);
|
||||
break;
|
||||
}
|
||||
case RadiotextChanged: {
|
||||
nsAutoString radiotext;
|
||||
IFMRadioService::Singleton()->GetRt(radiotext);
|
||||
unused << SendNotifyRadiotextChanged(radiotext);
|
||||
Unused << SendNotifyRadiotextChanged(radiotext);
|
||||
break;
|
||||
}
|
||||
case NewRDSGroup: {
|
||||
|
@ -140,7 +140,7 @@ FMRadioParent::Notify(const FMRadioEventType& aType)
|
|||
DebugOnly<bool> rdsgroupset =
|
||||
IFMRadioService::Singleton()->GetRdsgroup(group);
|
||||
MOZ_ASSERT(rdsgroupset);
|
||||
unused << SendNotifyNewRDSGroup(group);
|
||||
Unused << SendNotifyNewRDSGroup(group);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -34,7 +34,7 @@ FMRadioRequestParent::Run()
|
|||
MOZ_ASSERT(NS_IsMainThread(), "Wrong thread!");
|
||||
|
||||
if (!mActorDestroyed) {
|
||||
unused << Send__delete__(this, mResponseType);
|
||||
Unused << Send__delete__(this, mResponseType);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -29,7 +29,7 @@ NotifyGamepadChange(const T& aInfo)
|
|||
nsTArray<ContentParent*> t;
|
||||
ContentParent::GetAll(t);
|
||||
for(uint32_t i = 0; i < t.Length(); ++i) {
|
||||
unused << t[i]->SendGamepadUpdate(e);
|
||||
Unused << t[i]->SendGamepadUpdate(e);
|
||||
}
|
||||
// If we have a GamepadService in the main process, send directly to it.
|
||||
if (GamepadService::IsServiceRunning()) {
|
||||
|
|
|
@ -63,7 +63,7 @@ class nsIPrincipal;
|
|||
// the geolocation enabled setting
|
||||
#define GEO_SETTINGS_ENABLED "geolocation.enabled"
|
||||
|
||||
using mozilla::unused; // <snicker>
|
||||
using mozilla::Unused; // <snicker>
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
|
@ -1276,7 +1276,7 @@ Geolocation::RemoveRequest(nsGeolocationRequest* aRequest)
|
|||
(mPendingCallbacks.RemoveElement(aRequest) !=
|
||||
mWatchingCallbacks.RemoveElement(aRequest));
|
||||
|
||||
unused << requestWasKnown;
|
||||
Unused << requestWasKnown;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#define GEO_ALA_TYPE_VALUE_FIXED "user-defined"
|
||||
#define GEO_ALA_TYPE_VALUE_NONE "no-location"
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
|
|
|
@ -5313,7 +5313,7 @@ public:
|
|||
void
|
||||
CloseDatabaseWhenIdle(const nsACString& aDatabaseId)
|
||||
{
|
||||
unused << CloseDatabaseWhenIdleInternal(aDatabaseId);
|
||||
Unused << CloseDatabaseWhenIdleInternal(aDatabaseId);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -9592,7 +9592,7 @@ RecvPIndexedDBPermissionRequestConstructor(
|
|||
}
|
||||
|
||||
if (permission != PermissionRequestBase::kPermissionPrompt) {
|
||||
unused <<
|
||||
Unused <<
|
||||
PIndexedDBPermissionRequestParent::Send__delete__(actor, permission);
|
||||
}
|
||||
|
||||
|
@ -9850,7 +9850,7 @@ DatabaseConnection::RollbackWriteTransaction()
|
|||
|
||||
// This may fail if SQLite already rolled back the transaction so ignore any
|
||||
// errors.
|
||||
unused << stmt->Execute();
|
||||
Unused << stmt->Execute();
|
||||
|
||||
mInWriteTransaction = false;
|
||||
}
|
||||
|
@ -9978,7 +9978,7 @@ DatabaseConnection::RollbackSavepoint()
|
|||
|
||||
// This may fail if SQLite already rolled back the savepoint so ignore any
|
||||
// errors.
|
||||
unused << stmt->Execute();
|
||||
Unused << stmt->Execute();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -10068,7 +10068,7 @@ DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint)
|
|||
|
||||
// Release the connection's normal transaction. It's possible that it could
|
||||
// fail, but that isn't a problem here.
|
||||
unused << rollbackStmt->Execute();
|
||||
Unused << rollbackStmt->Execute();
|
||||
|
||||
mInReadTransaction = false;
|
||||
}
|
||||
|
@ -10093,7 +10093,7 @@ DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint)
|
|||
// Truncate the WAL if we were asked to or if we managed to free some space.
|
||||
if (aNeedsCheckpoint || freedSomePages) {
|
||||
rv = CheckpointInternal(CheckpointMode::Truncate);
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
}
|
||||
|
||||
// Finally try to restart the read transaction if we rolled it back earlier.
|
||||
|
@ -10219,7 +10219,7 @@ DatabaseConnection::ReclaimFreePagesWhileIdle(
|
|||
MOZ_ASSERT(mInWriteTransaction);
|
||||
|
||||
// Something failed, make sure we roll everything back.
|
||||
unused << aRollbackStatement->Execute();
|
||||
Unused << aRollbackStatement->Execute();
|
||||
|
||||
mInWriteTransaction = false;
|
||||
|
||||
|
@ -11187,7 +11187,7 @@ ConnectionPool::Start(const nsID& aBackgroundChildLoggingId,
|
|||
}
|
||||
|
||||
if (!transactionInfo->mBlockedOn.Count()) {
|
||||
unused << ScheduleTransaction(transactionInfo,
|
||||
Unused << ScheduleTransaction(transactionInfo,
|
||||
/* aFromQueuedTransactions */ false);
|
||||
}
|
||||
|
||||
|
@ -11280,7 +11280,7 @@ ConnectionPool::WaitForDatabasesToComplete(nsTArray<nsCString>&& aDatabaseIds,
|
|||
}
|
||||
|
||||
if (mayRunCallbackImmediately) {
|
||||
unused << aCallback->Run();
|
||||
Unused << aCallback->Run();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -11352,7 +11352,7 @@ ConnectionPool::Cleanup()
|
|||
MOZ_ASSERT(completeCallback);
|
||||
MOZ_ASSERT(completeCallback->mCallback);
|
||||
|
||||
unused << completeCallback->mCallback->Run();
|
||||
Unused << completeCallback->mCallback->Run();
|
||||
}
|
||||
|
||||
mCompleteCallbacks.Clear();
|
||||
|
@ -11878,7 +11878,7 @@ ConnectionPool::NoteClosedDatabase(DatabaseInfo* aDatabaseInfo)
|
|||
for (uint32_t index = 0, count = scheduledTransactions.Length();
|
||||
index < count;
|
||||
index++) {
|
||||
unused << ScheduleTransaction(scheduledTransactions[index],
|
||||
Unused << ScheduleTransaction(scheduledTransactions[index],
|
||||
/* aFromQueuedTransactions */ false);
|
||||
}
|
||||
|
||||
|
@ -11943,7 +11943,7 @@ ConnectionPool::MaybeFireCallback(DatabasesCompleteCallback* aCallback)
|
|||
}
|
||||
}
|
||||
|
||||
unused << aCallback->mCallback->Run();
|
||||
Unused << aCallback->mCallback->Run();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -12222,7 +12222,7 @@ FinishCallbackWrapper::Run()
|
|||
|
||||
mHasRunOnce = true;
|
||||
|
||||
unused << mCallback->Run();
|
||||
Unused << mCallback->Run();
|
||||
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(
|
||||
mOwningThread->Dispatch(this, NS_DISPATCH_NORMAL)));
|
||||
|
@ -12520,7 +12520,7 @@ TransactionInfo::Schedule()
|
|||
MOZ_ASSERT(connectionPool);
|
||||
connectionPool->AssertIsOnOwningThread();
|
||||
|
||||
unused <<
|
||||
Unused <<
|
||||
connectionPool->ScheduleTransaction(this,
|
||||
/* aFromQueuedTransactions */ false);
|
||||
}
|
||||
|
@ -12910,7 +12910,7 @@ WaitForTransactionsHelper::WaitForTransactions()
|
|||
{
|
||||
MOZ_ASSERT(mState == State::Initial);
|
||||
|
||||
unused << this->Run();
|
||||
Unused << this->Run();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -13142,7 +13142,7 @@ Database::Invalidate()
|
|||
mInvalidated = true;
|
||||
|
||||
if (mActorWasAlive && !mActorDestroyed) {
|
||||
unused << SendInvalidate();
|
||||
Unused << SendInvalidate();
|
||||
}
|
||||
|
||||
if (!Helper::InvalidateTransactions(mTransactions)) {
|
||||
|
@ -14748,7 +14748,7 @@ NormalTransaction::SendCompleteNotification(nsresult aResult)
|
|||
AssertIsOnBackgroundThread();
|
||||
|
||||
if (!IsActorDestroyed()) {
|
||||
unused << SendComplete(aResult);
|
||||
Unused << SendComplete(aResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15047,7 +15047,7 @@ VersionChangeTransaction::SendCompleteNotification(nsresult aResult)
|
|||
openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults;
|
||||
|
||||
if (!IsActorDestroyed()) {
|
||||
unused << SendComplete(aResult);
|
||||
Unused << SendComplete(aResult);
|
||||
}
|
||||
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(openDatabaseOp->Run()));
|
||||
|
@ -16843,7 +16843,7 @@ QuotaClient::PerformIdleMaintenance()
|
|||
|
||||
if (kRunningXPCShellTests) {
|
||||
// We don't want user activity to impact this code if we're running tests.
|
||||
unused << Observe(nullptr, OBSERVER_TOPIC_IDLE, nullptr);
|
||||
Unused << Observe(nullptr, OBSERVER_TOPIC_IDLE, nullptr);
|
||||
} else if (!mIdleObserverRegistered) {
|
||||
nsCOMPtr<nsIIdleService> idleService =
|
||||
do_GetService(kIdleServiceContractId);
|
||||
|
@ -18009,7 +18009,7 @@ AutoProgressHandler::Unregister()
|
|||
|
||||
nsCOMPtr<mozIStorageProgressHandler> oldHandler;
|
||||
nsresult rv = mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler));
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
|
||||
MOZ_ASSERT_IF(NS_SUCCEEDED(rv), oldHandler == this);
|
||||
}
|
||||
|
@ -20932,7 +20932,7 @@ OpenDatabaseOp::SendBlockedNotification()
|
|||
MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose);
|
||||
|
||||
if (!IsActorDestroyed()) {
|
||||
unused << SendBlocked(mMetadata->mCommonMetadata.version());
|
||||
Unused << SendBlocked(mMetadata->mCommonMetadata.version());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21095,7 +21095,7 @@ OpenDatabaseOp::SendResults()
|
|||
response = ClampResultCode(mResultCode);
|
||||
}
|
||||
|
||||
unused <<
|
||||
Unused <<
|
||||
PBackgroundIDBFactoryRequestParent::Send__delete__(this, response);
|
||||
}
|
||||
|
||||
|
@ -21821,7 +21821,7 @@ DeleteDatabaseOp::SendBlockedNotification()
|
|||
MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose);
|
||||
|
||||
if (!IsActorDestroyed()) {
|
||||
unused << SendBlocked(0);
|
||||
Unused << SendBlocked(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21840,7 +21840,7 @@ DeleteDatabaseOp::SendResults()
|
|||
response = ClampResultCode(mResultCode);
|
||||
}
|
||||
|
||||
unused <<
|
||||
Unused <<
|
||||
PBackgroundIDBFactoryRequestParent::Send__delete__(this, response);
|
||||
}
|
||||
|
||||
|
@ -22914,7 +22914,7 @@ CreateFileOp::SendResults()
|
|||
response = ClampResultCode(mResultCode);
|
||||
}
|
||||
|
||||
unused <<
|
||||
Unused <<
|
||||
PBackgroundIDBDatabaseRequestParent::Send__delete__(this, response);
|
||||
}
|
||||
|
||||
|
@ -27272,7 +27272,7 @@ PermissionRequestHelper::OnPromptComplete(PermissionValue aPermissionValue)
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
if (!mActorDestroyed) {
|
||||
unused <<
|
||||
Unused <<
|
||||
PIndexedDBPermissionRequestParent::Send__delete__(this, aPermissionValue);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ CancelableRunnableWrapper::Cancel()
|
|||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
unused << Run();
|
||||
Unused << Run();
|
||||
MOZ_ASSERT(!mRunnable);
|
||||
|
||||
return NS_OK;
|
||||
|
@ -4108,7 +4108,7 @@ BlobParent::NoteDyingRemoteBlobImpl()
|
|||
mBlobImpl = nullptr;
|
||||
mRemoteBlobImpl = nullptr;
|
||||
|
||||
unused << PBlobParent::Send__delete__(this);
|
||||
Unused << PBlobParent::Send__delete__(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/TabParent.h"
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
NS_IMPL_ISUPPORTS(ColorPickerParent::ColorPickerShownCallback,
|
||||
|
@ -22,7 +22,7 @@ NS_IMETHODIMP
|
|||
ColorPickerParent::ColorPickerShownCallback::Update(const nsAString& aColor)
|
||||
{
|
||||
if (mColorPickerParent) {
|
||||
unused << mColorPickerParent->SendUpdate(nsString(aColor));
|
||||
Unused << mColorPickerParent->SendUpdate(nsString(aColor));
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ NS_IMETHODIMP
|
|||
ColorPickerParent::ColorPickerShownCallback::Done(const nsAString& aColor)
|
||||
{
|
||||
if (mColorPickerParent) {
|
||||
unused << mColorPickerParent->Send__delete__(mColorPickerParent,
|
||||
Unused << mColorPickerParent->Send__delete__(mColorPickerParent,
|
||||
nsString(aColor));
|
||||
}
|
||||
return NS_OK;
|
||||
|
@ -68,7 +68,7 @@ bool
|
|||
ColorPickerParent::RecvOpen()
|
||||
{
|
||||
if (!CreateColorPicker()) {
|
||||
unused << Send__delete__(this, mInitialColor);
|
||||
Unused << Send__delete__(this, mInitialColor);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -349,7 +349,7 @@ private:
|
|||
}
|
||||
// The XPCOM refcount drives the IPC lifecycle; see also
|
||||
// DeallocPCycleCollectWithLogsChild.
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
}
|
||||
|
||||
nsresult UnimplementedProperty()
|
||||
|
@ -813,7 +813,7 @@ ContentChild::ProvideWindowCommon(TabChild* aTabOpener,
|
|||
ipcContext->get_PopupIPCTabContext().opener() = aTabOpener;
|
||||
}
|
||||
|
||||
unused << SendPBrowserConstructor(
|
||||
Unused << SendPBrowserConstructor(
|
||||
// We release this ref in DeallocPBrowserChild
|
||||
RefPtr<TabChild>(newChild).forget().take(),
|
||||
tabId, *ipcContext, aChromeFlags,
|
||||
|
@ -2479,7 +2479,7 @@ OnFinishNuwaPreparation()
|
|||
}
|
||||
|
||||
// This will create the actor.
|
||||
unused << mozilla::dom::NuwaChild::GetSingleton();
|
||||
Unused << mozilla::dom::NuwaChild::GetSingleton();
|
||||
|
||||
MakeNuwaProcess();
|
||||
}
|
||||
|
@ -2604,17 +2604,17 @@ ContentChild::RecvFileSystemUpdate(const nsString& aFsName,
|
|||
}
|
||||
#else
|
||||
// Remove warnings about unused arguments
|
||||
unused << aFsName;
|
||||
unused << aVolumeName;
|
||||
unused << aState;
|
||||
unused << aMountGeneration;
|
||||
unused << aIsMediaPresent;
|
||||
unused << aIsSharing;
|
||||
unused << aIsFormatting;
|
||||
unused << aIsFake;
|
||||
unused << aIsUnmounting;
|
||||
unused << aIsRemovable;
|
||||
unused << aIsHotSwappable;
|
||||
Unused << aFsName;
|
||||
Unused << aVolumeName;
|
||||
Unused << aState;
|
||||
Unused << aMountGeneration;
|
||||
Unused << aIsMediaPresent;
|
||||
Unused << aIsSharing;
|
||||
Unused << aIsFormatting;
|
||||
Unused << aIsFake;
|
||||
Unused << aIsUnmounting;
|
||||
Unused << aIsRemovable;
|
||||
Unused << aIsHotSwappable;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
@ -2629,7 +2629,7 @@ ContentChild::RecvVolumeRemoved(const nsString& aFsName)
|
|||
}
|
||||
#else
|
||||
// Remove warnings about unused arguments
|
||||
unused << aFsName;
|
||||
Unused << aFsName;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
@ -2821,7 +2821,7 @@ ContentChild::RecvGatherProfile()
|
|||
profileCString = EmptyCString();
|
||||
}
|
||||
|
||||
unused << SendProfile(profileCString);
|
||||
Unused << SendProfile(profileCString);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2932,7 +2932,7 @@ ContentChild::RecvShutdown()
|
|||
|
||||
// Ignore errors here. If this fails, the parent will kill us after a
|
||||
// timeout.
|
||||
unused << SendFinishShutdown();
|
||||
Unused << SendFinishShutdown();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -538,13 +538,13 @@ public:
|
|||
private:
|
||||
virtual bool RecvCloseGCLog() override
|
||||
{
|
||||
unused << mSink->CloseGCLog();
|
||||
Unused << mSink->CloseGCLog();
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool RecvCloseCCLog() override
|
||||
{
|
||||
unused << mSink->CloseCCLog();
|
||||
Unused << mSink->CloseCCLog();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -555,7 +555,7 @@ private:
|
|||
nsCOMPtr<nsIFile> gcLog, ccLog;
|
||||
mSink->GetGcLog(getter_AddRefs(gcLog));
|
||||
mSink->GetCcLog(getter_AddRefs(ccLog));
|
||||
unused << mCallback->OnDump(gcLog, ccLog, /* parent = */ false);
|
||||
Unused << mCallback->OnDump(gcLog, ccLog, /* parent = */ false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1534,7 +1534,7 @@ ContentParent::Init()
|
|||
// If accessibility is running in chrome process then start it in content
|
||||
// process.
|
||||
if (nsIPresShell::IsAccessibilityActive()) {
|
||||
unused << SendActivateA11y();
|
||||
Unused << SendActivateA11y();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -1551,7 +1551,7 @@ ContentParent::ForwardKnownInfo()
|
|||
RefPtr<nsVolumeService> vs = nsVolumeService::GetSingleton();
|
||||
if (vs && !mIsForBrowser) {
|
||||
vs->GetVolumesForIPC(&volumeInfo);
|
||||
unused << SendVolumes(volumeInfo);
|
||||
Unused << SendVolumes(volumeInfo);
|
||||
}
|
||||
#endif /* MOZ_WIDGET_GONK */
|
||||
|
||||
|
@ -2252,7 +2252,7 @@ ContentParent::NotifyTabDestroyed(const TabId& aTabId,
|
|||
// Need to close undeleted ContentPermissionRequestParents before tab is closed.
|
||||
for (auto& permissionRequestParent : parentArray) {
|
||||
nsTArray<PermissionChoice> emptyChoices;
|
||||
unused << PContentPermissionRequestParent::Send__delete__(permissionRequestParent,
|
||||
Unused << PContentPermissionRequestParent::Send__delete__(permissionRequestParent,
|
||||
false,
|
||||
emptyChoices);
|
||||
}
|
||||
|
@ -2533,7 +2533,7 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority,
|
|||
nsCString vendor(gAppData->vendor);
|
||||
|
||||
// Sending all information to content process.
|
||||
unused << SendAppInfo(version, buildID, name, UAName, ID, vendor);
|
||||
Unused << SendAppInfo(version, buildID, name, UAName, ID, vendor);
|
||||
}
|
||||
|
||||
// Initialize the message manager (and load delayed scripts) now that we
|
||||
|
@ -2573,7 +2573,7 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority,
|
|||
|
||||
if (gAppData) {
|
||||
// Sending all information to content process.
|
||||
unused << SendAppInit();
|
||||
Unused << SendAppInit();
|
||||
}
|
||||
|
||||
nsStyleSheetService *sheetService = nsStyleSheetService::GetInstance();
|
||||
|
@ -2585,21 +2585,21 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority,
|
|||
for (uint32_t i = 0; i < agentSheets.Length(); i++) {
|
||||
URIParams uri;
|
||||
SerializeURI(agentSheets[i]->GetSheetURI(), uri);
|
||||
unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AGENT_SHEET);
|
||||
Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AGENT_SHEET);
|
||||
}
|
||||
|
||||
nsCOMArray<nsIStyleSheet>& userSheets = *sheetService->UserStyleSheets();
|
||||
for (uint32_t i = 0; i < userSheets.Length(); i++) {
|
||||
URIParams uri;
|
||||
SerializeURI(userSheets[i]->GetSheetURI(), uri);
|
||||
unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::USER_SHEET);
|
||||
Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::USER_SHEET);
|
||||
}
|
||||
|
||||
nsCOMArray<nsIStyleSheet>& authorSheets = *sheetService->AuthorStyleSheets();
|
||||
for (uint32_t i = 0; i < authorSheets.Length(); i++) {
|
||||
URIParams uri;
|
||||
SerializeURI(authorSheets[i]->GetSheetURI(), uri);
|
||||
unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AUTHOR_SHEET);
|
||||
Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AUTHOR_SHEET);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3071,7 +3071,7 @@ ContentParent::OnNewProcessCreated(uint32_t aPid,
|
|||
sNuwaPrefUpdates->Length() : 0;
|
||||
// Resend pref updates to the forked child.
|
||||
for (size_t i = 0; i < numNuwaPrefUpdates; i++) {
|
||||
mozilla::unused << content->SendPreferenceUpdate(sNuwaPrefUpdates->ElementAt(i));
|
||||
mozilla::Unused << content->SendPreferenceUpdate(sNuwaPrefUpdates->ElementAt(i));
|
||||
}
|
||||
|
||||
// Update offline settings.
|
||||
|
@ -3085,8 +3085,8 @@ ContentParent::OnNewProcessCreated(uint32_t aPid,
|
|||
RecvGetXPCOMProcessAttributes(&isOffline, &isConnected,
|
||||
&isLangRTL, &unusedDictionaries,
|
||||
&clipboardCaps, &domainPolicy, &initialData);
|
||||
mozilla::unused << content->SendSetOffline(isOffline);
|
||||
mozilla::unused << content->SendSetConnectivity(isConnected);
|
||||
mozilla::Unused << content->SendSetOffline(isOffline);
|
||||
mozilla::Unused << content->SendSetConnectivity(isConnected);
|
||||
MOZ_ASSERT(!clipboardCaps.supportsSelectionClipboard() &&
|
||||
!clipboardCaps.supportsFindClipboard(),
|
||||
"Unexpected values");
|
||||
|
@ -3150,7 +3150,7 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
if (!strcmp(aTopic, "memory-pressure") &&
|
||||
!StringEndsWith(nsDependentString(aData),
|
||||
NS_LITERAL_STRING("-no-forward"))) {
|
||||
unused << SendFlushMemory(nsDependentString(aData));
|
||||
Unused << SendFlushMemory(nsDependentString(aData));
|
||||
}
|
||||
// listening for remotePrefs...
|
||||
else if (!strcmp(aTopic, "nsPref:changed")) {
|
||||
|
@ -3199,22 +3199,22 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
else if (!strcmp(aTopic, "child-gc-request")){
|
||||
unused << SendGarbageCollect();
|
||||
Unused << SendGarbageCollect();
|
||||
}
|
||||
else if (!strcmp(aTopic, "child-cc-request")){
|
||||
unused << SendCycleCollect();
|
||||
Unused << SendCycleCollect();
|
||||
}
|
||||
else if (!strcmp(aTopic, "child-mmu-request")){
|
||||
unused << SendMinimizeMemoryUsage();
|
||||
Unused << SendMinimizeMemoryUsage();
|
||||
}
|
||||
else if (!strcmp(aTopic, "last-pb-context-exited")) {
|
||||
unused << SendLastPrivateDocShellDestroyed();
|
||||
Unused << SendLastPrivateDocShellDestroyed();
|
||||
}
|
||||
else if (!strcmp(aTopic, "file-watcher-update")) {
|
||||
nsCString creason;
|
||||
CopyUTF16toUTF8(aData, creason);
|
||||
DeviceStorageFile* file = static_cast<DeviceStorageFile*>(aSubject);
|
||||
unused << SendFilePathUpdate(file->mStorageType, file->mStorageName, file->mPath, creason);
|
||||
Unused << SendFilePathUpdate(file->mStorageType, file->mStorageName, file->mPath, creason);
|
||||
}
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
else if(!strcmp(aTopic, NS_VOLUME_STATE_CHANGED)) {
|
||||
|
@ -3247,17 +3247,17 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
vol->GetIsRemovable(&isRemovable);
|
||||
vol->GetIsHotSwappable(&isHotSwappable);
|
||||
|
||||
unused << SendFileSystemUpdate(volName, mountPoint, state,
|
||||
Unused << SendFileSystemUpdate(volName, mountPoint, state,
|
||||
mountGeneration, isMediaPresent,
|
||||
isSharing, isFormatting, isFake,
|
||||
isUnmounting, isRemovable, isHotSwappable);
|
||||
} else if (!strcmp(aTopic, "phone-state-changed")) {
|
||||
nsString state(aData);
|
||||
unused << SendNotifyPhoneStateChange(state);
|
||||
Unused << SendNotifyPhoneStateChange(state);
|
||||
}
|
||||
else if(!strcmp(aTopic, NS_VOLUME_REMOVED)) {
|
||||
nsString volName(aData);
|
||||
unused << SendVolumeRemoved(volName);
|
||||
Unused << SendVolumeRemoved(volName);
|
||||
}
|
||||
#endif
|
||||
#ifdef ACCESSIBILITY
|
||||
|
@ -3265,11 +3265,11 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
// gets initiated in chrome process.
|
||||
else if (aData && (*aData == '1') &&
|
||||
!strcmp(aTopic, "a11y-init-or-shutdown")) {
|
||||
unused << SendActivateA11y();
|
||||
Unused << SendActivateA11y();
|
||||
}
|
||||
#endif
|
||||
else if (!strcmp(aTopic, "app-theme-changed")) {
|
||||
unused << SendOnAppThemeChanged();
|
||||
Unused << SendOnAppThemeChanged();
|
||||
}
|
||||
#ifdef MOZ_ENABLE_PROFILER_SPS
|
||||
else if (!strcmp(aTopic, "profiler-started")) {
|
||||
|
@ -3280,21 +3280,21 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
params->GetInterval(&interval);
|
||||
const nsTArray<nsCString>& features = params->GetFeatures();
|
||||
const nsTArray<nsCString>& threadFilterNames = params->GetThreadFilterNames();
|
||||
unused << SendStartProfiler(entries, interval, features, threadFilterNames);
|
||||
Unused << SendStartProfiler(entries, interval, features, threadFilterNames);
|
||||
}
|
||||
else if (!strcmp(aTopic, "profiler-stopped")) {
|
||||
unused << SendStopProfiler();
|
||||
Unused << SendStopProfiler();
|
||||
}
|
||||
else if (!strcmp(aTopic, "profiler-paused")) {
|
||||
unused << SendPauseProfiler(true);
|
||||
Unused << SendPauseProfiler(true);
|
||||
}
|
||||
else if (!strcmp(aTopic, "profiler-resumed")) {
|
||||
unused << SendPauseProfiler(false);
|
||||
Unused << SendPauseProfiler(false);
|
||||
}
|
||||
else if (!strcmp(aTopic, "profiler-subprocess-gather")) {
|
||||
mGatherer = static_cast<ProfileGatherer*>(aSubject);
|
||||
mGatherer->WillGatherOOPProfile();
|
||||
unused << SendGatherProfile();
|
||||
Unused << SendGatherProfile();
|
||||
}
|
||||
else if (!strcmp(aTopic, "profiler-subprocess")) {
|
||||
nsCOMPtr<nsIProfileSaveEvent> pse = do_QueryInterface(aSubject);
|
||||
|
@ -3307,7 +3307,7 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
}
|
||||
#endif
|
||||
else if (!strcmp(aTopic, "gmp-changed")) {
|
||||
unused << SendNotifyGMPsChanged();
|
||||
Unused << SendNotifyGMPsChanged();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -4229,7 +4229,7 @@ ContentParent::RecvGetSystemMemory(const uint64_t& aGetterId)
|
|||
memoryTotal = mozilla::hal::GetTotalSystemMemoryLevel();
|
||||
#endif
|
||||
|
||||
unused << SendSystemMemoryAvailable(aGetterId, memoryTotal);
|
||||
Unused << SendSystemMemoryAvailable(aGetterId, memoryTotal);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -4341,7 +4341,7 @@ bool
|
|||
ContentParent::RecvDisableNotifications(const IPC::Principal& aPrincipal)
|
||||
{
|
||||
if (HasNotificationPermission(aPrincipal)) {
|
||||
unused << Notification::RemovePermission(aPrincipal);
|
||||
Unused << Notification::RemovePermission(aPrincipal);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -4350,7 +4350,7 @@ bool
|
|||
ContentParent::RecvOpenNotificationSettings(const IPC::Principal& aPrincipal)
|
||||
{
|
||||
if (HasNotificationPermission(aPrincipal)) {
|
||||
unused << Notification::OpenSettings(aPrincipal);
|
||||
Unused << Notification::OpenSettings(aPrincipal);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -4504,7 +4504,7 @@ ContentParent::RecvSetGeolocationHigherAccuracy(const bool& aEnable)
|
|||
NS_IMETHODIMP
|
||||
ContentParent::HandleEvent(nsIDOMGeoPosition* postion)
|
||||
{
|
||||
unused << SendGeolocationUpdate(GeoPosition(postion));
|
||||
Unused << SendGeolocationUpdate(GeoPosition(postion));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -4515,7 +4515,7 @@ ContentParent::HandleEvent(nsIDOMGeoPositionError* postionError)
|
|||
nsresult rv;
|
||||
rv = postionError->GetCode(&errorCode);
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
unused << SendGeolocationError(errorCode);
|
||||
Unused << SendGeolocationError(errorCode);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -5084,7 +5084,7 @@ ContentParent::NotifyUpdatedDictionaries()
|
|||
spellChecker->GetDictionaryList(&dictionaries);
|
||||
|
||||
for (size_t i = 0; i < processes.Length(); ++i) {
|
||||
unused << processes[i]->SendUpdateDictionaryList(dictionaries);
|
||||
Unused << processes[i]->SendUpdateDictionaryList(dictionaries);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5210,7 +5210,7 @@ ContentParent::RecvPOfflineCacheUpdateConstructor(POfflineCacheUpdateParent* aAc
|
|||
nsresult rv = update->Schedule(aManifestURI, aDocumentURI, aLoadingPrincipal, aStickDocument);
|
||||
if (NS_FAILED(rv) && IsAlive()) {
|
||||
// Inform the child of failure.
|
||||
unused << update->SendFinish(false, false);
|
||||
Unused << update->SendFinish(false, false);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -5289,7 +5289,7 @@ ContentParent::MaybeInvokeDragSession(TabParent* aParent)
|
|||
this);
|
||||
uint32_t action;
|
||||
session->GetDragAction(&action);
|
||||
mozilla::unused << SendInvokeDragSession(dataTransfers, action);
|
||||
mozilla::Unused << SendInvokeDragSession(dataTransfers, action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5746,7 +5746,7 @@ NS_IMPL_ISUPPORTS(ParentIdleListener, nsIObserver)
|
|||
|
||||
NS_IMETHODIMP
|
||||
ParentIdleListener::Observe(nsISupports*, const char* aTopic, const char16_t* aData) {
|
||||
mozilla::unused << mParent->SendNotifyIdleObserver(mObserver,
|
||||
mozilla::Unused << mParent->SendNotifyIdleObserver(mObserver,
|
||||
nsDependentCString(aTopic),
|
||||
nsDependentString(aData));
|
||||
return NS_OK;
|
||||
|
|
|
@ -58,7 +58,7 @@ SetUpSandboxEnvironment()
|
|||
|
||||
// Change the gecko defined temp directory to our low integrity one.
|
||||
// Undefine returns a failure if the property is not already set.
|
||||
unused << nsDirectoryService::gService->Undefine(NS_OS_TEMP_DIR);
|
||||
Unused << nsDirectoryService::gService->Undefine(NS_OS_TEMP_DIR);
|
||||
rv = nsDirectoryService::gService->Set(NS_OS_TEMP_DIR, lowIntegrityTemp);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "mozilla/dom/TabParent.h"
|
||||
#include "mozilla/dom/ipc/BlobParent.h"
|
||||
|
||||
using mozilla::unused;
|
||||
using mozilla::Unused;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
NS_IMPL_ISUPPORTS(FilePickerParent::FilePickerShownCallback,
|
||||
|
@ -125,7 +125,7 @@ FilePickerParent::SendFiles(const nsTArray<RefPtr<BlobImpl>>& aBlobs)
|
|||
|
||||
InputFiles inblobs;
|
||||
inblobs.blobsParent().SwapElements(blobs);
|
||||
unused << Send__delete__(this, inblobs, mResult);
|
||||
Unused << Send__delete__(this, inblobs, mResult);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -134,7 +134,7 @@ FilePickerParent::Done(int16_t aResult)
|
|||
mResult = aResult;
|
||||
|
||||
if (mResult != nsIFilePicker::returnOK) {
|
||||
unused << Send__delete__(this, void_t(), mResult);
|
||||
Unused << Send__delete__(this, void_t(), mResult);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ FilePickerParent::Done(int16_t aResult)
|
|||
mRunnable = new FileSizeAndDateRunnable(this, blobs);
|
||||
// Dispatch to background thread to do I/O:
|
||||
if (!mRunnable->Dispatch()) {
|
||||
unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel);
|
||||
Unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ FilePickerParent::RecvOpen(const int16_t& aSelectedType,
|
|||
const nsString& aDisplayDirectory)
|
||||
{
|
||||
if (!CreateFilePicker()) {
|
||||
unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel);
|
||||
Unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -239,7 +239,7 @@ OnNuwaProcessReady()
|
|||
NuwaChild* nuwaChild = NuwaChild::GetSingleton();
|
||||
MOZ_ASSERT(nuwaChild);
|
||||
|
||||
mozilla::unused << nuwaChild->SendNotifyReady();
|
||||
mozilla::Unused << nuwaChild->SendNotifyReady();
|
||||
}
|
||||
|
||||
NS_EXPORT void
|
||||
|
|
|
@ -125,7 +125,7 @@ NuwaParent::CloneProtocol(Channel* aChannel,
|
|||
actor->ActorConstructed();
|
||||
|
||||
// The actor can finally be deleted after fully constructed.
|
||||
mozilla::unused << actor->Send__delete__(actor);
|
||||
mozilla::Unused << actor->Send__delete__(actor);
|
||||
});
|
||||
MOZ_ASSERT(nested);
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(
|
||||
|
@ -232,7 +232,7 @@ NuwaParent::ForkNewProcess(uint32_t& aPid,
|
|||
RefPtr<NuwaParent> self = this;
|
||||
nsCOMPtr<nsIRunnable> runnable = NS_NewRunnableFunction([self] () -> void
|
||||
{
|
||||
mozilla::unused << self->SendFork();
|
||||
mozilla::Unused << self->SendFork();
|
||||
});
|
||||
MOZ_ASSERT(runnable);
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(mWorkerThread->Dispatch(runnable,
|
||||
|
|
|
@ -319,7 +319,7 @@ SendTestOnlyNotification(const char* aMessage)
|
|||
nsCOMPtr<nsIMessageBroadcaster> ppmm =
|
||||
do_GetService("@mozilla.org/parentprocessmessagemanager;1");
|
||||
|
||||
mozilla::unused << ppmm->BroadcastAsyncMessage(
|
||||
mozilla::Unused << ppmm->BroadcastAsyncMessage(
|
||||
message, JS::NullHandleValue, JS::NullHandleValue, cx, 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ HangMonitorChild::NotifySlowScriptAsync(TabId aTabId,
|
|||
unsigned aLineNo)
|
||||
{
|
||||
if (mIPCOpen) {
|
||||
unused << SendHangEvidence(SlowScriptData(aTabId, aFileName, aLineNo));
|
||||
Unused << SendHangEvidence(SlowScriptData(aTabId, aFileName, aLineNo));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -429,7 +429,7 @@ HangMonitorChild::NotifyPluginHangAsync(uint32_t aPluginId)
|
|||
|
||||
// bounce back to parent on background thread
|
||||
if (mIPCOpen) {
|
||||
unused << SendHangEvidence(PluginHangData(aPluginId));
|
||||
Unused << SendHangEvidence(PluginHangData(aPluginId));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -623,7 +623,7 @@ HangMonitorParent::TerminateScript()
|
|||
MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop());
|
||||
|
||||
if (mIPCOpen) {
|
||||
unused << SendTerminateScript();
|
||||
Unused << SendTerminateScript();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -633,7 +633,7 @@ HangMonitorParent::BeginStartingDebugger()
|
|||
MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop());
|
||||
|
||||
if (mIPCOpen) {
|
||||
unused << SendBeginStartingDebugger();
|
||||
Unused << SendBeginStartingDebugger();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -643,7 +643,7 @@ HangMonitorParent::EndStartingDebugger()
|
|||
MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop());
|
||||
|
||||
if (mIPCOpen) {
|
||||
unused << SendEndStartingDebugger();
|
||||
Unused << SendEndStartingDebugger();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1159,11 +1159,11 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority,
|
|||
ProcessPriorityManagerImpl::GetSingleton()->
|
||||
NotifyProcessPriorityChanged(this, oldPriority);
|
||||
|
||||
unused << mContentParent->SendNotifyProcessPriorityChanged(mPriority);
|
||||
Unused << mContentParent->SendNotifyProcessPriorityChanged(mPriority);
|
||||
}
|
||||
|
||||
if (aPriority < PROCESS_PRIORITY_FOREGROUND) {
|
||||
unused << mContentParent->SendFlushMemory(NS_LITERAL_STRING("lowering-priority"));
|
||||
Unused << mContentParent->SendFlushMemory(NS_LITERAL_STRING("lowering-priority"));
|
||||
}
|
||||
|
||||
FireTestOnlyObserverNotification("process-priority-set",
|
||||
|
@ -1377,7 +1377,7 @@ ProcessLRUPool::CalculateLRULevel(uint32_t aLRU)
|
|||
// (End of buffer)
|
||||
|
||||
int exp;
|
||||
unused << frexp(static_cast<double>(aLRU), &exp);
|
||||
Unused << frexp(static_cast<double>(aLRU), &exp);
|
||||
uint32_t level = std::max(exp - 1, 0);
|
||||
|
||||
return std::min(mLRUPoolLevels - 1, level);
|
||||
|
|
|
@ -26,7 +26,7 @@ ScreenManagerParent::ScreenManagerParent(uint32_t* aNumberOfScreens,
|
|||
MOZ_CRASH("Couldn't get nsIScreenManager from ScreenManagerParent.");
|
||||
}
|
||||
|
||||
unused << RecvRefresh(aNumberOfScreens, aSystemDefaultScale, aSuccess);
|
||||
Unused << RecvRefresh(aNumberOfScreens, aSystemDefaultScale, aSuccess);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -64,7 +64,7 @@ ScreenManagerParent::RecvScreenRefresh(const uint32_t& aId,
|
|||
}
|
||||
|
||||
ScreenDetails details;
|
||||
unused << ExtractScreenDetails(screen, details);
|
||||
Unused << ExtractScreenDetails(screen, details);
|
||||
|
||||
*aRetVal = details;
|
||||
*aSuccess = true;
|
||||
|
|
|
@ -395,7 +395,7 @@ private:
|
|||
|
||||
// Check in case ActorDestroy was called after RecvDestroy message.
|
||||
if (mTabChild->IPCOpen()) {
|
||||
unused << PBrowserChild::Send__delete__(mTabChild);
|
||||
Unused << PBrowserChild::Send__delete__(mTabChild);
|
||||
}
|
||||
|
||||
mTabChild = nullptr;
|
||||
|
@ -699,7 +699,7 @@ TabChild::Observe(nsISupports *aSubject,
|
|||
bool active = activeStr.EqualsLiteral("active");
|
||||
if (active != mAudioChannelsActive[audioChannel]) {
|
||||
mAudioChannelsActive[audioChannel] = active;
|
||||
unused << SendAudioChannelActivityNotification(audioChannel, active);
|
||||
Unused << SendAudioChannelActivityNotification(audioChannel, active);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -943,7 +943,7 @@ NS_IMETHODIMP
|
|||
TabChild::SetDimensions(uint32_t aFlags, int32_t aX, int32_t aY,
|
||||
int32_t aCx, int32_t aCy)
|
||||
{
|
||||
unused << PBrowserChild::SendSetDimensions(aFlags, aX, aY, aCx, aCy);
|
||||
Unused << PBrowserChild::SendSetDimensions(aFlags, aX, aY, aCx, aCy);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -1992,7 +1992,7 @@ TabChild::RecvCompositionEvent(const WidgetCompositionEvent& event)
|
|||
WidgetCompositionEvent localEvent(event);
|
||||
localEvent.widget = mPuppetWidget;
|
||||
APZCCallbackHelper::DispatchWidgetEvent(localEvent);
|
||||
unused << SendOnEventNeedingAckHandled(event.mMessage);
|
||||
Unused << SendOnEventNeedingAckHandled(event.mMessage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2002,7 +2002,7 @@ TabChild::RecvSelectionEvent(const WidgetSelectionEvent& event)
|
|||
WidgetSelectionEvent localEvent(event);
|
||||
localEvent.widget = mPuppetWidget;
|
||||
APZCCallbackHelper::DispatchWidgetEvent(localEvent);
|
||||
unused << SendOnEventNeedingAckHandled(event.mMessage);
|
||||
Unused << SendOnEventNeedingAckHandled(event.mMessage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ private:
|
|||
// Our TabParent may have been destroyed already. If so, don't send any
|
||||
// fds over, just go back to the IO thread and close them.
|
||||
if (!tabParent->IsDestroyed()) {
|
||||
mozilla::unused << tabParent->SendCacheFileDescriptor(mPath, fd);
|
||||
mozilla::Unused << tabParent->SendCacheFileDescriptor(mPath, fd);
|
||||
}
|
||||
|
||||
if (!mFD) {
|
||||
|
@ -232,7 +232,7 @@ private:
|
|||
// Intentionally leak the runnable (but not the fd) rather
|
||||
// than crash when trying to release a main thread object
|
||||
// off the main thread.
|
||||
mozilla::unused << mTabParent.forget();
|
||||
mozilla::Unused << mTabParent.forget();
|
||||
CloseFile();
|
||||
}
|
||||
}
|
||||
|
@ -549,7 +549,7 @@ TabParent::DestroyInternal()
|
|||
// If this fails, it's most likely due to a content-process crash,
|
||||
// and auto-cleanup will kick in. Otherwise, the child side will
|
||||
// destroy itself and send back __delete__().
|
||||
unused << SendDestroy();
|
||||
Unused << SendDestroy();
|
||||
|
||||
if (RenderFrameParent* frame = GetRenderFrame()) {
|
||||
RemoveTabParentFromTable(frame->GetLayersId());
|
||||
|
@ -769,7 +769,7 @@ TabParent::LoadURL(nsIURI* aURI)
|
|||
if (mSendOfflineStatus && NS_IsAppOffline(appId)) {
|
||||
// If the app is offline in the parent process
|
||||
// pass that state to the child process as well
|
||||
unused << SendAppOfflineStatus(appId, true);
|
||||
Unused << SendAppOfflineStatus(appId, true);
|
||||
}
|
||||
mSendOfflineStatus = false;
|
||||
|
||||
|
@ -779,7 +779,7 @@ TabParent::LoadURL(nsIURI* aURI)
|
|||
return;
|
||||
}
|
||||
|
||||
unused << SendLoadURL(spec, configuration, GetShowInfo());
|
||||
Unused << SendLoadURL(spec, configuration, GetShowInfo());
|
||||
|
||||
// If this app is a packaged app then we can speed startup by sending over
|
||||
// the file descriptor for the "application.zip" file that it will
|
||||
|
@ -824,7 +824,7 @@ TabParent::LoadURL(nsIURI* aURI)
|
|||
if (cachedFd) {
|
||||
FileDescriptor::PlatformHandleType handle =
|
||||
FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(cachedFd));
|
||||
unused << SendCacheFileDescriptor(path, FileDescriptor(handle));
|
||||
Unused << SendCacheFileDescriptor(path, FileDescriptor(handle));
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
|
@ -863,11 +863,11 @@ TabParent::Show(const ScreenIntSize& size, bool aParentIsActive)
|
|||
&success);
|
||||
MOZ_ASSERT(success);
|
||||
AddTabParentToTable(layersId, this);
|
||||
unused << SendPRenderFrameConstructor(renderFrame);
|
||||
Unused << SendPRenderFrameConstructor(renderFrame);
|
||||
}
|
||||
}
|
||||
|
||||
unused << SendShow(size, GetShowInfo(), textureFactoryIdentifier,
|
||||
Unused << SendShow(size, GetShowInfo(), textureFactoryIdentifier,
|
||||
layersId, renderFrame, aParentIsActive);
|
||||
}
|
||||
|
||||
|
@ -962,7 +962,7 @@ TabParent::UpdateDimensions(const nsIntRect& rect, const ScreenIntSize& size)
|
|||
|
||||
CSSRect unscaledRect = devicePixelRect / widgetScale;
|
||||
CSSSize unscaledSize = devicePixelSize / widgetScale;
|
||||
unused << SendUpdateDimensions(unscaledRect, unscaledSize,
|
||||
Unused << SendUpdateDimensions(unscaledRect, unscaledSize,
|
||||
widget->SizeMode(),
|
||||
orientation, chromeOffset);
|
||||
}
|
||||
|
@ -972,7 +972,7 @@ void
|
|||
TabParent::UpdateFrame(const FrameMetrics& aFrameMetrics)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendUpdateFrame(aFrameMetrics);
|
||||
Unused << SendUpdateFrame(aFrameMetrics);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -988,7 +988,7 @@ TabParent::UIResolutionChanged()
|
|||
// fails to cache the values, then mDefaultScale.scale might be invalid.
|
||||
// We don't want to send that value to content. Just send -1 for it too in
|
||||
// that case.
|
||||
unused << SendUIResolutionChanged(mDPI, mDPI < 0 ? -1.0 : mDefaultScale.scale);
|
||||
Unused << SendUIResolutionChanged(mDPI, mDPI < 0 ? -1.0 : mDefaultScale.scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1001,7 +1001,7 @@ TabParent::ThemeChanged()
|
|||
// LookAndFeel should have the up-to-date values, which we now
|
||||
// send down to the child. We do this for every remote tab for now,
|
||||
// but bug 1156934 has been filed to do it once per content process.
|
||||
unused << SendThemeChanged(LookAndFeel::GetIntCache());
|
||||
Unused << SendThemeChanged(LookAndFeel::GetIntCache());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1011,7 +1011,7 @@ TabParent::HandleAccessKey(nsTArray<uint32_t>& aCharCodes,
|
|||
const int32_t& aModifierMask)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendHandleAccessKey(aCharCodes, aIsTrusted, aModifierMask);
|
||||
Unused << SendHandleAccessKey(aCharCodes, aIsTrusted, aModifierMask);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1020,7 +1020,7 @@ TabParent::RequestFlingSnap(const FrameMetrics::ViewID& aScrollId,
|
|||
const mozilla::CSSPoint& aDestination)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendRequestFlingSnap(aScrollId, aDestination);
|
||||
Unused << SendRequestFlingSnap(aScrollId, aDestination);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1028,7 +1028,7 @@ void
|
|||
TabParent::AcknowledgeScrollUpdate(const ViewID& aScrollId, const uint32_t& aScrollGeneration)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendAcknowledgeScrollUpdate(aScrollId, aScrollGeneration);
|
||||
Unused << SendAcknowledgeScrollUpdate(aScrollId, aScrollGeneration);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1037,7 +1037,7 @@ void TabParent::HandleDoubleTap(const CSSPoint& aPoint,
|
|||
const ScrollableLayerGuid &aGuid)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendHandleDoubleTap(aPoint, aModifiers, aGuid);
|
||||
Unused << SendHandleDoubleTap(aPoint, aModifiers, aGuid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1046,7 +1046,7 @@ void TabParent::HandleSingleTap(const CSSPoint& aPoint,
|
|||
const ScrollableLayerGuid &aGuid)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendHandleSingleTap(aPoint, aModifiers, aGuid);
|
||||
Unused << SendHandleSingleTap(aPoint, aModifiers, aGuid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1056,7 +1056,7 @@ void TabParent::HandleLongTap(const CSSPoint& aPoint,
|
|||
uint64_t aInputBlockId)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendHandleLongTap(aPoint, aModifiers, aGuid, aInputBlockId);
|
||||
Unused << SendHandleLongTap(aPoint, aModifiers, aGuid, aInputBlockId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1065,7 +1065,7 @@ void TabParent::NotifyAPZStateChange(ViewID aViewId,
|
|||
int aArg)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendNotifyAPZStateChange(aViewId, aChange, aArg);
|
||||
Unused << SendNotifyAPZStateChange(aViewId, aChange, aArg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1073,7 +1073,7 @@ void
|
|||
TabParent::NotifyMouseScrollTestEvent(const ViewID& aScrollId, const nsString& aEvent)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendMouseScrollTestEvent(aScrollId, aEvent);
|
||||
Unused << SendMouseScrollTestEvent(aScrollId, aEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1081,7 +1081,7 @@ void
|
|||
TabParent::NotifyFlushComplete()
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendNotifyFlushComplete();
|
||||
Unused << SendNotifyFlushComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1089,7 +1089,7 @@ void
|
|||
TabParent::Activate()
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendActivate();
|
||||
Unused << SendActivate();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1097,7 +1097,7 @@ void
|
|||
TabParent::Deactivate()
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << SendDeactivate();
|
||||
Unused << SendDeactivate();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1288,7 +1288,7 @@ TabParent::SendMouseEvent(const nsAString& aType, float aX, float aY,
|
|||
int32_t aModifiers, bool aIgnoreRootScrollFrame)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << PBrowserParent::SendMouseEvent(nsString(aType), aX, aY,
|
||||
Unused << PBrowserParent::SendMouseEvent(nsString(aType), aX, aY,
|
||||
aButton, aClickCount,
|
||||
aModifiers, aIgnoreRootScrollFrame);
|
||||
}
|
||||
|
@ -1302,7 +1302,7 @@ TabParent::SendKeyEvent(const nsAString& aType,
|
|||
bool aPreventDefault)
|
||||
{
|
||||
if (!mIsDestroyed) {
|
||||
unused << PBrowserParent::SendKeyEvent(nsString(aType), aKeyCode, aCharCode,
|
||||
Unused << PBrowserParent::SendKeyEvent(nsString(aType), aKeyCode, aCharCode,
|
||||
aModifiers, aPreventDefault);
|
||||
}
|
||||
}
|
||||
|
@ -2909,7 +2909,7 @@ NS_IMETHODIMP
|
|||
TabParent::SetDocShellIsActive(bool isActive)
|
||||
{
|
||||
mDocShellIsActive = isActive;
|
||||
unused << SendSetDocShellIsActive(isActive);
|
||||
Unused << SendSetDocShellIsActive(isActive);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2935,7 +2935,7 @@ TabParent::SuppressDisplayport(bool aEnabled)
|
|||
|
||||
MOZ_ASSERT(mActiveSupressDisplayportCount >= 0);
|
||||
|
||||
unused << SendSuppressDisplayport(aEnabled);
|
||||
Unused << SendSuppressDisplayport(aEnabled);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2962,7 +2962,7 @@ TabParent::SetHasContentOpener(bool aHasContentOpener)
|
|||
NS_IMETHODIMP
|
||||
TabParent::NavigateByKey(bool aForward, bool aForDocumentNavigation)
|
||||
{
|
||||
unused << SendNavigateByKey(aForward, aForDocumentNavigation);
|
||||
Unused << SendNavigateByKey(aForward, aForDocumentNavigation);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -3251,7 +3251,7 @@ TabParent::RecvInvokeDragSession(nsTArray<IPCDataTransfer>&& aTransfers,
|
|||
nsIPresShell* shell = mFrameElement->OwnerDoc()->GetShell();
|
||||
if (!shell) {
|
||||
if (Manager()->IsContentParent()) {
|
||||
unused << Manager()->AsContentParent()->SendEndDragSession(true, true);
|
||||
Unused << Manager()->AsContentParent()->SendEndDragSession(true, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -122,9 +122,9 @@ nsIContentParent::AllocPBrowserParent(const TabId& aTabId,
|
|||
const bool& aIsForApp,
|
||||
const bool& aIsForBrowser)
|
||||
{
|
||||
unused << aCpId;
|
||||
unused << aIsForApp;
|
||||
unused << aIsForBrowser;
|
||||
Unused << aCpId;
|
||||
Unused << aIsForApp;
|
||||
Unused << aIsForBrowser;
|
||||
|
||||
if (!CanOpenBrowser(aContext)) {
|
||||
return nullptr;
|
||||
|
|
|
@ -1691,7 +1691,7 @@ MediaManager::NotifyRecordingStatusChange(nsPIDOMWindow* aWindow,
|
|||
// Forward recording events to parent process.
|
||||
// The events are gathered in chrome process and used for recording indicator
|
||||
if (!XRE_IsParentProcess()) {
|
||||
unused <<
|
||||
Unused <<
|
||||
dom::ContentChild::GetSingleton()->SendRecordingDeviceEvents(aMsg,
|
||||
requestURL,
|
||||
aIsAudio,
|
||||
|
|
|
@ -134,7 +134,7 @@ public:
|
|||
|
||||
~GetUserMediaCallbackMediaStreamListener()
|
||||
{
|
||||
unused << mMediaThread;
|
||||
Unused << mMediaThread;
|
||||
// It's OK to release mStream on any thread; they have thread-safe
|
||||
// refcounts.
|
||||
}
|
||||
|
|
|
@ -2510,7 +2510,7 @@ ProcessedMediaStream::AllocateInputPort(MediaStream* aStream, TrackID aTrackID,
|
|||
mPort->Init();
|
||||
// The graph holds its reference implicitly
|
||||
mPort->GraphImpl()->SetStreamOrderDirty();
|
||||
unused << mPort.forget();
|
||||
Unused << mPort.forget();
|
||||
}
|
||||
virtual void RunDuringShutdown()
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ GMPAudioDecoderChild::Decoded(GMPAudioSamples* aDecodedSamples)
|
|||
samples.mChannelCount() = aDecodedSamples->Channels();
|
||||
samples.mSamplesPerSecond() = aDecodedSamples->Rate();
|
||||
|
||||
unused << SendDecoded(samples);
|
||||
Unused << SendDecoded(samples);
|
||||
|
||||
aDecodedSamples->Destroy();
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ GMPAudioDecoderChild::InputDataExhausted()
|
|||
{
|
||||
MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current());
|
||||
|
||||
unused << SendInputDataExhausted();
|
||||
Unused << SendInputDataExhausted();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -70,7 +70,7 @@ GMPAudioDecoderChild::DrainComplete()
|
|||
{
|
||||
MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current());
|
||||
|
||||
unused << SendDrainComplete();
|
||||
Unused << SendDrainComplete();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -78,7 +78,7 @@ GMPAudioDecoderChild::ResetComplete()
|
|||
{
|
||||
MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current());
|
||||
|
||||
unused << SendResetComplete();
|
||||
Unused << SendResetComplete();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -86,7 +86,7 @@ GMPAudioDecoderChild::Error(GMPErr aError)
|
|||
{
|
||||
MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current());
|
||||
|
||||
unused << SendError(aError);
|
||||
Unused << SendError(aError);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -163,7 +163,7 @@ GMPAudioDecoderChild::RecvDecodingComplete()
|
|||
|
||||
mPlugin = nullptr;
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ GMPAudioDecoderParent::Shutdown()
|
|||
|
||||
mIsOpen = false;
|
||||
if (!mActorDestroyed) {
|
||||
unused << SendDecodingComplete();
|
||||
Unused << SendDecodingComplete();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -95,7 +95,7 @@ GMPContentParent::VideoDecoderDestroyed(GMPVideoDecoderParent* aDecoder)
|
|||
MOZ_ASSERT(GMPThread() == NS_GetCurrentThread());
|
||||
|
||||
// If the constructor fails, we'll get called before it's added
|
||||
unused << NS_WARN_IF(!mVideoDecoders.RemoveElement(aDecoder));
|
||||
Unused << NS_WARN_IF(!mVideoDecoders.RemoveElement(aDecoder));
|
||||
CloseIfUnused();
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ GMPContentParent::VideoEncoderDestroyed(GMPVideoEncoderParent* aEncoder)
|
|||
MOZ_ASSERT(GMPThread() == NS_GetCurrentThread());
|
||||
|
||||
// If the constructor fails, we'll get called before it's added
|
||||
unused << NS_WARN_IF(!mVideoEncoders.RemoveElement(aEncoder));
|
||||
Unused << NS_WARN_IF(!mVideoEncoders.RemoveElement(aEncoder));
|
||||
CloseIfUnused();
|
||||
}
|
||||
|
||||
|
|
|
@ -360,7 +360,7 @@ GMPDecryptorChild::RecvDecryptingComplete()
|
|||
|
||||
session->DecryptingComplete();
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ GMPDecryptorParent::CreateSession(uint32_t aCreateSessionToken,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aInitDataType.IsEmpty() && !aInitData.IsEmpty());
|
||||
unused << SendCreateSession(aCreateSessionToken, aPromiseId, aInitDataType, aInitData, aSessionType);
|
||||
Unused << SendCreateSession(aCreateSessionToken, aPromiseId, aInitDataType, aInitData, aSessionType);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -88,7 +88,7 @@ GMPDecryptorParent::LoadSession(uint32_t aPromiseId,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aSessionId.IsEmpty());
|
||||
unused << SendLoadSession(aPromiseId, aSessionId);
|
||||
Unused << SendLoadSession(aPromiseId, aSessionId);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -105,7 +105,7 @@ GMPDecryptorParent::UpdateSession(uint32_t aPromiseId,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aSessionId.IsEmpty() && !aResponse.IsEmpty());
|
||||
unused << SendUpdateSession(aPromiseId, aSessionId, aResponse);
|
||||
Unused << SendUpdateSession(aPromiseId, aSessionId, aResponse);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -121,7 +121,7 @@ GMPDecryptorParent::CloseSession(uint32_t aPromiseId,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aSessionId.IsEmpty());
|
||||
unused << SendCloseSession(aPromiseId, aSessionId);
|
||||
Unused << SendCloseSession(aPromiseId, aSessionId);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -137,7 +137,7 @@ GMPDecryptorParent::RemoveSession(uint32_t aPromiseId,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aSessionId.IsEmpty());
|
||||
unused << SendRemoveSession(aPromiseId, aSessionId);
|
||||
Unused << SendRemoveSession(aPromiseId, aSessionId);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -153,7 +153,7 @@ GMPDecryptorParent::SetServerCertificate(uint32_t aPromiseId,
|
|||
}
|
||||
// Caller should ensure parameters passed in from JS are valid.
|
||||
MOZ_ASSERT(!aServerCert.IsEmpty());
|
||||
unused << SendSetServerCertificate(aPromiseId, aServerCert);
|
||||
Unused << SendSetServerCertificate(aPromiseId, aServerCert);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -177,7 +177,7 @@ GMPDecryptorParent::Decrypt(uint32_t aId,
|
|||
aCrypto.mEncryptedSizes,
|
||||
aCrypto.mSessionIds);
|
||||
|
||||
unused << SendDecrypt(aId, aBuffer, data);
|
||||
Unused << SendDecrypt(aId, aBuffer, data);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -413,7 +413,7 @@ GMPDecryptorParent::Shutdown()
|
|||
|
||||
mIsOpen = false;
|
||||
if (!mActorDestroyed) {
|
||||
unused << SendDecryptingComplete();
|
||||
Unused << SendDecryptingComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ void
|
|||
GMPParent::Crash()
|
||||
{
|
||||
if (mState != GMPStateNotLoaded) {
|
||||
unused << SendCrashPluginNow();
|
||||
Unused << SendCrashPluginNow();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -233,7 +233,7 @@ GMPParent::EnsureAsyncShutdownTimeoutSet()
|
|||
rv = mAsyncShutdownTimeout->InitWithFuncCallback(
|
||||
&AbortWaitingForGMPAsyncShutdown, this, timeout,
|
||||
nsITimer::TYPE_ONE_SHOT);
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -620,21 +620,21 @@ GMPStorageParent::RecvOpen(const nsCString& aRecordName)
|
|||
// or shared across origin.
|
||||
LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; null nodeId",
|
||||
this, aRecordName.get()));
|
||||
unused << SendOpenComplete(aRecordName, GMPGenericErr);
|
||||
Unused << SendOpenComplete(aRecordName, GMPGenericErr);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aRecordName.IsEmpty()) {
|
||||
LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; record name empty",
|
||||
this, aRecordName.get()));
|
||||
unused << SendOpenComplete(aRecordName, GMPGenericErr);
|
||||
Unused << SendOpenComplete(aRecordName, GMPGenericErr);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (mStorage->IsOpen(aRecordName)) {
|
||||
LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; record in use",
|
||||
this, aRecordName.get()));
|
||||
unused << SendOpenComplete(aRecordName, GMPRecordInUse);
|
||||
Unused << SendOpenComplete(aRecordName, GMPRecordInUse);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -642,7 +642,7 @@ GMPStorageParent::RecvOpen(const nsCString& aRecordName)
|
|||
MOZ_ASSERT(GMP_FAILED(err) || mStorage->IsOpen(aRecordName));
|
||||
LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') complete; rv=%d",
|
||||
this, aRecordName.get(), err));
|
||||
unused << SendOpenComplete(aRecordName, err);
|
||||
Unused << SendOpenComplete(aRecordName, err);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -661,12 +661,12 @@ GMPStorageParent::RecvRead(const nsCString& aRecordName)
|
|||
if (!mStorage->IsOpen(aRecordName)) {
|
||||
LOGD(("GMPStorageParent[%p]::RecvRead(record='%s') failed; record not open",
|
||||
this, aRecordName.get()));
|
||||
unused << SendReadComplete(aRecordName, GMPClosedErr, data);
|
||||
Unused << SendReadComplete(aRecordName, GMPClosedErr, data);
|
||||
} else {
|
||||
GMPErr rv = mStorage->Read(aRecordName, data);
|
||||
LOGD(("GMPStorageParent[%p]::RecvRead(record='%s') read %d bytes rv=%d",
|
||||
this, aRecordName.get(), data.Length(), rv));
|
||||
unused << SendReadComplete(aRecordName, rv, data);
|
||||
Unused << SendReadComplete(aRecordName, rv, data);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -686,14 +686,14 @@ GMPStorageParent::RecvWrite(const nsCString& aRecordName,
|
|||
if (!mStorage->IsOpen(aRecordName)) {
|
||||
LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') failed record not open",
|
||||
this, aRecordName.get()));
|
||||
unused << SendWriteComplete(aRecordName, GMPClosedErr);
|
||||
Unused << SendWriteComplete(aRecordName, GMPClosedErr);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aBytes.Length() > GMP_MAX_RECORD_SIZE) {
|
||||
LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') failed record too big",
|
||||
this, aRecordName.get()));
|
||||
unused << SendWriteComplete(aRecordName, GMPQuotaExceededErr);
|
||||
Unused << SendWriteComplete(aRecordName, GMPQuotaExceededErr);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -701,7 +701,7 @@ GMPStorageParent::RecvWrite(const nsCString& aRecordName,
|
|||
LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') write complete rv=%d",
|
||||
this, aRecordName.get(), rv));
|
||||
|
||||
unused << SendWriteComplete(aRecordName, rv);
|
||||
Unused << SendWriteComplete(aRecordName, rv);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -719,7 +719,7 @@ GMPStorageParent::RecvGetRecordNames()
|
|||
LOGD(("GMPStorageParent[%p]::RecvGetRecordNames() status=%d numRecords=%d",
|
||||
this, status, recordNames.Length()));
|
||||
|
||||
unused << SendRecordNames(recordNames, status);
|
||||
Unused << SendRecordNames(recordNames, status);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -755,7 +755,7 @@ GMPStorageParent::Shutdown()
|
|||
return;
|
||||
}
|
||||
mShutdown = true;
|
||||
unused << SendShutdown();
|
||||
Unused << SendShutdown();
|
||||
|
||||
mStorage = nullptr;
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ GMPTimerParent::TimerExpired(Context* aContext)
|
|||
uint32_t id = aContext->mId;
|
||||
mTimers.RemoveEntry(aContext);
|
||||
if (id) {
|
||||
unused << SendTimerExpired(id);
|
||||
Unused << SendTimerExpired(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ GMPVideoDecoderChild::RecvDecodingComplete()
|
|||
|
||||
mPlugin = nullptr;
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -264,7 +264,7 @@ GMPVideoDecoderParent::Shutdown()
|
|||
|
||||
mIsOpen = false;
|
||||
if (!mActorDestroyed) {
|
||||
unused << SendDecodingComplete();
|
||||
Unused << SendDecodingComplete();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -178,7 +178,7 @@ GMPVideoEncoderChild::RecvEncodingComplete()
|
|||
}
|
||||
|
||||
if (!mVideoEncoder) {
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ GMPVideoEncoderChild::RecvEncodingComplete()
|
|||
|
||||
mPlugin = nullptr;
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -233,7 +233,7 @@ GMPVideoEncoderParent::Shutdown()
|
|||
|
||||
mIsOpen = false;
|
||||
if (!mActorDestroyed) {
|
||||
unused << SendEncodingComplete();
|
||||
Unused << SendEncodingComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -952,7 +952,7 @@ media::TimeIntervals GStreamerReader::GetBuffered()
|
|||
void GStreamerReader::ReadAndPushData(guint aLength)
|
||||
{
|
||||
int64_t offset1 = mResource.Tell();
|
||||
unused << offset1;
|
||||
Unused << offset1;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
GstBuffer* buffer = gst_buffer_new_and_alloc(aLength);
|
||||
|
@ -974,7 +974,7 @@ void GStreamerReader::ReadAndPushData(guint aLength)
|
|||
}
|
||||
|
||||
int64_t offset2 = mResource.Tell();
|
||||
unused << offset2;
|
||||
Unused << offset2;
|
||||
|
||||
#if GST_VERSION_MAJOR >= 1
|
||||
gst_buffer_unmap(buffer, &info);
|
||||
|
|
|
@ -153,7 +153,7 @@ void SetPref(const char* a, T value);
|
|||
template <>
|
||||
void SetPref<bool>(const char* aPrefKey, bool aValue)
|
||||
{
|
||||
unused << Preferences::SetBool(aPrefKey, aValue);
|
||||
Unused << Preferences::SetBool(aPrefKey, aValue);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
@ -242,4 +242,4 @@ TEST(MediaFormatReader, RequestVideoRawData)
|
|||
&MediaFormatReaderBinding::OnMetadataNotRead);
|
||||
};
|
||||
b->RunTestAndWait(testCase);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public:
|
|||
} else {
|
||||
MOZ_ASSERT(!mIsShutdown);
|
||||
nsresult rv = mDecoder->Input(aDecrypted.mSample);
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ public:
|
|||
iter.Remove();
|
||||
}
|
||||
nsresult rv = mDecoder->Flush();
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
mSamplesWaitingForKey->Flush();
|
||||
return rv;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public:
|
|||
iter.Remove();
|
||||
}
|
||||
nsresult rv = mDecoder->Drain();
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ public:
|
|||
MOZ_ASSERT(!mIsShutdown);
|
||||
mIsShutdown = true;
|
||||
nsresult rv = mDecoder->Shutdown();
|
||||
unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
mSamplesWaitingForKey->BreakCycles();
|
||||
mSamplesWaitingForKey = nullptr;
|
||||
mDecoder = nullptr;
|
||||
|
|
|
@ -630,7 +630,7 @@ CamerasChild::Shutdown()
|
|||
// CamerasChild (this) will remain alive and is only deleted by the
|
||||
// IPC layer when SendAllDone returns.
|
||||
media::NewRunnableFrom([this]() -> nsresult {
|
||||
unused << this->SendAllDone();
|
||||
Unused << this->SendAllDone();
|
||||
return NS_OK;
|
||||
});
|
||||
CamerasSingleton::Thread()->Dispatch(deleteRunnable, NS_DISPATCH_NORMAL);
|
||||
|
|
|
@ -405,7 +405,7 @@ CamerasParent::CloseEngines()
|
|||
auto capNum = mCallbacks[0]->mCapturerId;
|
||||
LOG(("Forcing shutdown of engine %d, capturer %d", capEngine, capNum));
|
||||
StopCapture(capEngine, capNum);
|
||||
unused << ReleaseCaptureDevice(capEngine, capNum);
|
||||
Unused << ReleaseCaptureDevice(capEngine, capNum);
|
||||
}
|
||||
|
||||
for (int i = 0; i < CaptureEngine::MaxEngine; i++) {
|
||||
|
@ -475,11 +475,11 @@ CamerasParent::RecvNumberOfCaptureDevices(const int& aCapEngine)
|
|||
}
|
||||
if (num < 0) {
|
||||
LOG(("RecvNumberOfCaptureDevices couldn't find devices"));
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
} else {
|
||||
LOG(("RecvNumberOfCaptureDevices: %d", num));
|
||||
unused << self->SendReplyNumberOfCaptureDevices(num);
|
||||
Unused << self->SendReplyNumberOfCaptureDevices(num);
|
||||
return NS_OK;
|
||||
}
|
||||
});
|
||||
|
@ -514,12 +514,12 @@ CamerasParent::RecvNumberOfCapabilities(const int& aCapEngine,
|
|||
}
|
||||
if (num < 0) {
|
||||
LOG(("RecvNumberOfCapabilities couldn't find capabilities"));
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
} else {
|
||||
LOG(("RecvNumberOfCapabilities: %d", num));
|
||||
}
|
||||
unused << self->SendReplyNumberOfCapabilities(num);
|
||||
Unused << self->SendReplyNumberOfCapabilities(num);
|
||||
return NS_OK;
|
||||
});
|
||||
self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL);
|
||||
|
@ -566,10 +566,10 @@ CamerasParent::RecvGetCaptureCapability(const int &aCapEngine,
|
|||
webrtcCaps.rawType,
|
||||
webrtcCaps.codecType));
|
||||
if (error) {
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
unused << self->SendReplyGetCaptureCapability(capCap);
|
||||
Unused << self->SendReplyGetCaptureCapability(capCap);
|
||||
return NS_OK;
|
||||
});
|
||||
self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL);
|
||||
|
@ -611,12 +611,12 @@ CamerasParent::RecvGetCaptureDevice(const int& aCapEngine,
|
|||
}
|
||||
if (error) {
|
||||
LOG(("GetCaptureDevice failed: %d", error));
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
LOG(("Returning %s name %s id", name.get(), uniqueId.get()));
|
||||
unused << self->SendReplyGetCaptureDevice(name, uniqueId);
|
||||
Unused << self->SendReplyGetCaptureDevice(name, uniqueId);
|
||||
return NS_OK;
|
||||
});
|
||||
self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL);
|
||||
|
@ -647,11 +647,11 @@ CamerasParent::RecvAllocateCaptureDevice(const int& aCapEngine,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (error) {
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
} else {
|
||||
LOG(("Allocated device nr %d", numdev));
|
||||
unused << self->SendReplyAllocateCaptureDevice(numdev);
|
||||
Unused << self->SendReplyAllocateCaptureDevice(numdev);
|
||||
return NS_OK;
|
||||
}
|
||||
});
|
||||
|
@ -690,10 +690,10 @@ CamerasParent::RecvReleaseCaptureDevice(const int& aCapEngine,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (error) {
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
} else {
|
||||
unused << self->SendReplySuccess();
|
||||
Unused << self->SendReplySuccess();
|
||||
LOG(("Freed device nr %d", numdev));
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -753,10 +753,10 @@ CamerasParent::RecvStartCapture(const int& aCapEngine,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (!error) {
|
||||
unused << self->SendReplySuccess();
|
||||
Unused << self->SendReplySuccess();
|
||||
return NS_OK;
|
||||
} else {
|
||||
unused << self->SendReplyFailure();
|
||||
Unused << self->SendReplyFailure();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -447,7 +447,7 @@ Parent<Super>::RecvGetOriginKey(const uint32_t& aRequestId,
|
|||
if (!sIPCServingParent) {
|
||||
return NS_OK;
|
||||
}
|
||||
unused << sIPCServingParent->SendGetOriginKeyResponse(aRequestId, aKey);
|
||||
Unused << sIPCServingParent->SendGetOriginKeyResponse(aRequestId, aKey);
|
||||
} else {
|
||||
RefPtr<MediaManager> mgr = MediaManager::GetInstance();
|
||||
if (!mgr) {
|
||||
|
|
|
@ -32,7 +32,7 @@ MediaSystemResourceManagerParent::RecvAcquire(const uint32_t& aId,
|
|||
MOZ_ASSERT(!request);
|
||||
if (request) {
|
||||
// Send fail response
|
||||
mozilla::unused << SendResponse(aId, false /* fail */);
|
||||
mozilla::Unused << SendResponse(aId, false /* fail */);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ MediaSystemResourceService::Acquire(media::MediaSystemResourceManagerParent* aPa
|
|||
resource->mResourceCount == 0) {
|
||||
// Resource does not exit
|
||||
// Send fail response
|
||||
mozilla::unused << aParent->SendResponse(aId, false /* fail */);
|
||||
mozilla::Unused << aParent->SendResponse(aId, false /* fail */);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -105,12 +105,12 @@ MediaSystemResourceService::Acquire(media::MediaSystemResourceManagerParent* aPa
|
|||
resource->mAcquiredRequests.push_back(
|
||||
MediaSystemResourceRequest(aParent, aId));
|
||||
// Send success response
|
||||
mozilla::unused << aParent->SendResponse(aId, true /* success */);
|
||||
mozilla::Unused << aParent->SendResponse(aId, true /* success */);
|
||||
return;
|
||||
} else if (!aWillWait) {
|
||||
// Resource is not available and do not wait.
|
||||
// Send fail response
|
||||
mozilla::unused << aParent->SendResponse(aId, false /* fail */);
|
||||
mozilla::Unused << aParent->SendResponse(aId, false /* fail */);
|
||||
return;
|
||||
}
|
||||
// Wait until acquire.
|
||||
|
@ -246,7 +246,7 @@ MediaSystemResourceService::UpdateRequests(MediaSystemResourceType aResourceType
|
|||
MediaSystemResourceRequest& request = waitingRequests.front();
|
||||
MOZ_ASSERT(request.mParent);
|
||||
// Send response
|
||||
mozilla::unused << request.mParent->SendResponse(request.mId, true /* success */);
|
||||
mozilla::Unused << request.mParent->SendResponse(request.mId, true /* success */);
|
||||
// Move request to mAcquiredRequests
|
||||
acquiredRequests.push_back(waitingRequests.front());
|
||||
waitingRequests.pop_front();
|
||||
|
|
|
@ -118,7 +118,7 @@ AnalyserNode::AnalyserNode(AudioContext* aContext)
|
|||
// Enough chunks must be recorded to handle the case of fftSize being
|
||||
// increased to maximum immediately before getFloatTimeDomainData() is
|
||||
// called, for example.
|
||||
unused << mChunks.SetLength(CHUNK_COUNT, fallible);
|
||||
Unused << mChunks.SetLength(CHUNK_COUNT, fallible);
|
||||
|
||||
AllocateBuffer();
|
||||
}
|
||||
|
|
|
@ -344,7 +344,7 @@ nsSynthVoiceRegistry::RemoveVoice(nsISpeechService* aService,
|
|||
GetAllSpeechSynthActors(ssplist);
|
||||
|
||||
for (uint32_t i = 0; i < ssplist.Length(); ++i)
|
||||
unused << ssplist[i]->SendVoiceRemoved(nsString(aUri));
|
||||
Unused << ssplist[i]->SendVoiceRemoved(nsString(aUri));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -374,7 +374,7 @@ nsSynthVoiceRegistry::SetDefaultVoice(const nsAString& aUri,
|
|||
GetAllSpeechSynthActors(ssplist);
|
||||
|
||||
for (uint32_t i = 0; i < ssplist.Length(); ++i) {
|
||||
unused << ssplist[i]->SendSetDefaultVoice(nsString(aUri), aIsDefault);
|
||||
Unused << ssplist[i]->SendSetDefaultVoice(nsString(aUri), aIsDefault);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -494,7 +494,7 @@ nsSynthVoiceRegistry::AddVoiceImpl(nsISpeechService* aService,
|
|||
aQueuesUtterances);
|
||||
|
||||
for (uint32_t i = 0; i < ssplist.Length(); ++i) {
|
||||
unused << ssplist[i]->SendVoiceAdded(ssvoice);
|
||||
Unused << ssplist[i]->SendVoiceAdded(ssvoice);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -744,7 +744,7 @@ nsSynthVoiceRegistry::SetIsSpeaking(bool aIsSpeaking)
|
|||
nsTArray<SpeechSynthesisParent*> ssplist;
|
||||
GetAllSpeechSynthActors(ssplist);
|
||||
for (uint32_t i = 0; i < ssplist.Length(); ++i) {
|
||||
unused << ssplist[i]->SendIsSpeakingChanged(aIsSpeaking);
|
||||
Unused << ssplist[i]->SendIsSpeakingChanged(aIsSpeaking);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ public:
|
|||
PBackgroundChild* actor =
|
||||
mozilla::ipc::BackgroundChild::GetForCurrentThread();
|
||||
if (actor) {
|
||||
unused << actor->SendMessagePortForceClose(aIdentifier.uuid(),
|
||||
Unused << actor->SendMessagePortForceClose(aIdentifier.uuid(),
|
||||
aIdentifier.destinationUuid(),
|
||||
aIdentifier.sequenceId());
|
||||
return;
|
||||
|
|
|
@ -103,7 +103,7 @@ MessagePortParent::RecvStopSendingData()
|
|||
}
|
||||
|
||||
mCanSendData = false;
|
||||
unused << SendStopSendingDataConfirmed();
|
||||
Unused << SendStopSendingDataConfirmed();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ MessagePortParent::RecvClose()
|
|||
|
||||
MOZ_ASSERT(!mEntangled);
|
||||
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ void
|
|||
MessagePortParent::CloseAndDelete()
|
||||
{
|
||||
Close();
|
||||
unused << Send__delete__(this);
|
||||
Unused << Send__delete__(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -207,7 +207,7 @@ MessagePortService::DisentanglePort(
|
|||
return false;
|
||||
}
|
||||
|
||||
unused << data->mParent->Entangled(array);
|
||||
Unused << data->mParent->Entangled(array);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ MessagePortService::PostMessages(
|
|||
}
|
||||
|
||||
data->mMessages.Clear();
|
||||
unused << data->mParent->SendReceiveData(messages);
|
||||
Unused << data->mParent->SendReceiveData(messages);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -73,7 +73,7 @@ SendCursorRequest(const IPCMobileMessageCursor& aRequest,
|
|||
// Add an extra ref for IPDL. Will be released in
|
||||
// SmsChild::DeallocPMobileMessageCursor().
|
||||
RefPtr<MobileMessageCursorChild> actorCopy(actor);
|
||||
mozilla::unused << actorCopy.forget().take();
|
||||
mozilla::Unused << actorCopy.forget().take();
|
||||
|
||||
smsChild->SendPMobileMessageCursorConstructor(actor, aRequest);
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyReceivedMessage(msgData);
|
||||
Unused << SendNotifyReceivedMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyRetrievingMessage(msgData);
|
||||
Unused << SendNotifyRetrievingMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -247,7 +247,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifySendingMessage(msgData);
|
||||
Unused << SendNotifySendingMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifySentMessage(msgData);
|
||||
Unused << SendNotifySentMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -269,7 +269,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyFailedMessage(msgData);
|
||||
Unused << SendNotifyFailedMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyDeliverySuccessMessage(msgData);
|
||||
Unused << SendNotifyDeliverySuccessMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -291,7 +291,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyDeliveryErrorMessage(msgData);
|
||||
Unused << SendNotifyDeliveryErrorMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -309,7 +309,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
|
||||
MobileMessageData msgData =
|
||||
static_cast<SmsMessage*>(smsMsg.get())->GetData();
|
||||
unused << SendNotifyReceivedSilentMessage(msgData);
|
||||
Unused << SendNotifyReceivedSilentMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyReadSuccessMessage(msgData);
|
||||
Unused << SendNotifyReadSuccessMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -331,7 +331,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyReadErrorMessage(msgData);
|
||||
Unused << SendNotifyReadErrorMessage(msgData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
unused << SendNotifyDeletedMessageInfo(
|
||||
Unused << SendNotifyDeletedMessageInfo(
|
||||
static_cast<DeletedMessageInfo*>(deletedInfo.get())->GetData());
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ TCPServerSocketParent::SendCallbackAccept(TCPSocketParent *socket)
|
|||
|
||||
if (mNeckoParent) {
|
||||
if (mNeckoParent->SendPTCPSocketConstructor(socket, host, port)) {
|
||||
mozilla::unused << PTCPServerSocketParent::SendCallbackAccept(socket);
|
||||
mozilla::Unused << PTCPServerSocketParent::SendCallbackAccept(socket);
|
||||
}
|
||||
else {
|
||||
NS_ERROR("Sending data from PTCPSocketParent was failed.");
|
||||
|
@ -142,7 +142,7 @@ TCPServerSocketParent::ActorDestroy(ActorDestroyReason why)
|
|||
bool
|
||||
TCPServerSocketParent::RecvRequestDelete()
|
||||
{
|
||||
mozilla::unused << Send__delete__(this);
|
||||
mozilla::Unused << Send__delete__(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче