Backed out changeset 0bf18526200b (bug 1046109)

This commit is contained in:
Carsten "Tomcat" Book
2014-07-31 10:14:26 +02:00
parent 01c0109e0c
commit 2b2ff202d8
3 changed files with 94 additions and 166 deletions

View File

@@ -122,34 +122,5 @@ SocketConsumerBase::SetConnectionStatus(
mConnectionStatus = aConnectionStatus;
}
//
// SocketIOBase
//
SocketIOBase::~SocketIOBase()
{ }
void
SocketIOBase::EnqueueData(UnixSocketRawData* aData)
{
if (!aData->mSize) {
delete aData; // delete empty data immediately
return;
}
mOutgoingQ.AppendElement(aData);
}
bool
SocketIOBase::HasPendingData() const
{
return !mOutgoingQ.IsEmpty();
}
SocketIOBase::SocketIOBase(size_t aMaxReadSize)
: mMaxReadSize(aMaxReadSize)
{
MOZ_ASSERT(mMaxReadSize);
}
}
}