Bug 1131653: Move OPP helper classes into BluetoothOppManager namespace, r=btian

This will resolve possible naming collisions between equally named
classes in the Bluetooth namespace.
This commit is contained in:
Thomas Zimmermann 2015-02-11 10:24:09 +01:00
parent 9b4161b45c
commit e2a98bdb5a
2 changed files with 7 additions and 3 deletions

View File

@ -87,7 +87,7 @@ BluetoothOppManager::Observe(nsISupports* aSubject,
return NS_ERROR_UNEXPECTED;
}
class SendSocketDataTask : public nsRunnable
class BluetoothOppManager::SendSocketDataTask : public nsRunnable
{
public:
SendSocketDataTask(uint8_t* aStream, uint32_t aSize)
@ -111,7 +111,7 @@ private:
uint32_t mSize;
};
class ReadFileTask : public nsRunnable
class BluetoothOppManager::ReadFileTask : public nsRunnable
{
public:
ReadFileTask(nsIInputStream* aInputStream,
@ -156,7 +156,7 @@ private:
uint32_t mAvailablePacketSize;
};
class CloseSocketTask : public Task
class BluetoothOppManager::CloseSocketTask : public Task
{
public:
CloseSocketTask(BluetoothSocket* aSocket) : mSocket(aSocket)

View File

@ -74,6 +74,10 @@ public:
virtual void OnSocketDisconnect(BluetoothSocket* aSocket) MOZ_OVERRIDE;
private:
class CloseSocketTask;
class ReadFileTask;
class SendSocketDataTask;
BluetoothOppManager();
bool Init();
void HandleShutdown();