diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 16:51:58 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 16:51:58 +0000 |
commit | d4651ffb26b0eb01701b01453dcd4479b7ca38eb (patch) | |
tree | 3c646cf469cd06bb60c93e98afc0014a8f39c042 /chrome/common/ipc_sync_message.h | |
parent | 0d83c73b55bd0b5a527f0bcdd26f0d3815d8f938 (diff) | |
download | chromium_src-d4651ffb26b0eb01701b01453dcd4479b7ca38eb.zip chromium_src-d4651ffb26b0eb01701b01453dcd4479b7ca38eb.tar.gz chromium_src-d4651ffb26b0eb01701b01453dcd4479b7ca38eb.tar.bz2 |
Try to reland the ipc code to see if the tests
are going to break again.
TBR:jeremy
Review URL: http://codereview.chromium.org/13053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_sync_message.h')
-rw-r--r-- | chrome/common/ipc_sync_message.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/ipc_sync_message.h b/chrome/common/ipc_sync_message.h index 86cb62f..116e6c7 100644 --- a/chrome/common/ipc_sync_message.h +++ b/chrome/common/ipc_sync_message.h @@ -5,7 +5,9 @@ #ifndef CHROME_COMMON_IPC_SYNC_MESSAGE_H__ #define CHROME_COMMON_IPC_SYNC_MESSAGE_H__ +#if defined(OS_WIN) #include <windows.h> +#endif #include <string> #include "base/basictypes.h" #include "chrome/common/ipc_message.h" @@ -16,7 +18,7 @@ class MessageReplyDeserializer; class SyncMessage : public Message { public: - SyncMessage(int32 routing_id, WORD type, PriorityValue priority, + SyncMessage(int32 routing_id, uint16 type, PriorityValue priority, MessageReplyDeserializer* deserializer); // Call this to get a deserializer for the output parameters. @@ -24,6 +26,8 @@ class SyncMessage : public Message { // for deleting the deserializer when they're done. MessageReplyDeserializer* GetReplyDeserializer(); +// TODO(playmobil): reimplement on POSIX. +#if defined(OS_WIN) // If this message can cause the receiver to block while waiting for user // input (i.e. by calling MessageBox), then the caller needs to pump window // messages and dispatch asynchronous messages while waiting for the reply. @@ -44,6 +48,7 @@ class SyncMessage : public Message { void EnableMessagePumping(); HANDLE pump_messages_event() const { return pump_messages_event_; } +#endif // defined(OS_WIN) // Returns true if the message is a reply to the given request id. static bool IsMessageReplyTo(const Message& msg, int request_id); @@ -68,7 +73,9 @@ class SyncMessage : public Message { static bool WriteSyncHeader(Message* msg, const SyncHeader& header); MessageReplyDeserializer* deserializer_; +#if defined(OS_WIN) HANDLE pump_messages_event_; +#endif static uint32 next_id_; // for generation of unique ids }; |