From bdda80d8b8018f7fcfaca4bf0ace15df3a0cf9a3 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 8 Dec 2013 21:53:11 -0500 Subject: [PATCH] Bug 798033 - Remove 'using namespace' from dom/ headers. r=echou --- dom/bluetooth/BluetoothSocketObserver.h | 9 ++++----- dom/bluetooth/bluedroid/BluetoothOppManager.h | 3 ++- dom/bluetooth/bluez/BluetoothHfpManager.h | 2 +- dom/bluetooth/bluez/BluetoothOppManager.h | 3 ++- dom/system/gonk/AudioManager.h | 2 -- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/dom/bluetooth/BluetoothSocketObserver.h b/dom/bluetooth/BluetoothSocketObserver.h index 09584241f95..6a2d6f89bad 100644 --- a/dom/bluetooth/BluetoothSocketObserver.h +++ b/dom/bluetooth/BluetoothSocketObserver.h @@ -8,9 +8,7 @@ #define mozilla_dom_bluetooth_BluetoothSocketObserver_h #include "BluetoothCommon.h" -#include - -using namespace mozilla::ipc; +#include "mozilla/ipc/UnixSocket.h" BEGIN_BLUETOOTH_NAMESPACE @@ -19,8 +17,9 @@ class BluetoothSocket; class BluetoothSocketObserver { public: - virtual void ReceiveSocketData(BluetoothSocket* aSocket, - nsAutoPtr& aMessage) = 0; + virtual void ReceiveSocketData( + BluetoothSocket* aSocket, + nsAutoPtr& aMessage) = 0; /** * A callback function which would be called when a socket connection diff --git a/dom/bluetooth/bluedroid/BluetoothOppManager.h b/dom/bluetooth/bluedroid/BluetoothOppManager.h index 0642c2457ce..782c1a37ce1 100644 --- a/dom/bluetooth/bluedroid/BluetoothOppManager.h +++ b/dom/bluetooth/bluedroid/BluetoothOppManager.h @@ -115,7 +115,8 @@ private: * false if the received length exceeds/not reaches the expected * length. */ - bool ComposePacket(uint8_t aOpCode, UnixSocketRawData* aMessage); + bool ComposePacket(uint8_t aOpCode, + mozilla::ipc::UnixSocketRawData* aMessage); /** * OBEX session status. diff --git a/dom/bluetooth/bluez/BluetoothHfpManager.h b/dom/bluetooth/bluez/BluetoothHfpManager.h index 91f78c6cd99..f44cb194634 100644 --- a/dom/bluetooth/bluez/BluetoothHfpManager.h +++ b/dom/bluetooth/bluez/BluetoothHfpManager.h @@ -222,7 +222,7 @@ private: nsRefPtr mHandsfreeSocket; nsRefPtr mHeadsetSocket; nsRefPtr mScoSocket; - SocketConnectionStatus mScoSocketStatus; + mozilla::ipc::SocketConnectionStatus mScoSocketStatus; #ifdef MOZ_B2G_RIL // CDMA-specific variable diff --git a/dom/bluetooth/bluez/BluetoothOppManager.h b/dom/bluetooth/bluez/BluetoothOppManager.h index 062032ac69d..c2db9e5e264 100644 --- a/dom/bluetooth/bluez/BluetoothOppManager.h +++ b/dom/bluetooth/bluez/BluetoothOppManager.h @@ -115,7 +115,8 @@ private: * false if the received length exceeds/not reaches the expected * length. */ - bool ComposePacket(uint8_t aOpCode, UnixSocketRawData* aMessage); + bool ComposePacket(uint8_t aOpCode, + mozilla::ipc::UnixSocketRawData* aMessage); /** * OBEX session status. diff --git a/dom/system/gonk/AudioManager.h b/dom/system/gonk/AudioManager.h index bd0649f390e..5d71bccff38 100644 --- a/dom/system/gonk/AudioManager.h +++ b/dom/system/gonk/AudioManager.h @@ -28,8 +28,6 @@ {0x89, 0x10, 0xf9, 0x3c, 0x55, 0xe6, 0x62, 0xec}} #define NS_AUDIOMANAGER_CONTRACTID "@mozilla.org/telephony/audiomanager;1" -using namespace mozilla::dom; - namespace mozilla { namespace hal { class SwitchEvent;