From c1e4bff3d7cfd8c386a9cd002b4bbe505233b39c Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 29 Jan 2009 00:07:06 +0000 Subject: Add thread checks to the IPC channel. Almost every method of the IPC channel must be invoked from a single thread. This adds the corresponding DCHECKS, and should confirm bug 6489 as a cause of flakiness on the UI tests. BUG: 6489. Review URL: http://codereview.chromium.org/19617 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8837 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/ipc_channel_win.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/common/ipc_channel_win.h') diff --git a/chrome/common/ipc_channel_win.h b/chrome/common/ipc_channel_win.h index fcd8abe..2a601e1 100644 --- a/chrome/common/ipc_channel_win.h +++ b/chrome/common/ipc_channel_win.h @@ -12,6 +12,8 @@ #include "base/message_loop.h" +class NonThreadSafe; + namespace IPC { class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { @@ -73,6 +75,8 @@ class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { ScopedRunnableMethodFactory factory_; + scoped_ptr thread_check_; + DISALLOW_COPY_AND_ASSIGN(ChannelImpl); }; -- cgit v1.1