зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4cfeb753d3
Коммит
f3bcd0dd2a
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче