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
Родитель 4cfeb753d3
Коммит f3bcd0dd2a
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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