diff --git a/dom/bluetooth2/bluedroid/BluetoothA2dpManager.cpp b/dom/bluetooth2/bluedroid/BluetoothA2dpManager.cpp index 00691fe029c8..3c82b20242b0 100644 --- a/dom/bluetooth2/bluedroid/BluetoothA2dpManager.cpp +++ b/dom/bluetooth2/bluedroid/BluetoothA2dpManager.cpp @@ -120,7 +120,8 @@ AvStatusToSinkString(BluetoothA2dpConnectionState aState, nsAString& aString) } } -class InitAvrcpResultHandler MOZ_FINAL : public BluetoothAvrcpResultHandler +class BluetoothA2dpManager::InitAvrcpResultHandler MOZ_FINAL + : public BluetoothAvrcpResultHandler { public: InitAvrcpResultHandler(BluetoothProfileResultHandler* aRes) @@ -155,7 +156,8 @@ private: nsRefPtr mRes; }; -class InitA2dpResultHandler MOZ_FINAL : public BluetoothA2dpResultHandler +class BluetoothA2dpManager::InitA2dpResultHandler MOZ_FINAL + : public BluetoothA2dpResultHandler { public: InitA2dpResultHandler(BluetoothProfileResultHandler* aRes) @@ -197,7 +199,8 @@ private: nsRefPtr mRes; }; -class OnErrorProfileResultHandlerRunnable MOZ_FINAL : public nsRunnable +class BluetoothA2dpManager::OnErrorProfileResultHandlerRunnable MOZ_FINAL + : public nsRunnable { public: OnErrorProfileResultHandlerRunnable(BluetoothProfileResultHandler* aRes, @@ -328,7 +331,8 @@ BluetoothA2dpManager::Get() return sBluetoothA2dpManager; } -class CleanupAvrcpResultHandler MOZ_FINAL : public BluetoothAvrcpResultHandler +class BluetoothA2dpManager::CleanupAvrcpResultHandler MOZ_FINAL + : public BluetoothAvrcpResultHandler { public: CleanupAvrcpResultHandler(BluetoothProfileResultHandler* aRes) @@ -364,7 +368,8 @@ private: nsRefPtr mRes; }; -class CleanupA2dpResultHandler MOZ_FINAL : public BluetoothA2dpResultHandler +class BluetoothA2dpManager::CleanupA2dpResultHandler MOZ_FINAL + : public BluetoothA2dpResultHandler { public: CleanupA2dpResultHandler(BluetoothProfileResultHandler* aRes) @@ -397,7 +402,8 @@ private: nsRefPtr mRes; }; -class CleanupA2dpResultHandlerRunnable MOZ_FINAL : public nsRunnable +class BluetoothA2dpManager::CleanupA2dpResultHandlerRunnable MOZ_FINAL + : public nsRunnable { public: CleanupA2dpResultHandlerRunnable(BluetoothProfileResultHandler* aRes) @@ -461,7 +467,8 @@ BluetoothA2dpManager::OnConnectError() mDeviceAddress.Truncate(); } -class ConnectResultHandler MOZ_FINAL : public BluetoothA2dpResultHandler +class BluetoothA2dpManager::ConnectResultHandler MOZ_FINAL + : public BluetoothA2dpResultHandler { public: void OnError(BluetoothStatus aStatus) MOZ_OVERRIDE @@ -512,7 +519,8 @@ BluetoothA2dpManager::OnDisconnectError() mController->NotifyCompletion(NS_LITERAL_STRING(ERR_DISCONNECTION_FAILED)); } -class DisconnectResultHandler MOZ_FINAL : public BluetoothA2dpResultHandler +class BluetoothA2dpManager::DisconnectResultHandler MOZ_FINAL + : public BluetoothA2dpResultHandler { public: void OnError(BluetoothStatus aStatus) MOZ_OVERRIDE diff --git a/dom/bluetooth2/bluedroid/BluetoothA2dpManager.h b/dom/bluetooth2/bluedroid/BluetoothA2dpManager.h index 1c34607a5c68..dbe5c49e3ef7 100644 --- a/dom/bluetooth2/bluedroid/BluetoothA2dpManager.h +++ b/dom/bluetooth2/bluedroid/BluetoothA2dpManager.h @@ -66,6 +66,15 @@ public: void GetArtist(nsAString& aArtist); private: + class CleanupA2dpResultHandler; + class CleanupA2dpResultHandlerRunnable; + class CleanupAvrcpResultHandler; + class ConnectResultHandler; + class DisconnectResultHandler; + class InitA2dpResultHandler; + class InitAvrcpResultHandler; + class OnErrorProfileResultHandlerRunnable; + BluetoothA2dpManager(); void ResetA2dp(); void ResetAvrcp();