Index: base/waitable_event_watcher.h |
=================================================================== |
--- base/waitable_event_watcher.h (revision 28676) |
+++ base/waitable_event_watcher.h (working copy) |
@@ -106,6 +106,13 @@ |
// --------------------------------------------------------------------------- |
WaitableEvent* GetWatchedEvent(); |
+ // --------------------------------------------------------------------------- |
+ // Return the delegate, or NULL if there is no delegate. |
+ // --------------------------------------------------------------------------- |
+ Delegate* delegate() { |
+ return delegate_; |
+ } |
+ |
private: |
WaitableEvent* event_; |
@@ -131,7 +138,6 @@ |
void OnObjectSignaled(); |
- Delegate* delegate_; |
ObjectWatcherHelper helper_; |
ObjectWatcher watcher_; |
#else |
@@ -146,6 +152,8 @@ |
AsyncCallbackTask* callback_task_; |
scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; |
#endif |
+ |
+ Delegate* delegate_; |
}; |
} // namespace base |