Bug 1083092: Introduce |mozilla::ipc::SocketBase|, r=shawnjohnjr

The new class |SocketBase| contains the notification mechanism of
|SocketConsumerBase|. The latter still contains I/O methods.
This commit is contained in:
Thomas Zimmermann
2014-10-21 10:52:11 +02:00
parent ae8fc31910
commit 0fe75620eb
5 changed files with 75 additions and 42 deletions

View File

@@ -31,6 +31,7 @@ public:
void GetSocketAddr(nsAString& aAddrStr) const;
SocketConsumerBase* GetConsumer();
SocketBase* GetSocketBase();
// Shutdown state
//
@@ -157,6 +158,12 @@ UnixSocketConsumerIO::GetConsumer()
return mConsumer.get();
}
SocketBase*
UnixSocketConsumerIO::GetSocketBase()
{
return GetConsumer();
}
bool
UnixSocketConsumerIO::IsShutdownOnMainThread() const
{