diff options
Diffstat (limited to 'ipc/ipc_sync_channel.cc')
-rw-r--r-- | ipc/ipc_sync_channel.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc index 784b835..d34ea6f 100644 --- a/ipc/ipc_sync_channel.cc +++ b/ipc/ipc_sync_channel.cc @@ -51,9 +51,6 @@ class SyncChannel::ReceivedSyncMsgQueue : return rv; } - ~ReceivedSyncMsgQueue() { - } - // Called on IPC thread when a synchronous message or reply arrives. void QueueMessage(const Message& msg, SyncChannel::SyncContext* context) { bool was_task_pending; @@ -157,6 +154,8 @@ class SyncChannel::ReceivedSyncMsgQueue : } private: + friend class base::RefCountedThreadSafe<ReceivedSyncMsgQueue>; + // See the comment in SyncChannel::SyncChannel for why this event is created // as manual reset. ReceivedSyncMsgQueue() : @@ -167,6 +166,8 @@ class SyncChannel::ReceivedSyncMsgQueue : top_send_done_watcher_(NULL) { } + ~ReceivedSyncMsgQueue() {} + // Holds information about a queued synchronous message or reply. struct QueuedMessage { QueuedMessage(Message* m, SyncContext* c) : message(m), context(c) { } |