diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 00:07:06 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 00:07:06 +0000 |
commit | c1e4bff3d7cfd8c386a9cd002b4bbe505233b39c (patch) | |
tree | 599e0c175319d4c40e1fd695c9ecd55b3a4f9d55 /chrome/common/ipc_channel_win.h | |
parent | 98e72142d06252169a27570cf448639889c66dc6 (diff) | |
download | chromium_src-c1e4bff3d7cfd8c386a9cd002b4bbe505233b39c.zip chromium_src-c1e4bff3d7cfd8c386a9cd002b4bbe505233b39c.tar.gz chromium_src-c1e4bff3d7cfd8c386a9cd002b4bbe505233b39c.tar.bz2 |
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
Diffstat (limited to 'chrome/common/ipc_channel_win.h')
-rw-r--r-- | chrome/common/ipc_channel_win.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<ChannelImpl> factory_; + scoped_ptr<NonThreadSafe> thread_check_; + DISALLOW_COPY_AND_ASSIGN(ChannelImpl); }; |