mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912996: Fix whitespaces, r=qdot
--HG-- extra : rebase_source : 1494c72c57e9e47dd7e082ef39bc264d348b6224
This commit is contained in:
parent
9b9c3f3673
commit
ee48608b82
@ -76,7 +76,7 @@ public:
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
return mConsumer == nullptr;
|
||||
}
|
||||
|
||||
|
||||
void ShutdownOnMainThread()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
@ -134,17 +134,17 @@ public:
|
||||
ClearDelayedConnectTask();
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Connect to a socket
|
||||
*/
|
||||
void Connect();
|
||||
|
||||
/**
|
||||
/**
|
||||
* Run bind/listen to prepare for further runs of accept()
|
||||
*/
|
||||
void Listen();
|
||||
|
||||
/**
|
||||
/**
|
||||
* Accept an incoming connection
|
||||
*/
|
||||
void Accept();
|
||||
@ -217,7 +217,7 @@ private:
|
||||
*/
|
||||
ScopedClose mFd;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Connector object used to create the connection we are currently using.
|
||||
*/
|
||||
nsAutoPtr<UnixSocketConnector> mConnector;
|
||||
@ -480,7 +480,7 @@ void ShutdownSocketTask::Run()
|
||||
NS_ENSURE_SUCCESS_VOID(rv);
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
UnixSocketImpl::Accept()
|
||||
{
|
||||
MOZ_ASSERT(!NS_IsMainThread());
|
||||
|
@ -92,13 +92,13 @@ public:
|
||||
*/
|
||||
virtual int Create() = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Since most socket specifics are related to address formation into a
|
||||
* sockaddr struct, this function is defined by subclasses and fills in the
|
||||
* structure as needed for whatever connection it is trying to build
|
||||
*
|
||||
* @param aIsServer True is we are acting as a server socket
|
||||
* @param aAddrSize Size of the struct
|
||||
* @param aAddrSize Size of the struct
|
||||
* @param aAddr Struct to fill
|
||||
* @param aAddress If aIsServer is false, Address to connect to. nullptr otherwise.
|
||||
*
|
||||
@ -109,7 +109,7 @@ public:
|
||||
sockaddr_any& aAddr,
|
||||
const char* aAddress) = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Does any socket type specific setup that may be needed
|
||||
*
|
||||
* @param aFd File descriptor for opened socket
|
||||
@ -118,7 +118,7 @@ public:
|
||||
*/
|
||||
virtual bool SetUp(int aFd) = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Get address of socket we're currently connected to. Return null string if
|
||||
* not connected.
|
||||
*
|
||||
@ -192,7 +192,7 @@ public:
|
||||
const char* aAddress,
|
||||
int aDelayMs = 0);
|
||||
|
||||
/**
|
||||
/**
|
||||
* Starts a task on the socket that will try to accept a new connection in a
|
||||
* non-blocking manner.
|
||||
*
|
||||
@ -208,33 +208,33 @@ public:
|
||||
*/
|
||||
void CloseSocket();
|
||||
|
||||
/**
|
||||
/**
|
||||
* Callback for socket connect/accept success. Called after connect/accept has
|
||||
* finished. Will be run on main thread, before any reads take place.
|
||||
*/
|
||||
virtual void OnConnectSuccess() = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Callback for socket connect/accept error. Will be run on main thread.
|
||||
*/
|
||||
virtual void OnConnectError() = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Callback for socket disconnect. Will be run on main thread.
|
||||
*/
|
||||
virtual void OnDisconnect() = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Called by implementation to notify consumer of success.
|
||||
*/
|
||||
void NotifySuccess();
|
||||
|
||||
/**
|
||||
/**
|
||||
* Called by implementation to notify consumer of error.
|
||||
*/
|
||||
void NotifyError();
|
||||
|
||||
/**
|
||||
/**
|
||||
* Called by implementation to notify consumer of disconnect.
|
||||
*/
|
||||
void NotifyDisconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user