Index: ipc/ipc_sync_channel.cc |
=================================================================== |
--- ipc/ipc_sync_channel.cc (revision 30973) |
+++ ipc/ipc_sync_channel.cc (working copy) |
@@ -51,9 +51,6 @@ |
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 @@ |
} |
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 @@ |
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) { } |