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

Unified Diff: ipc/ipc_sync_message.h

Issue 2754143005: Use WaitableEvents to wake up sync IPC waiting (Closed)
Patch Set: . Created 3 years, 9 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 | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_sync_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_message.h
diff --git a/ipc/ipc_sync_message.h b/ipc/ipc_sync_message.h
index ed5204fcee1736fe6b88e0f22ea0fe8c4d724d1d..7f0555134a222e8e88e44871cd70ed3c65e423bf 100644
--- a/ipc/ipc_sync_message.h
+++ b/ipc/ipc_sync_message.h
@@ -17,10 +17,13 @@
#include "build/build_config.h"
#include "ipc/ipc_message.h"
+namespace base {
+class WaitableEvent;
+}
+
namespace IPC {
class MessageReplyDeserializer;
-class MojoEvent;
class IPC_EXPORT SyncMessage : public Message {
public:
@@ -90,12 +93,12 @@ class IPC_EXPORT MessageReplyDeserializer {
// When sending a synchronous message, this structure contains an object
// that knows how to deserialize the response.
struct PendingSyncMsg {
- PendingSyncMsg(int id, MessageReplyDeserializer* d, MojoEvent* e)
- : id(id), deserializer(d), done_event(e), send_result(false) { }
+ PendingSyncMsg(int id, MessageReplyDeserializer* d, base::WaitableEvent* e)
+ : id(id), deserializer(d), done_event(e), send_result(false) {}
int id;
MessageReplyDeserializer* deserializer;
- MojoEvent* done_event;
+ base::WaitableEvent* done_event;
bool send_result;
};
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_sync_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698