| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ | 5 #ifndef BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
| 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ | 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
| 7 | 7 |
| 8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include "base/win/object_watcher.h" | 12 #include "base/win/object_watcher.h" |
| 13 #else | 13 #else |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 | 20 |
| 21 class Flag; | 21 class Flag; |
| 22 class AsyncWaiter; | 22 class AsyncWaiter; |
| 23 class AsyncCallbackTask; | 23 class AsyncCallbackTask; |
| 24 class WaitableEvent; | 24 class WaitableEvent; |
| 25 | 25 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; | 105 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 WaitableEvent* event_; | 108 WaitableEvent* event_; |
| 109 EventCallback callback_; | 109 EventCallback callback_; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace base | 112 } // namespace base |
| 113 | 113 |
| 114 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ | 114 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
| OLD | NEW |