Bug 798033 - Remove 'using namespace' from dom/ headers. r=echou

This commit is contained in:
Birunthan Mohanathas 2013-12-08 21:53:11 -05:00
parent 759ab69b0a
commit bdda80d8b8
5 changed files with 9 additions and 10 deletions

View File

@ -8,9 +8,7 @@
#define mozilla_dom_bluetooth_BluetoothSocketObserver_h
#include "BluetoothCommon.h"
#include <mozilla/ipc/UnixSocket.h>
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<UnixSocketRawData>& aMessage) = 0;
virtual void ReceiveSocketData(
BluetoothSocket* aSocket,
nsAutoPtr<mozilla::ipc::UnixSocketRawData>& aMessage) = 0;
/**
* A callback function which would be called when a socket connection

View File

@ -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.

View File

@ -222,7 +222,7 @@ private:
nsRefPtr<BluetoothSocket> mHandsfreeSocket;
nsRefPtr<BluetoothSocket> mHeadsetSocket;
nsRefPtr<BluetoothSocket> mScoSocket;
SocketConnectionStatus mScoSocketStatus;
mozilla::ipc::SocketConnectionStatus mScoSocketStatus;
#ifdef MOZ_B2G_RIL
// CDMA-specific variable

View File

@ -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.

View File

@ -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;