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

Unified Diff: ipc/ipc_message.h

Issue 1330563002: Reland #1 "ipc: Add a new field num_brokered_attachments to the message header." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add missing ampersand. Created 5 years, 3 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 | « content/child/resource_dispatcher.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 d12f6a366834e06cd2f6b72ade7252ada147b77a..d0e38afc342218365423056330b0eed5b734d8ba 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/pickle.h"
#include "base/trace_event/trace_event.h"
+#include "ipc/attachment_broker.h"
#include "ipc/ipc_export.h"
#if !defined(NDEBUG)
@@ -222,6 +223,12 @@ class IPC_EXPORT Message : public base::Pickle {
int32 routing; // ID of the view that this message is destined for
uint32 type; // specifies the user-defined message type
uint32 flags; // specifies control flags for the message
+#if USE_ATTACHMENT_BROKER
+ // The number of brokered attachments included with this message. The
+ // ids of the brokered attachment ids are sent immediately after the pickled
+ // message, before the next pickled message is sent.
+ uint32 num_brokered_attachments;
+#endif
#if defined(OS_POSIX)
uint16 num_fds; // the number of descriptors included with this message
uint16 pad; // explicitly initialize this to appease valgrind
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698