Index: ipc/ipc_sync_message.h |
=================================================================== |
--- ipc/ipc_sync_message.h (revision 43588) |
+++ ipc/ipc_sync_message.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -77,8 +77,6 @@ |
MessageReplyDeserializer* deserializer_; |
base::WaitableEvent* pump_messages_event_; |
- |
- static uint32 next_id_; // for generation of unique ids |
}; |
// Used to deserialize parameters from a reply to a synchronous message |
@@ -92,6 +90,19 @@ |
virtual bool SerializeOutputParameters(const Message& msg, void* iter) = 0; |
}; |
+// When sending a synchronous message, this structure contains an object |
+// that knows how to deserialize the response. |
+struct PendingSyncMsg { |
+ PendingSyncMsg(int id, |
+ MessageReplyDeserializer* d, |
+ base::WaitableEvent* e) |
+ : id(id), deserializer(d), done_event(e), send_result(false) { } |
+ int id; |
+ MessageReplyDeserializer* deserializer; |
+ base::WaitableEvent* done_event; |
+ bool send_result; |
+}; |
+ |
} // namespace IPC |
#endif // IPC_IPC_SYNC_MESSAGE_H_ |