| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_WAITABLE_EVENT_WATCHER_H_ | 5 #ifndef BASE_WAITABLE_EVENT_WATCHER_H_ |
| 6 #define BASE_WAITABLE_EVENT_WATCHER_H_ | 6 #define BASE_WAITABLE_EVENT_WATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 void OnObjectSignaled(); | 140 void OnObjectSignaled(); |
| 141 | 141 |
| 142 ObjectWatcherHelper helper_; | 142 ObjectWatcherHelper helper_; |
| 143 ObjectWatcher watcher_; | 143 ObjectWatcher watcher_; |
| 144 #else | 144 #else |
| 145 // --------------------------------------------------------------------------- | 145 // --------------------------------------------------------------------------- |
| 146 // Implementation of MessageLoop::DestructionObserver | 146 // Implementation of MessageLoop::DestructionObserver |
| 147 // --------------------------------------------------------------------------- | 147 // --------------------------------------------------------------------------- |
| 148 void WillDestroyCurrentMessageLoop(); | 148 virtual void WillDestroyCurrentMessageLoop(); |
| 149 | 149 |
| 150 MessageLoop* message_loop_; | 150 MessageLoop* message_loop_; |
| 151 scoped_refptr<Flag> cancel_flag_; | 151 scoped_refptr<Flag> cancel_flag_; |
| 152 AsyncWaiter* waiter_; | 152 AsyncWaiter* waiter_; |
| 153 AsyncCallbackTask* callback_task_; | 153 AsyncCallbackTask* callback_task_; |
| 154 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; | 154 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; |
| 155 #endif | 155 #endif |
| 156 | 156 |
| 157 Delegate* delegate_; | 157 Delegate* delegate_; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace base | 160 } // namespace base |
| 161 | 161 |
| 162 #endif // BASE_WAITABLE_EVENT_WATCHER_H_ | 162 #endif // BASE_WAITABLE_EVENT_WATCHER_H_ |
| OLD | NEW |