diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 18:08:45 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 18:08:45 +0000 |
commit | 168ae92e90cafe51d7b4d62ce202a8aba093b88c (patch) | |
tree | ae330b8e28cc47d1b8dc5824cf01604e31b15be0 /ipc/ipc_message.h | |
parent | 7fe2c0f6df1bf3bd495cf39f2cd7dcb515740455 (diff) | |
download | chromium_src-168ae92e90cafe51d7b4d62ce202a8aba093b88c.zip chromium_src-168ae92e90cafe51d7b4d62ce202a8aba093b88c.tar.gz chromium_src-168ae92e90cafe51d7b4d62ce202a8aba093b88c.tar.bz2 |
Added new IPC message class for CommandBuffer.
Increased IPC message header type from 16 bits to 32 bits so it can accomodate more message classes.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/399013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_message.h')
-rw-r--r-- | ipc/ipc_message.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h index 6357c0b..8268fce 100644 --- a/ipc/ipc_message.h +++ b/ipc/ipc_message.h @@ -58,7 +58,7 @@ class Message : public Pickle { // Initialize a message with a user-defined type, priority value, and // destination WebView ID. - Message(int32 routing_id, uint16 type, PriorityValue priority); + Message(int32 routing_id, uint32 type, PriorityValue priority); // Initializes a message from a const block of data. The data is not copied; // instead the data is merely referenced by this message. Only const methods @@ -117,7 +117,7 @@ class Message : public Pickle { return (header()->flags & PUMPING_MSGS_BIT) != 0; } - uint16 type() const { + uint32 type() const { return header()->type; } @@ -216,13 +216,13 @@ class Message : public Pickle { HAS_SENT_TIME_BIT = 0x0080, }; -#pragma pack(push, 2) +#pragma pack(push, 4) struct Header : Pickle::Header { int32 routing; // ID of the view that this message is destined for - uint16 type; // specifies the user-defined message type - uint16 flags; // specifies control flags for the message + uint32 type; // specifies the user-defined message type + uint32 flags; // specifies control flags for the message #if defined(OS_POSIX) - uint32 num_fds; // the number of descriptors included with this message + uint16 num_fds; // the number of descriptors included with this message #endif }; #pragma pack(pop) @@ -273,7 +273,7 @@ enum SpecialRoutingIDs { MSG_ROUTING_CONTROL = kint32max, }; -#define IPC_REPLY_ID 0xFFF0 // Special message id for replies -#define IPC_LOGGING_ID 0xFFF1 // Special message id for logging +#define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies +#define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging #endif // IPC_IPC_MESSAGE_H__ |