diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 19:21:13 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 19:21:13 +0000 |
commit | 3cdb7af81de506be730544edcfe4a5547f0fdaea (patch) | |
tree | 223c1e000b0eccf637565345904fb4055e41c5ea /base/object_watcher.h | |
parent | 8947da6c7cd943bcb4be80a258e263a84aa15006 (diff) | |
download | chromium_src-3cdb7af81de506be730544edcfe4a5547f0fdaea.zip chromium_src-3cdb7af81de506be730544edcfe4a5547f0fdaea.tar.gz chromium_src-3cdb7af81de506be730544edcfe4a5547f0fdaea.tar.bz2 |
Make IPC::SyncChannel not duplicate the underlying MessageLoop implementation by pumping messages on its own. This fixes the problem of windowless plugins not painting on right click, and generally makes this class almost ported, other than using a generic version of events/locks.Through this change I've also cleaned up the class and hopefully made it more understandable.
Review URL: http://codereview.chromium.org/8001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/object_watcher.h')
-rw-r--r-- | base/object_watcher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/object_watcher.h b/base/object_watcher.h index 3a0b9a9..4660ce7 100644 --- a/base/object_watcher.h +++ b/base/object_watcher.h @@ -68,6 +68,10 @@ class ObjectWatcher : public MessageLoop::DestructionObserver { // bool StopWatching(); + // Returns the handle of the object being watched, or NULL if the object + // watcher is stopped. + HANDLE GetWatchedObject(); + private: // Called on a background thread when done waiting. static void CALLBACK DoneWaiting(void* param, BOOLEAN timed_out); |