diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 02:34:18 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 02:34:18 +0000 |
commit | 9eec225b47b8da77dfeac936f4a7823b9fdf1cab (patch) | |
tree | 22fa099bf1ac2caf9312ec4f476bcc3bb0300ac9 /ipc/ipc_sync_channel.h | |
parent | 7b337a7e2a6c34fc75ed0c050095d2c4e446c93d (diff) | |
download | chromium_src-9eec225b47b8da77dfeac936f4a7823b9fdf1cab.zip chromium_src-9eec225b47b8da77dfeac936f4a7823b9fdf1cab.tar.gz chromium_src-9eec225b47b8da77dfeac936f4a7823b9fdf1cab.tar.bz2 |
Don't use any member variables when sending a sync call, since SyncChannel could be deleted.
BUG=20364
Review URL: http://codereview.chromium.org/455011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_sync_channel.h')
-rw-r--r-- | ipc/ipc_sync_channel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipc/ipc_sync_channel.h b/ipc/ipc_sync_channel.h index cde293a58..cb88f47 100644 --- a/ipc/ipc_sync_channel.h +++ b/ipc/ipc_sync_channel.h @@ -145,11 +145,12 @@ class SyncChannel : public ChannelProxy, // Both these functions wait for a reply, timeout or process shutdown. The // latter one also runs a nested message loop in the meantime. - void WaitForReply(base::WaitableEvent* pump_messages_event); + static void WaitForReply( + SyncContext* context, base::WaitableEvent* pump_messages_event); // Runs a nested message loop until a reply arrives, times out, or the process // shuts down. - void WaitForReplyWithNestedMessageLoop(); + static void WaitForReplyWithNestedMessageLoop(SyncContext* context); bool sync_messages_with_no_timeout_allowed_; |