Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: base/posix/unix_domain_socket_linux.h

Issue 240463005: Stop using chrome-sandbox to determine real pids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix an embarassing number of compile errors Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/posix/unix_domain_socket_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/posix/unix_domain_socket_linux.h
diff --git a/base/posix/unix_domain_socket_linux.h b/base/posix/unix_domain_socket_linux.h
index 1b30ef5e5e452eaa96433c90cbd3b23d699dd8c7..4efa9b710d819ad52f58452738c5a5c2a01fbe88 100644
--- a/base/posix/unix_domain_socket_linux.h
+++ b/base/posix/unix_domain_socket_linux.h
@@ -72,6 +72,15 @@ class BASE_EXPORT UnixDomainSocket {
int* result_fd,
const Pickle& request);
+ // Same as SendRecvMsg, but sends an extra file descriptor with the request
+ // message.
+ static ssize_t SendRecvMsgWithFD(int fd,
+ uint8_t* reply,
+ unsigned reply_len,
+ int* result_fd,
+ const Pickle& request,
+ int request_fd);
+
// Similar to SendRecvMsg(), but |recvmsg_flags| allows to control the flags
// of the recvmsg(2) call.
static ssize_t SendRecvMsgWithFlags(int fd,
@@ -80,6 +89,7 @@ class BASE_EXPORT UnixDomainSocket {
int recvmsg_flags,
int* result_fd,
const Pickle& request);
+
private:
// Similar to RecvMsg, but allows to specify |flags| for recvmsg(2).
static ssize_t RecvMsgWithFlags(int fd,
@@ -88,6 +98,14 @@ class BASE_EXPORT UnixDomainSocket {
int flags,
std::vector<int>* fds,
base::ProcessId* pid);
+
+ static ssize_t SendRecvMsgImpl(int fd,
+ uint8_t* reply,
+ unsigned max_reply_len,
+ int recvmsg_flags,
+ int* result_fd,
+ const Pickle& request,
+ int request_fd);
};
#endif // BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_
« no previous file with comments | « no previous file | base/posix/unix_domain_socket_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698