From ee48608b82699c5b2c4a2e7dd1c54d3bfe33c1e1 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Fri, 6 Sep 2013 10:17:55 +0200 Subject: [PATCH] Bug 912996: Fix whitespaces, r=qdot --HG-- extra : rebase_source : 1494c72c57e9e47dd7e082ef39bc264d348b6224 --- ipc/unixsocket/UnixSocket.cpp | 12 ++++++------ ipc/unixsocket/UnixSocket.h | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ipc/unixsocket/UnixSocket.cpp b/ipc/unixsocket/UnixSocket.cpp index 06a3aad7a3b..6307f2025e4 100644 --- a/ipc/unixsocket/UnixSocket.cpp +++ b/ipc/unixsocket/UnixSocket.cpp @@ -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 mConnector; @@ -480,7 +480,7 @@ void ShutdownSocketTask::Run() NS_ENSURE_SUCCESS_VOID(rv); } -void +void UnixSocketImpl::Accept() { MOZ_ASSERT(!NS_IsMainThread()); diff --git a/ipc/unixsocket/UnixSocket.h b/ipc/unixsocket/UnixSocket.h index d578f467f36..8b77174009c 100644 --- a/ipc/unixsocket/UnixSocket.h +++ b/ipc/unixsocket/UnixSocket.h @@ -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();