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

Unified Diff: base/unix_domain_socket_posix.h

Issue 131006: Linux: move SyncIPC function from Skia to base. (Closed)
Patch Set: Created 11 years, 6 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/unix_domain_socket_posix.cc » ('j') | base/unix_domain_socket_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/unix_domain_socket_posix.h
diff --git a/base/unix_domain_socket_posix.h b/base/unix_domain_socket_posix.h
index c0b40e80e3f236e44bfa694c569b1b77593da5d9..9a1d80ad376e66ff1b425a8989f3e20ab1070300 100644
--- a/base/unix_domain_socket_posix.h
+++ b/base/unix_domain_socket_posix.h
@@ -8,6 +8,8 @@
#include <sys/types.h>
#include <vector>
Evan Martin 2009/06/18 00:36:08 This file is getting bigger, can you put a descrip
+class Pickle;
+
namespace base {
// Use sendmsg to write the given msg and include a vector
@@ -17,6 +19,15 @@ bool SendMsg(int fd, const void* msg, size_t length,
// Use recvmsg to read a message and an array of file descriptors. Returns
// -1 on failure. Note: will read, at most, 16 descriptors.
ssize_t RecvMsg(int fd, void* msg, size_t length, std::vector<int>* fds);
+// Perform a sendmsg/recvmsg pair by sending the given Pickle as a request
+// along with a file descriptor over which the reply is read.
Evan Martin 2009/06/18 00:36:08 The way this is worded, it sounds like you're send
+// fd: descriptor to send the request on
+// reply: buffer for the reply
+// reply_len: size of |reply|
+// result_fd: (may be NULL) the file descriptor returned in the reply (if any)
+// request: the bytes to send in the request
+ssize_t SendRecvMsg(int fd, uint8_t* reply, unsigned reply_len, int* result_fd,
+ const Pickle& request);
} // namespace base
« no previous file with comments | « no previous file | base/unix_domain_socket_posix.cc » ('j') | base/unix_domain_socket_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698