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

Unified Diff: ipc/ipc_sync_message_filter.h

Issue 1261253002: Add waitable event for SyncMessageFilter init (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sender_ check Created 5 years, 5 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 | « no previous file | ipc/ipc_sync_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_message_filter.h
diff --git a/ipc/ipc_sync_message_filter.h b/ipc/ipc_sync_message_filter.h
index ee6677ef31011185dcb1b2d59c4d92a4e586a956..32dffe39d3a4894a34887452769ac329e2cfff3d 100644
--- a/ipc/ipc_sync_message_filter.h
+++ b/ipc/ipc_sync_message_filter.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_vector.h"
#include "base/synchronization/lock.h"
#include "ipc/ipc_sender.h"
#include "ipc/ipc_sync_message.h"
@@ -59,6 +60,9 @@ class IPC_EXPORT SyncMessageFilter : public MessageFilter, public Sender {
typedef std::set<PendingSyncMsg*> PendingSyncMessages;
PendingSyncMessages pending_sync_messages_;
+ // Messages waiting to be delivered after IO initialization.
+ ScopedVector<Message> pending_messages_;
+
// Locks data members above.
base::Lock lock_;
« no previous file with comments | « no previous file | ipc/ipc_sync_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698