diff options
Diffstat (limited to 'base/object_watcher.h')
-rw-r--r-- | base/object_watcher.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/object_watcher.h b/base/object_watcher.h index de4816a..9058ab4 100644 --- a/base/object_watcher.h +++ b/base/object_watcher.h @@ -32,7 +32,7 @@ #include <windows.h> -#include "base/basictypes.h" +#include "base/message_loop.h" namespace base { @@ -64,7 +64,7 @@ namespace base { // scope, the watcher_ will be destroyed, and there is no need to worry about // OnObjectSignaled being called on a deleted MyClass pointer. Easy! // -class ObjectWatcher { +class ObjectWatcher : public MessageLoop::DestructionObserver { public: class Delegate { public: @@ -97,6 +97,9 @@ class ObjectWatcher { // Called on a background thread when done waiting. static void CALLBACK DoneWaiting(void* param, BOOLEAN timed_out); + // MessageLoop::DestructionObserver implementation: + virtual void WillDestroyCurrentMessageLoop(); + // Internal state. struct Watch; Watch* watch_; |