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

Unified Diff: ipc/ipc_message.h

Issue 2504063002: Revert of Remove IPC::BrokerableAttachment. (Closed)
Patch Set: Created 4 years, 1 month 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_reader_unittest.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 41f57afc31ce136da054fbffdf8ee990e27d7ffa..6bf18dec4254548003c3dbbeab4720165bacca64 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -15,6 +15,7 @@
#include "base/pickle.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
+#include "ipc/brokerable_attachment.h"
#include "ipc/ipc_export.h"
#if !defined(NDEBUG)
@@ -207,6 +208,10 @@
scoped_refptr<base::Pickle::Attachment>* attachment) const override;
// Returns true if there are any attachment in this message.
bool HasAttachments() const override;
+ // Returns true if there are any MojoHandleAttachments in this message.
+ bool HasMojoHandles() const;
+ // Whether the message has any brokerable attachments.
+ bool HasBrokerableAttachments() const;
#ifdef IPC_MESSAGE_LOG_ENABLED
// Adds the outgoing time from Time::Now() at the end of the message and sets
« no previous file with comments | « ipc/ipc_channel_reader_unittest.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698