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

Unified Diff: base/posix/unix_domain_socket_linux.h

Issue 258543006: Change UnixDomainSocket::RecvMsg to return ScopedVector<base::ScopedFD> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and resolve conflicts with r266735 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..59bb8840b9df58e6903b22a77561ccc739e3bac4 100644
--- a/base/posix/unix_domain_socket_linux.h
+++ b/base/posix/unix_domain_socket_linux.h
@@ -10,6 +10,8 @@
#include <vector>
#include "base/base_export.h"
+#include "base/files/scoped_file.h"
+#include "base/memory/scoped_vector.h"
#include "base/process/process_handle.h"
class Pickle;
@@ -36,7 +38,7 @@ class BASE_EXPORT UnixDomainSocket {
static ssize_t RecvMsg(int fd,
void* msg,
size_t length,
- std::vector<int>* fds);
+ ScopedVector<base::ScopedFD>* fds);
// Same as RecvMsg above, but also returns the sender's process ID (as seen
// from the caller's namespace). However, before using this function to
@@ -45,7 +47,7 @@ class BASE_EXPORT UnixDomainSocket {
static ssize_t RecvMsgWithPid(int fd,
void* msg,
size_t length,
- std::vector<int>* fds,
+ ScopedVector<base::ScopedFD>* fds,
base::ProcessId* pid);
// Perform a sendmsg/recvmsg pair.
@@ -86,7 +88,7 @@ class BASE_EXPORT UnixDomainSocket {
void* msg,
size_t length,
int flags,
- std::vector<int>* fds,
+ ScopedVector<base::ScopedFD>* fds,
base::ProcessId* pid);
};
« 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