Index: net/socket/unix_domain_server_socket_posix.h |
diff --git a/net/socket/unix_domain_server_socket_posix.h b/net/socket/unix_domain_server_socket_posix.h |
index 06fb8d32c47bc4b0e700fa70f51d3f2ab80aa36d..b76280aa96af21307aff79916b821004b75b4d8d 100644 |
--- a/net/socket/unix_domain_server_socket_posix.h |
+++ b/net/socket/unix_domain_server_socket_posix.h |
@@ -26,10 +26,11 @@ class SocketLibevent; |
class NET_EXPORT UnixDomainServerSocket : public ServerSocket { |
public: |
// Callback that returns whether the already connected client, identified by |
- // its process |user_id| and |group_id|, is allowed to keep the connection |
- // open. Note that the socket is closed immediately in case the callback |
- // returns false. |
- typedef base::Callback<bool (uid_t user_id, gid_t group_id)> AuthCallback; |
+ // its |process_id|, |user_id| and |group_id|, is allowed to keep |
+ // the connection open. Note that the socket is closed immediately in case |
+ // the callback returns false. |
+ typedef base::Callback< |
+ bool (pid_t process_id, uid_t user_id, gid_t group_id)> AuthCallback; |
UnixDomainServerSocket(const AuthCallback& auth_callack, |
bool use_abstract_namespace); |
@@ -37,6 +38,7 @@ class NET_EXPORT UnixDomainServerSocket : public ServerSocket { |
// Gets UID and GID of peer to check permissions. |
static bool GetPeerIds(SocketDescriptor socket_fd, |
+ pid_t* process_id, |
uid_t* user_id, |
gid_t* group_id); |