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

Unified Diff: ipc/ipc_message.h

Issue 835873004: IPC: Generalize FileDescriptorSet to MessageAttachmentSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 5 years, 11 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 | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message.h
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index a1b26e1d289e3ea678e8d8ba69a1a0c0f52b69f9..f25e91b37e77d002a23e1ba958abdf8b91eec563 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -21,13 +21,12 @@
#include "base/memory/ref_counted.h"
#endif
-class FileDescriptorSet;
-
namespace IPC {
//------------------------------------------------------------------------------
struct LogData;
+class MessageAttachmentSet;
class IPC_EXPORT Message : public Pickle {
public:
@@ -250,21 +249,19 @@ class IPC_EXPORT Message : public Pickle {
// Used internally to support IPC::Listener::OnBadMessageReceived.
mutable bool dispatch_error_;
-#if defined(OS_POSIX)
// The set of file descriptors associated with this message.
- scoped_refptr<FileDescriptorSet> file_descriptor_set_;
+ scoped_refptr<MessageAttachmentSet> attachment_set_;
- // Ensure that a FileDescriptorSet is allocated
- void EnsureFileDescriptorSet();
+ // Ensure that a MessageAttachmentSet is allocated
+ void EnsureMessageAttachmentSet();
- FileDescriptorSet* file_descriptor_set() {
- EnsureFileDescriptorSet();
- return file_descriptor_set_.get();
+ MessageAttachmentSet* attachment_set() {
+ EnsureMessageAttachmentSet();
+ return attachment_set_.get();
}
- const FileDescriptorSet* file_descriptor_set() const {
- return file_descriptor_set_.get();
+ const MessageAttachmentSet* attachment_set() const {
+ return attachment_set_.get();
}
-#endif
#ifdef IPC_MESSAGE_LOG_ENABLED
// Used for logging.
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698